/* ac365 core stylesheet - basefiles only
   All custom classes use the w2bc4- prefix.
   Palette: #1B263B (dark bg) | #80CBC4 (light accent).
   Mobile-first, max-width 430px, rem units (root 62.5%). */

:root {
  --w2bc4-primary: #80CBC4;
  --w2bc4-primary-dark: #5fa9a1;
  --w2bc4-bg: #1B263B;
  --w2bc4-bg-alt: #14203340;
  --w2bc4-bg-card: #21314a;
  --w2bc4-text: #e8eef5;
  --w2bc4-text-muted: #9fb0c4;
  --w2bc4-accent: #f4b740;
  --w2bc4-danger: #e05a6b;
  --w2bc4-border: #2c3e57;
  --w2bc4-radius: 1.2rem;
  --w2bc4-shadow: 0 0.4rem 1.2rem rgba(0,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", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--w2bc4-bg);
  color: var(--w2bc4-text);
  line-height: 1.5rem;
  font-size: 1.4rem;
  max-width: 430px;
  margin: 0 auto;
  position: relative;
  overflow-x: hidden;
}

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

/* ---------- Header ---------- */
.w2bc4-header {
  position: fixed; top: 0; left: 0; right: 0;
  max-width: 430px; margin: 0 auto;
  background: linear-gradient(180deg, #1B263B 0%, #16223a 100%);
  border-bottom: 0.1rem solid var(--w2bc4-border);
  z-index: 1000;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.8rem 1.2rem;
  height: 5.4rem;
}
.w2bc4-brand { display: flex; align-items: center; gap: 0.8rem; }
.w2bc4-brand img { width: 2.8rem; height: 2.8rem; border-radius: 0.6rem; }
.w2bc4-brand-name { font-size: 1.8rem; font-weight: 700; color: var(--w2bc4-primary); letter-spacing: 0.05rem; }
.w2bc4-header-actions { display: flex; align-items: center; gap: 0.6rem; }
.w2bc4-menu-btn {
  background: transparent; border: 0.1rem solid var(--w2bc4-border);
  color: var(--w2bc4-text); width: 3.4rem; height: 3.4rem;
  border-radius: 0.8rem; font-size: 1.6rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}

/* ---------- Buttons ---------- */
.w2bc4-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
  padding: 0.7rem 1.4rem; border-radius: 2rem;
  font-weight: 700; font-size: 1.3rem; cursor: pointer;
  border: none; min-height: 4rem; touch-action: manipulation;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.w2bc4-btn:active { transform: scale(0.96); }
.w2bc4-btn-primary { background: linear-gradient(135deg, var(--w2bc4-primary), var(--w2bc4-primary-dark)); color: #10202e; }
.w2bc4-btn-secondary { background: transparent; color: var(--w2bc4-primary); border: 0.15rem solid var(--w2bc4-primary); }
.w2bc4-btn-accent { background: var(--w2bc4-accent); color: #2a1d00; }
.w2bc4-btn-block { display: flex; width: 100%; }

/* ---------- Mobile expandable menu ---------- */
#w2bc4-mobile-menu {
  position: fixed; top: 5.4rem; left: 0; right: 0; max-width: 430px; margin: 0 auto;
  background: #16223a; border-bottom: 0.1rem solid var(--w2bc4-border);
  max-height: 0; overflow: hidden; transition: max-height 0.3s ease; z-index: 9999;
}
#w2bc4-mobile-menu.w2bc4-menu-open { max-height: 48rem; }
.w2bc4-menu-list { list-style: none; padding: 0.8rem 1.2rem; }
.w2bc4-menu-list li { border-bottom: 0.1rem solid var(--w2bc4-border); }
.w2bc4-menu-list li:last-child { border-bottom: none; }
.w2bc4-menu-list a {
  display: flex; align-items: center; gap: 0.8rem;
  padding: 1.1rem 0.4rem; color: var(--w2bc4-text); font-size: 1.4rem;
}
.w2bc4-menu-list a i { color: var(--w2bc4-primary); font-size: 1.6rem; width: 2rem; text-align: center; }

/* ---------- Layout ---------- */
main { padding-top: 6.5rem; padding-bottom: 1rem; }
.w2bc4-container { padding: 0 1.2rem; }
.w2bc4-section { padding: 1.8rem 1.2rem; }
.w2bc4-section-title {
  font-size: 1.8rem; font-weight: 700; margin-bottom: 1rem;
  color: var(--w2bc4-text); border-left: 0.3rem solid var(--w2bc4-primary);
  padding-left: 0.8rem;
}
.w2bc4-section-title small { display: block; font-size: 1.2rem; color: var(--w2bc4-text-muted); font-weight: 400; }

/* ---------- Carousel ---------- */
.w2bc4-carousel {
  position: relative; border-radius: var(--w2bc4-radius); overflow: hidden;
  box-shadow: var(--w2bc4-shadow); margin-bottom: 1.2rem;
}
.w2bc4-slide {
  display: none; position: relative; cursor: pointer;
}
.w2bc4-slide.w2bc4-slide-active { display: block; }
.w2bc4-slide img { width: 100%; height: 18rem; object-fit: cover; }
.w2bc4-slide-cap {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,0.75));
  padding: 1.2rem; color: #fff;
}
.w2bc4-slide-cap h3 { font-size: 1.5rem; margin-bottom: 0.3rem; }
.w2bc4-slide-cap p { font-size: 1.2rem; color: var(--w2bc4-primary); font-weight: 600; }
.w2bc4-dots { display: flex; gap: 0.5rem; justify-content: center; padding: 0.6rem 0; }
.w2bc4-dot { width: 0.7rem; height: 0.7rem; border-radius: 50%; background: var(--w2bc4-border); cursor: pointer; }
.w2bc4-dot.w2bc4-dot-active { background: var(--w2bc4-primary); }

/* ---------- Game grid ---------- */
.w2bc4-game-section { margin-bottom: 2rem; }
.w2bc4-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.8rem;
}
.w2bc4-card {
  background: var(--w2bc4-bg-card); border: 0.1rem solid var(--w2bc4-border);
  border-radius: 1rem; overflow: hidden; cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.w2bc4-card:active { transform: scale(0.97); border-color: var(--w2bc4-primary); }
.w2bc4-card img { width: 100%; aspect-ratio: 1/1; object-fit: cover; background: #0e1828; }
.w2bc4-card-name {
  font-size: 1.05rem; text-align: center; padding: 0.5rem 0.3rem;
  color: var(--w2bc4-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.w2bc4-cat-badge {
  display: inline-block; background: var(--w2bc4-primary); color: #10202e;
  font-size: 1rem; font-weight: 700; padding: 0.2rem 0.7rem; border-radius: 0.8rem;
  margin-bottom: 0.8rem;
}

/* ---------- Info / promo blocks ---------- */
.w2bc4-info-card {
  background: var(--w2bc4-bg-card); border-radius: var(--w2bc4-radius);
  padding: 1.4rem; margin-bottom: 1.2rem; border: 0.1rem solid var(--w2bc4-border);
}
.w2bc4-info-card h3 { font-size: 1.5rem; margin-bottom: 0.6rem; color: var(--w2bc4-primary); }
.w2bc4-info-card p { font-size: 1.3rem; color: var(--w2bc4-text-muted); margin-bottom: 0.8rem; }
.w2bc4-info-card ul { list-style: none; padding-left: 0; }
.w2bc4-info-card li { padding: 0.5rem 0; font-size: 1.3rem; display: flex; gap: 0.6rem; }
.w2bc4-info-card li i { color: var(--w2bc4-primary); margin-top: 0.2rem; }

.w2bc4-promo-inline {
  display: inline-flex; align-items: center; gap: 0.4rem;
  color: var(--w2bc4-primary); font-weight: 700; cursor: pointer;
  border-bottom: 0.15rem dotted var(--w2bc4-primary); padding-bottom: 0.1rem;
}

.w2bc4-cta-band {
  background: linear-gradient(135deg, #21314a, #2c4a6b);
  border-radius: var(--w2bc4-radius); padding: 1.6rem; text-align: center;
  margin: 1.5rem 0; border: 0.1rem solid var(--w2bc4-primary);
}
.w2bc4-cta-band h3 { font-size: 1.7rem; margin-bottom: 0.5rem; }
.w2bc4-cta-band p { font-size: 1.2rem; color: var(--w2bc4-text-muted); margin-bottom: 1rem; }

/* ---------- Testimonials / winners ---------- */
.w2bc4-list { list-style: none; }
.w2bc4-list li {
  background: var(--w2bc4-bg-card); border-radius: 0.8rem; padding: 0.9rem 1.1rem;
  margin-bottom: 0.7rem; display: flex; justify-content: space-between; align-items: center;
  border: 0.1rem solid var(--w2bc4-border); font-size: 1.2rem;
}
.w2bc4-list .w2bc4-win-name { color: var(--w2bc4-text); }
.w2bc4-list .w2bc4-win-amt { color: var(--w2bc4-accent); font-weight: 700; }

/* ---------- Payment pills ---------- */
.w2bc4-pills { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.w2bc4-pill {
  background: var(--w2bc4-bg-card); border: 0.1rem solid var(--w2bc4-border);
  border-radius: 0.8rem; padding: 0.6rem 1rem; font-size: 1.2rem; color: var(--w2bc4-text);
  display: inline-flex; align-items: center; gap: 0.4rem;
}
.w2bc4-pill i { color: var(--w2bc4-primary); }

/* ---------- SEO text ---------- */
.w2bc4-seo-text { font-size: 1.3rem; color: var(--w2bc4-text-muted); line-height: 1.7rem; }
.w2bc4-seo-text p { margin-bottom: 0.9rem; }
.w2bc4-seo-text a { color: var(--w2bc4-primary); border-bottom: 0.1rem dotted; }

/* ---------- Footer ---------- */
.w2bc4-footer {
  background: #11192a; border-top: 0.1rem solid var(--w2bc4-border);
  padding: 2rem 1.2rem 6rem; margin-top: 2rem;
}
.w2bc4-footer-brand { font-size: 1.3rem; color: var(--w2bc4-text-muted); margin-bottom: 1.2rem; line-height: 1.7rem; }
.w2bc4-footer-links { display: flex; flex-wrap: wrap; gap: 0.6rem 1.2rem; margin-bottom: 1.2rem; }
.w2bc4-footer-links a { font-size: 1.2rem; color: var(--w2bc4-text); }
.w2bc4-footer-promos { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: 1.2rem; }
.w2bc4-footer-copy { font-size: 1.1rem; color: var(--w2bc4-text-muted); border-top: 0.1rem solid var(--w2bc4-border); padding-top: 1rem; }

/* ---------- Mobile bottom nav ---------- */
.w2bc4-bottomnav {
  position: fixed; bottom: 0; left: 0; right: 0; max-width: 430px; margin: 0 auto;
  background: #16223a; border-top: 0.1rem solid var(--w2bc4-border);
  height: 6rem; display: flex; justify-content: space-around; align-items: stretch;
  z-index: 1000;
}
.w2bc4-bottomnav-btn {
  flex: 1; min-width: 60px; min-height: 60px;
  background: transparent; border: none; color: var(--w2bc4-text-muted);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.2rem;
  font-size: 1rem; cursor: pointer; touch-action: manipulation;
  transition: color 0.15s ease, transform 0.15s ease;
}
.w2bc4-bottomnav-btn i { font-size: 2.2rem; }
.w2bc4-bottomnav-btn:active { transform: scale(0.9); }
.w2bc4-bottomnav-btn.w2bc4-bottomnav-active { color: var(--w2bc4-primary); }
.w2bc4-bottomnav-btn.w2bc4-bottomnav-active i { color: var(--w2bc4-accent); }

/* ---------- Reveal animation ---------- */
.w2bc4-reveal { opacity: 0; transform: translateY(1.5rem); transition: opacity 0.5s ease, transform 0.5s ease; }
.w2bc4-reveal.w2bc4-revealed { opacity: 1; transform: translateY(0); }

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

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