/*!
 * x baji - design-b1e6.css
 * Mobile-first styling for the x baji BD gaming homepage.
 * All custom classes use the ge62- prefix.
 * Code comments in English only.
 */

:root {
  --ge62-bg: #262626;
  --ge62-bg-soft: #2f2f2f;
  --ge62-bg-card: #1f1f1f;
  --ge62-text: #F5F5F5;
  --ge62-text-mute: #F8F9FA;
  --ge62-accent: #708090;
  --ge62-accent-2: #5a6b7d;
  --ge62-gold: #d9b46a;
  --ge62-gold-deep: #b88f3e;
  --ge62-danger: #c0392b;
  --ge62-success: #2e7d4f;
  --ge62-radius: 12px;
  --ge62-header-h: 56px;
  --ge62-bottom-h: 62px;
  --ge62-max: 430px;
}

* { 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, sans-serif;
  background: var(--ge62-bg);
  color: var(--ge62-text);
  line-height: 1.5rem;
  font-size: 1.5rem;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

a { color: var(--ge62-gold); text-decoration: none; }

.ge62-wrapper {
  width: 100%;
  max-width: var(--ge62-max);
  margin: 0 auto;
  position: relative;
}

/* ===== Header ===== */
.ge62-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--ge62-header-h);
  background: linear-gradient(180deg, rgba(31,31,31,0.98), rgba(38,38,38,0.95));
  border-bottom: 1px solid rgba(217,180,106,0.18);
  z-index: 1000;
  transition: box-shadow 0.25s ease;
}
.ge62-header-scrolled { box-shadow: 0 6px 18px rgba(0,0,0,0.45); }

.ge62-header-inner {
  max-width: var(--ge62-max);
  height: 100%;
  margin: 0 auto;
  padding: 0 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.ge62-brand { display: flex; align-items: center; gap: 8px; min-width: 0; }
.ge62-brand img { width: 28px; height: 28px; border-radius: 6px; }
.ge62-brand-text { font-weight: 700; font-size: 1.7rem; color: var(--ge62-text); white-space: nowrap; }
.ge62-brand-text b { color: var(--ge62-gold); }

.ge62-header-actions { display: flex; align-items: center; gap: 6px; }

.ge62-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border: none;
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 1.35rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  min-height: 36px;
  transition: transform 0.15s ease, filter 0.2s ease;
}
.ge62-btn:active { transform: scale(0.95); }
.ge62-btn-login { background: transparent; color: var(--ge62-text); border: 1px solid var(--ge62-accent); }
.ge62-btn-register { background: linear-gradient(135deg, var(--ge62-gold), var(--ge62-gold-deep)); color: #1a1a1a; }

.ge62-icon-btn {
  background: transparent;
  border: none;
  color: var(--ge62-text);
  font-size: 2rem;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: 8px;
}
.ge62-icon-btn:active { background: rgba(255,255,255,0.08); }

/* ===== Mobile dropdown menu ===== */
.ge62-mobile-menu {
  position: fixed;
  top: var(--ge62-header-h);
  left: 0; right: 0;
  background: var(--ge62-bg-soft);
  border-bottom: 1px solid rgba(217,180,106,0.18);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  z-index: 999;
}
.ge62-menu-open { max-height: 80vh; overflow-y: auto; }
.ge62-mobile-menu a {
  display: block;
  padding: 12px 18px;
  color: var(--ge62-text);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  font-size: 1.45rem;
}
.ge62-mobile-menu a:active { background: rgba(217,180,106,0.12); }
.ge62-mobile-menu a i { color: var(--ge62-gold); margin-right: 10px; width: 18px; }

/* ===== Main content spacing ===== */
.ge62-main {
  padding-top: calc(var(--ge62-header-h) + 8px);
  padding-bottom: calc(var(--ge62-bottom-h) + 24px);
  max-width: var(--ge62-max);
  margin: 0 auto;
}

/* ===== Carousel ===== */
.ge62-carousel {
  position: relative;
  margin: 12px;
  border-radius: var(--ge62-radius);
  overflow: hidden;
  aspect-ratio: 16 / 7;
  background: #111;
  cursor: pointer;
  max-width: 430px;
}
.ge62-carousel-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.6s ease;
}
.ge62-carousel-slide img { width: 100%; height: 100%; object-fit: cover; }
.ge62-slide-active { opacity: 1; }
.ge62-carousel-caption {
  position: absolute;
  left: 14px; bottom: 14px; right: 14px;
  background: linear-gradient(transparent, rgba(0,0,0,0.7));
  color: #fff;
  font-size: 1.4rem;
  font-weight: 600;
  padding-top: 18px;
}
.ge62-carousel-dots {
  position: absolute;
  bottom: 8px; left: 0; right: 0;
  display: flex; justify-content: center; gap: 6px;
}
.ge62-carousel-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,255,255,0.4);
  border: none; cursor: pointer; padding: 0;
}
.ge62-dot-active { background: var(--ge62-gold); }

