/* ============================================================
   cv669.click - layout.css
   All custom classes use prefix: w31b2-
   Palette: #0D1117 (bg) | #AFEEEE (primary text) | #B2DFDB (accent)
   Mobile-first, max-width 430px, rem units (root 62.5%).
   ============================================================ */

:root {
  --w31b2-bg: #0D1117;
  --w31b2-bg-alt: #131c26;
  --w31b2-card: #1a2433;
  --w31b2-primary: #AFEEEE;
  --w31b2-accent: #B2DFDB;
  --w31b2-gold: #ffd479;
  --w31b2-text: #e8f5f5;
  --w31b2-muted: #8aa2b0;
  --w31b2-danger: #ff6b6b;
  --w31b2-border: rgba(175, 238, 238, 0.18);
  --w31b2-shadow: 0 4px 18px rgba(0, 0, 0, 0.45);
  --w31b2-radius: 1.2rem;
  --w31b2-radius-sm: 0.8rem;
}

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

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

body {
  font-family: 'Segoe UI', 'Noto Sans Bengali', 'SolaimanLipi', system-ui, sans-serif;
  background: var(--w31b2-bg);
  color: var(--w31b2-text);
  line-height: 1.5rem;
  font-size: 1.4rem;
  max-width: 430px;
  margin: 0 auto;
  overflow-x: hidden;
}

a { color: var(--w31b2-primary); text-decoration: none; }
a:hover { color: var(--w31b2-gold); }
img { max-width: 100%; display: block; }

.w31b2-container { width: 100%; padding: 0 1.2rem; }
.w31b2-wrapper { width: 100%; }

