/* =========================================================
   222bet apk - layout stylesheet (w2f2a- prefix)
   Palette: #9370DB | #8A2BE2 | #1A1A1A
   Mobile-first, max-width 430px.
   ========================================================= */

:root {
  --w2f2a-primary: #9370DB;
  --w2f2a-secondary: #8A2BE2;
  --w2f2a-bg: #1A1A1A;
  --w2f2a-bg-soft: #242124;
  --w2f2a-bg-card: #2c2a2c;
  --w2f2a-text: #f5f3ff;
  --w2f2a-text-muted: #c9c3d6;
  --w2f2a-gold: #ffd35c;
  --w2f2a-border: #3a363a;
  --w2f2a-grad: linear-gradient(135deg, #9370DB 0%, #8A2BE2 100%);
}

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

html { font-size: 62.5%; }

body {
  font-family: 'Segoe UI', 'Noto Sans Bengali', system-ui, -apple-system, sans-serif;
  background: var(--w2f2a-bg);
  color: var(--w2f2a-text);
  line-height: 1.5rem;
  font-size: 1.5rem;
  -webkit-font-smoothing: antialiased;
  max-width: 430px;
  margin: 0 auto;
  position: relative;
}

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

.w2f2a-container { width: 100%; padding: 0 1.2rem; }
.w2f2a-wrapper { max-width: 430px; margin: 0 auto; }

/* ---------- Header ---------- */
.w2f2a-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  max-width: 430px;
  margin: 0 auto;
  z-index: 1000;
  background: rgba(26, 26, 26, 0.96);
  border-bottom: 1px solid var(--w2f2a-border);
  backdrop-filter: blur(8px);
}
.w2f2a-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 1rem;
  gap: 0.6rem;
}
.w2f2a-brand { display: flex; align-items: center; gap: 0.6rem; min-width: 0; }
.w2f2a-brand img { width: 28px; height: 28px; border-radius: 6px; }
.w2f2a-brand-name {
  font-size: 1.6rem; font-weight: 700; color: var(--w2f2a-text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.w2f2a-brand-name span { color: var(--w2f2a-primary); }

.w2f2a-header-actions { display: flex; align-items: center; gap: 0.5rem; }
.w2f2a-menu-btn {
  background: transparent; border: 1px solid var(--w2f2a-border);
  color: var(--w2f2a-text); width: 36px; height: 36px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center; cursor: pointer;
}
.w2f2a-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
  padding: 0.7rem 1.1rem; border-radius: 22px; font-size: 1.3rem; font-weight: 700;
  cursor: pointer; border: none; min-height: 36px;
}
.w2f2a-btn-primary { background: var(--w2f2a-grad); color: #fff; }
.w2f2a-btn-outline { background: transparent; color: var(--w2f2a-text); border: 1px solid var(--w2f2a-primary); }
.w2f2a-btn-block { width: 100%; padding: 1.1rem; font-size: 1.6rem; border-radius: 14px; }

/* ---------- Expandable nav menu ---------- */
.w2f2a-mobile-menu {
  max-height: 0; overflow: hidden;
  background: var(--w2f2a-bg-soft);
  border-top: 1px solid var(--w2f2a-border);
  transition: max-height 0.3s ease;
}
.w2f2a-menu-open { max-height: 520px; }
.w2f2a-mobile-menu ul { list-style: none; padding: 0.6rem 1rem; }
.w2f2a-mobile-menu li a {
  display: block; padding: 1rem 0.6rem; color: var(--w2f2a-text);
  border-bottom: 1px solid var(--w2f2a-border); font-size: 1.4rem;
}
.w2f2a-mobile-menu li a:active { color: var(--w2f2a-primary); }

/* ---------- Layout spacer ---------- */
.w2f2a-main { padding-top: 6.2rem; }
@media (max-width: 768px) {
  .w2f2a-main { padding-bottom: 84px; }
}

/* ---------- Hero carousel ---------- */
.w2f2a-hero {
  position: relative; width: 100%; border-radius: 0 0 16px 16px; overflow: hidden;
  margin-bottom: 1.2rem;
}
.w2f2a-slide {
  display: none; position: relative; cursor: pointer;
}
.w2f2a-slide-active { display: block; }
.w2f2a-slide img { width: 100%; height: 200px; object-fit: cover; }
.w2f2a-slide-overlay {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.75));
  padding: 1.4rem 1.2rem; color: #fff;
}
.w2f2a-slide-overlay h2 { font-size: 1.8rem; font-weight: 700; }
.w2f2a-slide-overlay p { font-size: 1.2rem; color: var(--w2f2a-text-muted); }
.w2f2a-dots { display: flex; gap: 0.5rem; padding: 0.6rem; justify-content: center; }
.w2f2a-dot { width: 8px; height: 8px; border-radius: 50%; background: #555; cursor: pointer; }
.w2f2a-dot-active { background: var(--w2f2a-primary); }

/* ---------- Sections ---------- */
.w2f2a-section { padding: 1.4rem 1.2rem; }
.w2f2a-section-title {
  font-size: 2rem; font-weight: 800; margin-bottom: 1rem;
  color: var(--w2f2a-text); display: flex; align-items: center; gap: 0.6rem;
}
.w2f2a-section-title::before {
  content: ''; width: 4px; height: 22px; background: var(--w2f2a-grad); border-radius: 2px;
}
.w2f2a-section-title small { font-size: 1.2rem; color: var(--w2f2a-text-muted); font-weight: 500; }
.w2f2a-lead { color: var(--w2f2a-text-muted); font-size: 1.35rem; margin-bottom: 1rem; }

/* H1 */
.w2f2a-h1 { font-size: 2.2rem; font-weight: 800; margin: 0.4rem 0 1rem; line-height: 1.6rem; }
.w2f2a-h2 { font-size: 1.8rem; font-weight: 700; margin: 1.4rem 0 0.8rem; color: var(--w2f2a-text); }
.w2f2a-h3 { font-size: 1.5rem; font-weight: 700; margin: 1rem 0 0.6rem; color: var(--w2f2a-primary); }
.w2f2a-p { margin-bottom: 0.8rem; color: var(--w2f2a-text-muted); }
.w2f2a-p strong { color: var(--w2f2a-text); }

/* ---------- Game grid ---------- */
.w2f2a-cat-block { margin-bottom: 1.6rem; }
.w2f2a-cat-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 0.8rem;
}
.w2f2a-cat-name { font-size: 1.6rem; font-weight: 700; display: flex; align-items: center; gap: 0.5rem; }
.w2f2a-cat-name i { color: var(--w2f2a-primary); }
.w2f2a-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.8rem;
}
.w2f2a-card {
  background: var(--w2f2a-bg-card); border: 1px solid var(--w2f2a-border);
  border-radius: 10px; overflow: hidden; cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.w2f2a-card:active { transform: scale(0.96); border-color: var(--w2f2a-primary); }
.w2f2a-card-img { width: 100%; aspect-ratio: 1; object-fit: cover; background: #000; }
.w2f2a-card-name {
  font-size: 1.15rem; color: var(--w2f2a-text); padding: 0.5rem 0.4rem;
  text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.w2f2a-card-tag {
  position: relative; margin-top: -1.6rem; margin-left: 0.4rem; float: left;
  background: var(--w2f2a-secondary); color: #fff; font-size: 0.9rem;
  padding: 0.1rem 0.4rem; border-radius: 4px;
}

/* ---------- Feature / info cards ---------- */
.w2f2a-features { display: grid; grid-template-columns: 1fr; gap: 0.8rem; }
.w2f2a-feature-card {
  background: var(--w2f2a-bg-card); border: 1px solid var(--w2f2a-border);
  border-radius: 12px; padding: 1.2rem; display: flex; gap: 1rem; align-items: flex-start;
}
.w2f2a-feature-icon {
  width: 42px; height: 42px; border-radius: 10px; background: var(--w2f2a-grad);
  display: flex; align-items: center; justify-content: center; color: #fff; flex-shrink: 0;
}
.w2f2a-feature-card h3 { margin-bottom: 0.3rem; }
.w2f2a-feature-card p { font-size: 1.25rem; color: var(--w2f2a-text-muted); margin: 0; }

/* ---------- RTP compact ---------- */
.w2f2a-rtp-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; }
.w2f2a-rtp-item {
  background: var(--w2f2a-bg-card); border: 1px solid var(--w2f2a-border);
  border-radius: 10px; padding: 0.7rem; font-size: 1.2rem;
}
.w2f2a-rtp-item b { color: var(--w2f2a-gold); font-size: 1.5rem; display: block; }

/* ---------- Testimonials ---------- */
.w2f2a-testi { display: grid; grid-template-columns: 1fr; gap: 0.8rem; }
.w2f2a-testi-card {
  background: var(--w2f2a-bg-card); border-left: 3px solid var(--w2f2a-primary);
  border-radius: 10px; padding: 1rem; font-size: 1.25rem; color: var(--w2f2a-text-muted);
}
.w2f2a-testi-card b { color: var(--w2f2a-text); display: block; margin-top: 0.4rem; font-size: 1.2rem; }

/* ---------- Winners ---------- */
.w2f2a-winner-row {
  display: flex; justify-content: space-between; padding: 0.6rem 0;
  border-bottom: 1px dashed var(--w2f2a-border); font-size: 1.25rem;
}
.w2f2a-winner-row b { color: var(--w2f2a-gold); }

/* ---------- Payment ---------- */
.w2f2a-pay-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.6rem; }
.w2f2a-pay-item {
  background: var(--w2f2a-bg-card); border: 1px solid var(--w2f2a-border);
  border-radius: 8px; padding: 0.8rem 0.2rem; text-align: center; font-size: 1rem;
}
.w2f2a-pay-item i { font-size: 2.2rem; color: var(--w2f2a-primary); display: block; margin-bottom: 0.3rem; }

/* ---------- Promo banner ---------- */
.w2f2a-promo {
  background: var(--w2f2a-grad); border-radius: 14px; padding: 1.2rem;
  text-align: center; margin: 1.2rem 0; color: #fff;
}
.w2f2a-promo h3 { color: #fff; margin-bottom: 0.4rem; font-size: 1.7rem; }
.w2f2a-promo p { color: #f0e8ff; font-size: 1.2rem; margin-bottom: 0.8rem; }
.w2f2a-promo .w2f2a-btn { background: #fff; color: var(--w2f2a-secondary); }

/* ---------- App download CTA ---------- */
.w2f2a-appcta {
  display: flex; gap: 1rem; align-items: center; background: var(--w2f2a-bg-card);
  border: 1px solid var(--w2f2a-border); border-radius: 14px; padding: 1.2rem; margin: 1rem 0;
}
.w2f2a-appcta-icon { font-size: 3.4rem; color: var(--w2f2a-primary); }
.w2f2a-appcta h3 { margin: 0 0 0.3rem; }
.w2f2a-appcta p { font-size: 1.2rem; color: var(--w2f2a-text-muted); margin: 0 0 0.6rem; }

/* ---------- FAQ ---------- */
.w2f2a-faq-item {
  background: var(--w2f2a-bg-card); border: 1px solid var(--w2f2a-border);
  border-radius: 10px; padding: 1rem; margin-bottom: 0.7rem;
}
.w2f2a-faq-item h3 { font-size: 1.3rem; color: var(--w2f2a-text); margin-bottom: 0.4rem; }
.w2f2a-faq-item p { font-size: 1.2rem; color: var(--w2f2a-text-muted); margin: 0; }

/* ---------- Inline SEO links ---------- */
.w2f2a-seo-link { color: var(--w2f2a-primary); font-weight: 600; border-bottom: 1px dotted var(--w2f2a-primary); }
.w2f2a-content { font-size: 1.35rem; color: var(--w2f2a-text-muted); }
.w2f2a-content p { margin-bottom: 0.8rem; }

/* ---------- Footer ---------- */
.w2f2a-footer {
  background: var(--w2f2a-bg-soft); border-top: 1px solid var(--w2f2a-border);
  padding: 1.6rem 1.2rem 2rem; margin-top: 1.5rem;
}
.w2f2a-footer-brand { font-size: 1.3rem; color: var(--w2f2a-text-muted); margin-bottom: 1rem; }
.w2f2a-footer-links { display: flex; flex-wrap: wrap; gap: 0.5rem 1rem; margin-bottom: 1rem; }
.w2f2a-footer-links a { color: var(--w2f2a-text-muted); font-size: 1.2rem; }
.w2f2a-footer-promo { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1rem; }
.w2f2a-footer-promo .w2f2a-btn { font-size: 1.15rem; padding: 0.5rem 0.9rem; }
.w2f2a-footer-copy { font-size: 1.1rem; color: #777; border-top: 1px solid var(--w2f2a-border); padding-top: 0.8rem; }

/* ---------- Mobile bottom nav ---------- */
.w2f2a-bnav {
  position: fixed; bottom: 0; left: 0; right: 0; max-width: 430px;
  margin: 0 auto; height: 62px; background: rgba(20, 18, 22, 0.98);
  border-top: 1px solid var(--w2f2a-border); z-index: 1000;
  display: flex; justify-content: space-around; align-items: center;
  backdrop-filter: blur(8px);
}
.w2f2a-bnav-btn {
  flex: 1; min-width: 60px; min-height: 60px; background: transparent; border: none;
  color: var(--w2f2a-text-muted); display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 0.2rem; cursor: pointer; font-size: 1rem; padding: 0.2rem;
  transition: color 0.15s ease, transform 0.15s ease;
}
.w2f2a-bnav-btn i, .w2f2a-bnav-btn .material-icons-outlined,
.w2f2a-bnav-btn ion-icon { font-size: 22px; }
.w2f2a-bnav-btn:active { transform: scale(0.9); color: var(--w2f2a-primary); }
.w2f2a-bnav-active { color: var(--w2f2a-primary); }
.w2f2a-bnav-active::before {
  content: ''; position: absolute; top: 0; width: 28px; height: 3px;
  background: var(--w2f2a-grad); border-radius: 0 0 4px 4px;
}
.w2f2a-bnav-btn { position: relative; }

@media (min-width: 769px) {
  .w2f2a-bnav { display: none; }
  body { max-width: 430px; }
}