/* ===== Section ===== */
.ge62-section { padding: 16px 12px; }
.ge62-section-title {
  font-size: 1.7rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--ge62-text);
  display: flex; align-items: center; gap: 8px;
}
.ge62-section-title i { color: var(--ge62-gold); }
.ge62-section-title span.en { color: var(--ge62-accent); font-size: 1.3rem; font-weight: 500; }

/* ===== Hero / H1 ===== */
.ge62-hero { padding: 8px 12px 4px; }
.ge62-hero h1 {
  font-size: 2.1rem;
  font-weight: 800;
  line-height: 2.6rem;
  color: var(--ge62-text);
}
.ge62-hero h1 b { color: var(--ge62-gold); }
.ge62-hero p { margin-top: 6px; color: var(--ge62-text-mute); font-size: 1.4rem; opacity: 0.85; }

/* ===== Filter tabs ===== */
.ge62-filter-bar {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 4px 12px 10px;
  scrollbar-width: none;
}
.ge62-filter-bar::-webkit-scrollbar { display: none; }
.ge62-filter-tab {
  flex: 0 0 auto;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--ge62-bg-card);
  border: 1px solid rgba(217,180,106,0.2);
  color: var(--ge62-text);
  font-size: 1.3rem;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
}
.ge62-filter-active {
  background: linear-gradient(135deg, var(--ge62-gold), var(--ge62-gold-deep));
  color: #1a1a1a;
  border-color: transparent;
  font-weight: 700;
}

/* ===== Game grid ===== */
.ge62-game-group { margin-bottom: 8px; }
.ge62-group-label {
  padding: 0 12px;
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--ge62-gold);
  margin: 14px 0 8px;
  display: flex; align-items: center; gap: 6px;
}
.ge62-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 0 12px;
}
.ge62-game-card {
  background: var(--ge62-bg-card);
  border-radius: 10px;
  padding: 6px;
  text-align: center;
  cursor: pointer;
  border: 1px solid rgba(255,255,255,0.05);
  transition: transform 0.15s ease, border-color 0.2s ease;
  overflow: hidden;
}
.ge62-game-card:active {
  transform: scale(0.96);
  border-color: var(--ge62-gold);
}
.ge62-game-thumb {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 8px;
  background: #111;
}
.ge62-game-name {
  font-size: 1.15rem;
  margin-top: 4px;
  color: var(--ge62-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.4rem;
}

/* ===== Promo CTA ===== */
.ge62-cta {
  display: block;
  margin: 14px 12px;
  padding: 12px;
  background: linear-gradient(135deg, rgba(217,180,106,0.18), rgba(112,128,144,0.18));
  border: 1px solid rgba(217,180,106,0.35);
  border-radius: var(--ge62-radius);
  text-align: center;
  cursor: pointer;
}
.ge62-cta-title { font-weight: 800; font-size: 1.6rem; color: var(--ge62-gold); }
.ge62-cta-sub { font-size: 1.25rem; color: var(--ge62-text-mute); margin-top: 2px; }
.ge62-cta-btn {
  display: inline-block;
  margin-top: 8px;
  padding: 9px 22px;
  background: linear-gradient(135deg, var(--ge62-gold), var(--ge62-gold-deep));
  color: #1a1a1a;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1.4rem;
}

/* ===== Info card ===== */
.ge62-card {
  background: var(--ge62-bg-card);
  border-radius: var(--ge62-radius);
  padding: 14px;
  margin: 12px;
  border: 1px solid rgba(255,255,255,0.06);
}
.ge62-card p { margin-bottom: 8px; color: var(--ge62-text-mute); font-size: 1.4rem; }
.ge62-card p:last-child { margin-bottom: 0; }
.ge62-card h3 { font-size: 1.55rem; margin-bottom: 8px; color: var(--ge62-text); }
.ge62-inline-link { color: var(--ge62-gold); font-weight: 700; }

/* ===== RTP table ===== */
.ge62-rtp-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 8px;
}
.ge62-rtp-item {
  background: rgba(255,255,255,0.04);
  border-radius: 8px;
  padding: 8px 10px;
}
.ge62-rtp-item .lbl { font-size: 1.2rem; color: var(--ge62-accent); }
.ge62-rtp-item .val { font-size: 1.6rem; font-weight: 700; color: var(--ge62-gold); }

/* ===== Testimonial ===== */
.ge62-testi-grid { display: grid; gap: 8px; }
.ge62-testi {
  background: rgba(255,255,255,0.04);
  border-radius: 8px;
  padding: 10px 12px;
}
.ge62-testi .name { color: var(--ge62-gold); font-weight: 700; font-size: 1.3rem; }
.ge62-testi .stars { color: var(--ge62-gold); font-size: 1.2rem; }
.ge62-testi p { font-size: 1.35rem; margin-top: 2px; }