/* ---------- Header ---------- */
.w31b2-header {
  position: fixed; top: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 430px;
  background: linear-gradient(180deg, #0b121a 0%, #0D1117 100%);
  border-bottom: 1px solid var(--w31b2-border);
  z-index: 1000;
  padding: 0.6rem 1.0rem;
  display: flex; align-items: center; justify-content: space-between;
}
.w31b2-logo {
  display: flex; align-items: center; gap: 0.6rem;
  color: var(--w31b2-primary); font-weight: 700; font-size: 1.6rem;
}
.w31b2-logo img { width: 28px; height: 28px; border-radius: 0.4rem; }
.w31b2-logo span { background: linear-gradient(90deg, var(--w31b2-primary), var(--w31b2-gold)); -webkit-background-clip: text; background-clip: text; color: transparent; }

.w31b2-header-actions { display: flex; align-items: center; gap: 0.5rem; }
.w31b2-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
  padding: 0.7rem 1.2rem; border-radius: 2.0rem; font-weight: 700; font-size: 1.3rem;
  border: none; cursor: pointer; min-height: 36px; transition: transform .15s ease, box-shadow .15s ease;
}
.w31b2-btn:active { transform: scale(0.96); }
.w31b2-btn-register { background: linear-gradient(90deg, #ffd479, #f0a868); color: #1a1206; box-shadow: 0 2px 10px rgba(255,212,121,.35); }
.w31b2-btn-login { background: transparent; color: var(--w31b2-primary); border: 1px solid var(--w31b2-primary); }

.w31b2-menu-btn {
  background: transparent; border: 1px solid var(--w31b2-border); border-radius: 0.6rem;
  width: 36px; height: 36px; color: var(--w31b2-primary); cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.w31b2-menu-btn.w31b2-menu-active { background: var(--w31b2-bg-alt); }

/* Expandable mobile menu */
.w31b2-mobile-menu {
  position: fixed; top: 56px; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 430px;
  background: var(--w31b2-bg-alt); border-bottom: 1px solid var(--w31b2-border);
  max-height: 0; overflow: hidden; transition: max-height .3s ease; z-index: 9999;
}
.w31b2-mobile-menu.w31b2-menu-open { max-height: 480px; }
.w31b2-mobile-menu a {
  display: block; padding: 1.0rem 1.4rem; color: var(--w31b2-text);
  border-bottom: 1px solid rgba(175,238,238,.08); font-size: 1.4rem;
}
.w31b2-mobile-menu a:active { background: rgba(175,238,238,.08); }
.w31b2-mobile-menu i { color: var(--w31b2-accent); margin-right: 0.8rem; }

/* ---------- Main / sections ---------- */
main { padding-top: 64px; padding-bottom: 80px; }

.w31b2-section { padding: 1.6rem 0; }
.w31b2-section-title {
  font-size: 1.8rem; font-weight: 800; margin-bottom: 1.0rem; color: var(--w31b2-primary);
  display: flex; align-items: center; gap: 0.6rem;
}
.w31b2-section-title i { color: var(--w31b2-gold); }
.w31b2-section-intro { color: var(--w31b2-muted); margin-bottom: 1.0rem; font-size: 1.3rem; }

/* ---------- Hero carousel ---------- */
.w31b2-hero { position: relative; margin: 0 0 1.4rem 0; border-radius: var(--w31b2-radius); overflow: hidden; box-shadow: var(--w31b2-shadow); }
.w31b2-slide {
  display: none; position: relative; cursor: pointer;
}
.w31b2-slide.w31b2-slide-active { display: block; }
.w31b2-slide img { width: 100%; height: 200px; object-fit: cover; }
.w31b2-slide-cap {
  position: absolute; left: 0; bottom: 0; width: 100%;
  background: linear-gradient(0deg, rgba(13,17,23,.92), rgba(13,17,23,0));
  padding: 1.2rem 1.0rem 1.0rem; color: var(--w31b2-text); font-weight: 700; font-size: 1.5rem;
}
.w31b2-dots { position: absolute; bottom: 8px; left: 0; width: 100%; text-align: center; }
.w31b2-dot { display: inline-block; width: 8px; height: 8px; margin: 0 3px; border-radius: 50%; background: rgba(175,238,238,.4); cursor: pointer; }
.w31b2-dot.w31b2-dot-active { background: var(--w31b2-gold); }

/* ---------- Game grid ---------- */
.w31b2-filter-bar { display: flex; gap: 0.6rem; overflow-x: auto; padding: 0.4rem 0 1.0rem; -webkit-overflow-scrolling: touch; }
.w31b2-filter-tab {
  flex: 0 0 auto; padding: 0.6rem 1.2rem; border-radius: 2.0rem; font-size: 1.2rem;
  background: var(--w31b2-bg-alt); color: var(--w31b2-muted); border: 1px solid var(--w31b2-border); cursor: pointer; white-space: nowrap;
}
.w31b2-filter-tab.w31b2-filter-active { background: var(--w31b2-primary); color: #0D1117; border-color: var(--w31b2-primary); }

.w31b2-game-group { margin-bottom: 1.6rem; }
.w31b2-game-group-title { font-size: 1.5rem; font-weight: 700; color: var(--w31b2-accent); margin-bottom: 0.8rem; border-left: 3px solid var(--w31b2-gold); padding-left: 0.6rem; }
.w31b2-game-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.8rem;
}
.w31b2-game-card {
  background: var(--w31b2-card); border-radius: var(--w31b2-radius-sm); overflow: hidden;
  cursor: pointer; transition: transform .15s ease, box-shadow .15s ease; border: 1px solid var(--w31b2-border);
}
.w31b2-game-card:active { transform: scale(0.96); box-shadow: 0 0 0 2px var(--w31b2-gold); }
.w31b2-game-card img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.w31b2-game-name { padding: 0.5rem 0.4rem; font-size: 1.1rem; text-align: center; color: var(--w31b2-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- Info / feature cards ---------- */
.w31b2-card {
  background: var(--w31b2-card); border-radius: var(--w31b2-radius); padding: 1.2rem;
  margin-bottom: 1.2rem; border: 1px solid var(--w31b2-border); box-shadow: var(--w31b2-shadow);
}
.w31b2-card h3 { font-size: 1.5rem; color: var(--w31b2-primary); margin-bottom: 0.6rem; }
.w31b2-card p { color: var(--w31b2-muted); font-size: 1.3rem; margin-bottom: 0.6rem; }
.w31b2-card ul { padding-left: 1.6rem; color: var(--w31b2-text); }
.w31b2-card li { margin-bottom: 0.4rem; }

.w31b2-grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.8rem; }
.w31b2-mini-card {
  background: var(--w31b2-bg-alt); border-radius: var(--w31b2-radius-sm); padding: 1.0rem; text-align: center; border: 1px solid var(--w31b2-border);
}
.w31b2-mini-card i { font-size: 2.2rem; color: var(--w31b2-gold); }
.w31b2-mini-card h4 { font-size: 1.3rem; color: var(--w31b2-primary); margin: 0.4rem 0; }
.w31b2-mini-card p { font-size: 1.1rem; color: var(--w31b2-muted); }

/* ---------- Promo text links ---------- */
.w31b2-promo-link {
  color: var(--w31b2-gold); font-weight: 700; cursor: pointer; text-decoration: underline;
}
.w31b2-promo-btn {
  display: block; width: 100%; padding: 1.2rem; text-align: center; border-radius: 2.0rem;
  background: linear-gradient(90deg, #ffd479, #f0a868); color: #1a1206; font-weight: 800; font-size: 1.5rem;
  border: none; cursor: pointer; box-shadow: 0 4px 14px rgba(255,212,121,.35);
}
.w31b2-promo-btn:active { transform: scale(0.98); }

/* ---------- Testimonials ---------- */
.w31b2-testi { background: var(--w31b2-card); border-radius: var(--w31b2-radius-sm); padding: 1.0rem; margin-bottom: 0.8rem; border-left: 3px solid var(--w31b2-accent); }
.w31b2-testi .w31b2-testi-name { color: var(--w31b2-gold); font-weight: 700; font-size: 1.2rem; }
.w31b2-testi .w31b2-testi-text { color: var(--w31b2-text); font-size: 1.2rem; margin-top: 0.3rem; }
.w31b2-stars { color: var(--w31b2-gold); font-size: 1.1rem; }

/* ---------- Winners ---------- */
.w31b2-winner-row { display: flex; justify-content: space-between; padding: 0.5rem 0; border-bottom: 1px dashed var(--w31b2-border); font-size: 1.2rem; }
.w31b2-winner-row .w31b2-winner-amt { color: var(--w31b2-gold); font-weight: 700; }

/* ---------- Payment ---------- */
.w31b2-pay-row { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.w31b2-pay-chip { background: var(--w31b2-bg-alt); border: 1px solid var(--w31b2-border); border-radius: 2.0rem; padding: 0.5rem 1.0rem; font-size: 1.2rem; color: var(--w31b2-accent); }

/* ---------- FAQ ---------- */
.w31b2-faq-item { border-bottom: 1px solid var(--w31b2-border); padding: 0.8rem 0; }
.w31b2-faq-q { font-weight: 700; color: var(--w31b2-primary); font-size: 1.3rem; }
.w31b2-faq-a { color: var(--w31b2-muted); font-size: 1.2rem; margin-top: 0.3rem; }

/* ---------- Footer ---------- */
.w31b2-footer {
  background: #0b121a; border-top: 1px solid var(--w31b2-border); padding: 1.6rem 1.2rem 2.0rem; margin-top: 1.6rem;
}
.w31b2-footer-brand { color: var(--w31b2-primary); font-size: 1.3rem; margin-bottom: 0.8rem; line-height: 1.6rem; }
.w31b2-footer-links { display: flex; flex-wrap: wrap; gap: 0.6rem 1.0rem; margin-bottom: 1.0rem; }
.w31b2-footer-links a { color: var(--w31b2-accent); font-size: 1.2rem; }
.w31b2-footer-promos { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: 1.0rem; }
.w31b2-footer-promos button { flex: 1 1 40%; padding: 0.7rem; border-radius: 1.2rem; background: var(--w31b2-card); color: var(--w31b2-gold); border: 1px solid var(--w31b2-border); font-weight: 700; font-size: 1.2rem; cursor: pointer; }
.w31b2-footer-copy { color: var(--w31b2-muted); font-size: 1.1rem; text-align: center; }

/* ---------- Mobile bottom nav ---------- */
.w31b2-bottom-nav {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 430px; height: 62px;
  background: linear-gradient(180deg, #131c26, #0b121a);
  border-top: 1px solid var(--w31b2-border); z-index: 1000;
  display: flex; justify-content: space-around; align-items: stretch;
}
.w31b2-bottom-nav-btn {
  flex: 1; min-width: 60px; min-height: 60px; background: transparent; border: none;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  color: var(--w31b2-muted); cursor: pointer; transition: color .15s ease, transform .15s ease; position: relative;
}
.w31b2-bottom-nav-btn i, .w31b2-bottom-nav-btn .material-icons-outlined { font-size: 24px; }
.w31b2-bottom-nav-btn span { font-size: 11px; }
.w31b2-bottom-nav-btn:active { transform: scale(0.92); }
.w31b2-bottom-nav-btn.w31b2-nav-current { color: var(--w31b2-gold); }
.w31b2-bottom-nav-btn.w31b2-nav-current::before {
  content: ''; position: absolute; top: 0; left: 25%; width: 50%; height: 3px; background: var(--w31b2-gold); border-radius: 0 0 4px 4px;
}
.w31b2-nav-badge {
  position: absolute; top: 4px; right: 14px; background: var(--w31b2-danger); color: #fff;
  font-size: 9px; min-width: 14px; height: 14px; border-radius: 7px; display: flex; align-items: center; justify-content: center; padding: 0 3px;
}

/* ---------- Desktop: hide bottom nav ---------- */
@media (min-width: 769px) {
  .w31b2-bottom-nav { display: none; }
  body { max-width: 430px; }
}

/* ---------- Utility ---------- */
.w31b2-text-center { text-align: center; }
.w31b2-mt-1 { margin-top: 1.0rem; }
.w31b2-mt-2 { margin-top: 2.0rem; }
.w31b2-mb-1 { margin-bottom: 1.0rem; }
.w31b2-hide-desktop { display: block; }
.w31b2-lead { font-size: 1.3rem; color: var(--w31b2-muted); }
.w31b2-seo-text { color: var(--w31b2-muted); font-size: 1.2rem; line-height: 1.7rem; }
.w31b2-seo-text strong { color: var(--w31b2-primary); }
