/* ab999-homes core stylesheet - basefiles
   Class prefix: v34b-
   Palette: #2C2C2C (bg) | #95A5A6 (muted) | #F8F8FF (text) | #DCDCDC (soft)
   Mobile-first, max-width 430px. rem units, root font 62.5%. */

:root {
  --v34b-primary: #2C2C2C;
  --v34b-bg: #2C2C2C;
  --v34b-bg-2: #1f1f1f;
  --v34b-bg-3: #3a3a3a;
  --v34b-text: #F8F8FF;
  --v34b-soft: #DCDCDC;
  --v34b-muted: #95A5A6;
  --v34b-accent: #d4af37;
  --v34b-accent-2: #e74c3c;
  --v34b-accent-3: #27ae60;
  --v34b-line: rgba(220, 220, 220, 0.14);
  --v34b-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
  --v34b-radius: 1.2rem;
  --v34b-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: "Hind Siliguri", "Noto Sans Bengali", "Segoe UI", system-ui, -apple-system, sans-serif;
  background: var(--v34b-bg);
  color: var(--v34b-text);
  line-height: 1.5rem;
  font-size: 1.5rem;
  max-width: 430px;
  margin: 0 auto;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: var(--v34b-accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Layout containers */
.v34b-wrapper { width: 100%; max-width: 430px; margin: 0 auto; position: relative; }
.v34b-container { width: 100%; padding: 0 1.2rem; }
.v34b-main { padding-bottom: 80px; }

/* ===== Header ===== */
.v34b-header {
  position: fixed; top: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 430px; z-index: 1000;
  background: linear-gradient(180deg, #232323 0%, #2C2C2C 100%);
  border-bottom: 1px solid var(--v34b-line);
  box-shadow: var(--v34b-shadow);
}
.v34b-header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.8rem 1.2rem; gap: 0.8rem;
}
.v34b-brand { display: flex; align-items: center; gap: 0.7rem; min-width: 0; }
.v34b-brand img { width: 30px; height: 30px; border-radius: 0.6rem; }
.v34b-brand-name {
  font-size: 1.9rem; font-weight: 800; color: var(--v34b-text);
  letter-spacing: 0.5px; white-space: nowrap;
}
.v34b-brand-name span { color: var(--v34b-accent); }
.v34b-header-actions { display: flex; align-items: center; gap: 0.6rem; }
.v34b-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
  font-size: 1.3rem; font-weight: 700; border: none; border-radius: var(--v34b-radius-sm);
  padding: 0.7rem 1.2rem; cursor: pointer; min-height: 44px; line-height: 1;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.v34b-btn:active { transform: scale(0.96); }
.v34b-btn-login { background: transparent; color: var(--v34b-text); border: 1px solid var(--v34b-muted); }
.v34b-btn-register { background: linear-gradient(135deg, #d4af37 0%, #e7c558 100%); color: #2C2C2C; }
.v34b-menu-btn {
  background: transparent; border: none; color: var(--v34b-text);
  font-size: 2.2rem; cursor: pointer; min-width: 44px; min-height: 44px;
  display: inline-flex; align-items: center; justify-content: center;
}

/* Expandable mobile menu */
.v34b-mobile-menu {
  max-height: 0; overflow: hidden;
  background: var(--v34b-bg-2); border-top: 1px solid var(--v34b-line);
  transition: max-height 0.3s ease;
}
.v34b-mobile-menu.v34b-open { max-height: 520px; }
.v34b-mobile-menu ul { list-style: none; padding: 0.6rem 1.2rem 1rem; }
.v34b-mobile-menu li { border-bottom: 1px solid var(--v34b-line); }
.v34b-mobile-menu li:last-child { border-bottom: none; }
.v34b-mobile-menu a {
  display: block; padding: 1.1rem 0.4rem; color: var(--v34b-text);
  font-size: 1.5rem; font-weight: 600;
}
.v34b-mobile-menu a i { color: var(--v34b-accent); margin-right: 0.8rem; width: 22px; text-align: center; }

/* ===== Hero / Carousel ===== */
.v34b-hero { margin-top: 64px; padding: 1rem 0 0.4rem; }
.v34b-carousel { position: relative; width: 100%; border-radius: var(--v34b-radius); overflow: hidden; box-shadow: var(--v34b-shadow); }
.v34b-slides { position: relative; width: 100%; aspect-ratio: 16 / 9; }
.v34b-slide {
  position: absolute; inset: 0; opacity: 0; transition: opacity 0.6s ease;
  cursor: pointer;
}
.v34b-slide.v34b-active { opacity: 1; }
.v34b-slide img { width: 100%; height: 100%; object-fit: cover; }
.v34b-slide-overlay {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 1rem 1.2rem; background: linear-gradient(0deg, rgba(0,0,0,0.75), transparent);
  color: var(--v34b-text); font-weight: 700; font-size: 1.6rem;
}
.v34b-dots { display: flex; justify-content: center; gap: 0.6rem; padding: 0.8rem 0; }
.v34b-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--v34b-muted); cursor: pointer; opacity: 0.6; }
.v34b-dot.v34b-active { background: var(--v34b-accent); opacity: 1; transform: scale(1.25); }

/* ===== Section base ===== */
.v34b-section { padding: 1.6rem 0; }
.v34b-section-title {
  font-size: 2rem; font-weight: 800; margin-bottom: 1rem;
  color: var(--v34b-text); display: flex; align-items: center; gap: 0.7rem;
}
.v34b-section-title i { color: var(--v34b-accent); font-size: 2.2rem; }
.v34b-section-title small { font-size: 1.2rem; color: var(--v34b-muted); font-weight: 500; }

.v34b-h1 {
  font-size: 2.2rem; font-weight: 800; line-height: 1.35; margin: 0.4rem 0 1rem;
  color: var(--v34b-text);
}
.v34b-h1 span { color: var(--v34b-accent); }
.v34b-lead { color: var(--v34b-soft); font-size: 1.45rem; margin-bottom: 1.2rem; }

/* ===== Category chips ===== */
.v34b-chips { display: flex; gap: 0.6rem; overflow-x: auto; padding: 0.4rem 0 1rem; -webkit-overflow-scrolling: touch; }
.v34b-chips::-webkit-scrollbar { display: none; }
.v34b-chip {
  white-space: nowrap; padding: 0.6rem 1.2rem; border-radius: 999px;
  background: var(--v34b-bg-3); color: var(--v34b-soft); font-size: 1.3rem; font-weight: 600;
  border: 1px solid var(--v34b-line); cursor: pointer; min-height: 36px;
  transition: background 0.15s ease, color 0.15s ease;
}
.v34b-chip.v34b-active { background: var(--v34b-accent); color: #2C2C2C; border-color: var(--v34b-accent); }

/* ===== Game grid ===== */
.v34b-cat-block { margin-bottom: 1.6rem; scroll-margin-top: 72px; }
.v34b-cat-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 0.8rem;
}
.v34b-cat-head h2 { font-size: 1.8rem; font-weight: 800; color: var(--v34b-text); }
.v34b-cat-head h2 i { color: var(--v34b-accent); margin-right: 0.5rem; }
.v34b-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.8rem;
}
.v34b-card {
  background: var(--v34b-bg-2); border: 1px solid var(--v34b-line);
  border-radius: var(--v34b-radius-sm); overflow: hidden; cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease;
  display: flex; flex-direction: column;
}
.v34b-card:active { transform: scale(0.97); border-color: var(--v34b-accent); }
.v34b-card-img { width: 100%; aspect-ratio: 1; object-fit: cover; background: #111; }
.v34b-card-name {
  font-size: 1.15rem; color: var(--v34b-soft); padding: 0.5rem 0.4rem 0.6rem;
  text-align: center; line-height: 1.25; font-weight: 600;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* ===== Info / feature blocks ===== */
.v34b-card-info {
  background: var(--v34b-bg-2); border: 1px solid var(--v34b-line);
  border-radius: var(--v34b-radius); padding: 1.4rem; margin-bottom: 1.2rem;
}
.v34b-card-info h3 { font-size: 1.7rem; font-weight: 800; margin-bottom: 0.7rem; color: var(--v34b-text); }
.v34b-card-info h3 i { color: var(--v34b-accent); margin-right: 0.5rem; }
.v34b-card-info p { color: var(--v34b-soft); font-size: 1.4rem; margin-bottom: 0.6rem; }
.v34b-card-info p:last-child { margin-bottom: 0; }

.v34b-list { list-style: none; padding: 0; }
.v34b-list li { padding: 0.6rem 0 0.6rem 1.8rem; position: relative; color: var(--v34b-soft); font-size: 1.4rem; border-bottom: 1px dashed var(--v34b-line); }
.v34b-list li:last-child { border-bottom: none; }
.v34b-list li::before { content: "\f00c"; font-family: "Font Awesome 6 Free"; font-weight: 900; color: var(--v34b-accent-3); position: absolute; left: 0; top: 0.7rem; font-size: 1.2rem; }

/* Promo CTA banner */
.v34b-cta {
  background: linear-gradient(135deg, #3a3a3a 0%, #2C2C2C 100%);
  border: 1px solid var(--v34b-accent); border-radius: var(--v34b-radius);
  padding: 1.4rem; text-align: center; margin: 1.2rem 0;
}
.v34b-cta h3 { color: var(--v34b-accent); font-size: 1.8rem; margin-bottom: 0.5rem; }
.v34b-cta p { color: var(--v34b-soft); font-size: 1.35rem; margin-bottom: 1rem; }
.v34b-cta .v34b-btn { width: 100%; }

/* Inline promo text link */
.v34b-promo-link { color: var(--v34b-accent); font-weight: 700; cursor: pointer; }
.v34b-promo-link:hover { text-decoration: underline; }

/* Stats / RTP compact grid */
.v34b-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.7rem; }
.v34b-stat { background: var(--v34b-bg-3); border-radius: var(--v34b-radius-sm); padding: 0.9rem; text-align: center; }
.v34b-stat b { display: block; font-size: 1.8rem; color: var(--v34b-accent); }
.v34b-stat span { font-size: 1.2rem; color: var(--v34b-muted); }

/* Testimonials */
.v34b-review { background: var(--v34b-bg-2); border-radius: var(--v34b-radius-sm); padding: 1rem; margin-bottom: 0.8rem; border-left: 3px solid var(--v34b-accent); }
.v34b-review p { color: var(--v34b-soft); font-size: 1.35rem; font-style: italic; margin-bottom: 0.4rem; }
.v34b-review b { color: var(--v34b-text); font-size: 1.25rem; }

/* Winners showcase */
.v34b-winner { display: flex; align-items: center; gap: 0.8rem; padding: 0.7rem 0; border-bottom: 1px solid var(--v34b-line); }
.v34b-winner:last-child { border-bottom: none; }
.v34b-winner img { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; }
.v34b-winner b { color: var(--v34b-text); font-size: 1.35rem; }
.v34b-winner span { color: var(--v34b-accent-3); font-weight: 700; font-size: 1.3rem; }

/* Payment methods */
.v34b-pay { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.v34b-pay span { background: var(--v34b-bg-3); border: 1px solid var(--v34b-line); border-radius: 0.6rem; padding: 0.5rem 0.9rem; font-size: 1.25rem; color: var(--v34b-soft); }

/* App download CTA */
.v34b-app { background: var(--v34b-bg-2); border-radius: var(--v34b-radius); padding: 1.2rem; text-align: center; border: 1px solid var(--v34b-line); }
.v34b-app h3 { color: var(--v34b-accent); font-size: 1.7rem; margin-bottom: 0.5rem; }
.v34b-app .v34b-btn { margin-top: 0.8rem; width: 100%; }

/* ===== Footer ===== */
.v34b-footer {
  background: var(--v34b-bg-2); border-top: 1px solid var(--v34b-line);
  padding: 1.6rem 1.2rem 2.4rem; margin-top: 1.6rem;
}
.v34b-footer-brand { color: var(--v34b-soft); font-size: 1.3rem; line-height: 1.5; margin-bottom: 1rem; }
.v34b-footer-brand b { color: var(--v34b-accent); }
.v34b-footer-promos { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 0.8rem 0 1.2rem; }
.v34b-footer-promos .v34b-btn { flex: 1 1 auto; min-width: 120px; }
.v34b-footer-links { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.5rem 0.8rem; margin-bottom: 1rem; }
.v34b-footer-links a { color: var(--v34b-muted); font-size: 1.3rem; }
.v34b-footer-links a:hover { color: var(--v34b-accent); }
.v34b-footer-copy { color: var(--v34b-muted); font-size: 1.2rem; text-align: center; border-top: 1px solid var(--v34b-line); padding-top: 1rem; }

/* ===== Mobile bottom nav ===== */
.v34b-bottomnav {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 430px; z-index: 1000; height: 62px;
  background: linear-gradient(180deg, #2C2C2C 0%, #1c1c1c 100%);
  border-top: 1px solid var(--v34b-line);
  display: flex; justify-content: space-around; align-items: stretch;
  box-shadow: 0 -2px 12px rgba(0,0,0,0.5);
}
.v34b-navbtn {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 0.2rem; background: transparent; border: none; color: var(--v34b-muted);
  cursor: pointer; min-width: 60px; min-height: 60px; padding: 0.3rem;
  transition: color 0.15s ease, transform 0.15s ease;
}
.v34b-navbtn i, .v34b-navbtn .material-icons-outlined, .v34b-navbtn .icon { font-size: 22px; }
.v34b-navbtn span { font-size: 1.1rem; font-weight: 600; }
.v34b-navbtn:active { transform: scale(0.92); }
.v34b-navbtn.v34b-active { color: var(--v34b-accent); }
.v34b-navbtn.v34b-promo { color: var(--v34b-accent); }

/* Back to top */
.v34b-topbtn {
  position: fixed; right: 1.2rem; bottom: 76px; z-index: 999;
  width: 42px; height: 42px; border-radius: 50%; background: var(--v34b-accent);
  color: #2C2C2C; border: none; font-size: 1.8rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center; box-shadow: var(--v34b-shadow);
}

/* ===== Desktop: hide bottom nav, expand layout ===== */
@media (min-width: 769px) {
  .v34b-bottomnav { display: none; }
  .v34b-main { padding-bottom: 2rem; }
  body { max-width: 430px; }
}

/* Responsive grid tweaks */
@media (max-width: 360px) {
  .v34b-grid { grid-template-columns: repeat(2, 1fr); }
  .v34b-brand-name { font-size: 1.7rem; }
}

/* Utility */
.v34b-hide { display: none !important; }
.v34b-text-muted { color: var(--v34b-muted); }
.v34b-mt-1 { margin-top: 1rem; }
.v34b-mb-1 { margin-bottom: 1rem; }