/* ===== Winners ===== */
.ge62-winner {
  display: flex; justify-content: space-between; align-items: center;
  padding: 6px 0;
  border-bottom: 1px dashed rgba(255,255,255,0.08);
  font-size: 1.3rem;
}
.ge62-winner:last-child { border-bottom: none; }
.ge62-winner .amt { color: var(--ge62-success); font-weight: 700; }

/* ===== Payment chips ===== */
.ge62-pay-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.ge62-pay-chip {
  background: rgba(255,255,255,0.06);
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 1.2rem;
  color: var(--ge62-text);
  border: 1px solid rgba(217,180,106,0.15);
}

/* ===== App download box ===== */
.ge62-app-box {
  background: linear-gradient(135deg, rgba(112,128,144,0.2), rgba(217,180,106,0.1));
  border-radius: var(--ge62-radius);
  padding: 14px;
  margin: 12px;
  text-align: center;
  border: 1px solid rgba(217,180,106,0.25);
}
.ge62-app-box h3 { color: var(--ge62-gold); font-size: 1.6rem; margin-bottom: 4px; }
.ge62-app-box p { font-size: 1.3rem; color: var(--ge62-text-mute); }

/* ===== Footer ===== */
.ge62-footer {
  background: #1a1a1a;
  border-top: 1px solid rgba(217,180,106,0.18);
  padding: 18px 12px calc(var(--ge62-bottom-h) + 24px);
  max-width: var(--ge62-max);
  margin: 0 auto;
}
.ge62-footer-brand { font-size: 1.4rem; color: var(--ge62-text-mute); margin-bottom: 10px; opacity: 0.85; }
.ge62-footer-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 12px;
  margin: 10px 0;
}
.ge62-footer-links a { font-size: 1.3rem; color: var(--ge62-text); }
.ge62-footer-links a i { color: var(--ge62-gold); margin-right: 6px; }
.ge62-footer-promos {
  display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0;
}
.ge62-footer-promos button {
  flex: 1 1 45%;
  padding: 8px;
  border-radius: 6px;
  border: 1px solid rgba(217,180,106,0.3);
  background: rgba(217,180,106,0.08);
  color: var(--ge62-gold);
  font-size: 1.25rem;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
}
.ge62-copyright { font-size: 1.2rem; color: var(--ge62-accent); margin-top: 10px; text-align: center; }

/* ===== Mobile bottom nav ===== */
.ge62-bottom-nav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: var(--ge62-bottom-h);
  background: linear-gradient(180deg, #1f1f1f, #161616);
  border-top: 1px solid rgba(217,180,106,0.25);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
  max-width: var(--ge62-max);
  margin: 0 auto;
}
.ge62-bottom-nav-btn {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--ge62-text-mute);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-width: 60px;
  min-height: 60px;
  padding: 6px 2px;
  cursor: pointer;
  font-family: inherit;
  position: relative;
  transition: color 0.2s ease, transform 0.15s ease;
}
.ge62-bottom-nav-btn i,
.ge62-bottom-nav-btn span.material-icons-outlined,
.ge62-bottom-nav-btn ion-icon { font-size: 22px; }
.ge62-bottom-nav-btn .label { font-size: 1.05rem; opacity: 0.9; }
.ge62-bottom-nav-btn:active { transform: scale(0.92); }
.ge62-bottom-nav-btn.ge62-nav-current { color: var(--ge62-gold); }
.ge62-bottom-nav-btn.ge62-nav-current::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 28px; height: 3px;
  background: var(--ge62-gold);
  border-radius: 0 0 3px 3px;
}
.ge62-nav-badge {
  position: absolute;
  top: 4px; right: 18px;
  background: var(--ge62-danger);
  color: #fff;
  font-size: 0.95rem;
  min-width: 14px; height: 14px;
  padding: 0 3px;
  border-radius: 999px;
  display: flex; align-items: center; justify-content: center;
}

/* ===== Desktop: hide bottom nav, widen layout ===== */
@media (min-width: 769px) {
  .ge62-bottom-nav { display: none; }
  .ge62-footer { padding-bottom: 24px; }
  .ge62-main { padding-bottom: 24px; }
  .ge62-wrapper, .ge62-header-inner, .ge62-main, .ge62-footer { max-width: 760px; }
  .ge62-grid { grid-template-columns: repeat(6, 1fr); }
  .ge62-carousel { max-width: 100%; }
}

@media (max-width: 768px) {
  .ge62-main { padding-bottom: calc(var(--ge62-bottom-h) + 24px); }
}

/* Utility */
.ge62-sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
