/* 456db core stylesheet - basefiles
   All custom classes use the "s9fb-" prefix.
   Palette: #141414 | #BAFFC9 | #36454F | #FF69B4 | #ECF0F1
   Mobile-first, max-width 430px. Root font 62.5% -> 1rem = 10px. */

:root {
  --s9fb-bg: #141414;
  --s9fb-bg-alt: #1c1c1c;
  --s9fb-surface: #36454F;
  --s9fb-primary: #FF69B4;
  --s9fb-accent: #BAFFC9;
  --s9fb-text: #ECF0F1;
  --s9fb-text-dim: #b9c2c7;
  --s9fb-border: rgba(236, 240, 241, 0.12);
  --s9fb-shadow: 0 4px 18px rgba(0, 0, 0, 0.45);
  --s9fb-radius: 14px;
}

* { 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(--s9fb-bg);
  color: var(--s9fb-text);
  line-height: 1.5rem;
  font-size: 1.5rem;
  max-width: 430px;
  margin: 0 auto;
  position: relative;
  min-height: 100vh;
  overflow-x: hidden;
}

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

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

/* ===== Header ===== */
.s9fb-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  max-width: 430px;
  margin: 0 auto;
  z-index: 1000;
  background: linear-gradient(135deg, #141414 0%, #36454F 100%);
  border-bottom: 2px solid var(--s9fb-primary);
  box-shadow: var(--s9fb-shadow);
}
.s9fb-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 1.2rem;
  min-height: 56px;
}
.s9fb-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--s9fb-text);
  font-weight: 700;
  font-size: 1.8rem;
}
.s9fb-logo img { width: 28px; height: 28px; border-radius: 6px; }
.s9fb-logo .s9fb-logo-accent { color: var(--s9fb-primary); }

.s9fb-header-actions { display: flex; align-items: center; gap: 0.6rem; }

.s9fb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: none;
  border-radius: 999px;
  font-size: 1.3rem;
  font-weight: 700;
  padding: 0.6rem 1.2rem;
  min-height: 36px;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.s9fb-btn:active { transform: scale(0.96); }
.s9fb-btn-register {
  background: linear-gradient(135deg, #FF69B4, #ff8fc7);
  color: #141414;
  box-shadow: 0 3px 10px rgba(255, 105, 180, 0.4);
}
.s9fb-btn-login {
  background: transparent;
  color: var(--s9fb-accent);
  border: 1.5px solid var(--s9fb-accent);
}

.s9fb-menu-btn {
  background: transparent;
  border: none;
  color: var(--s9fb-text);
  font-size: 2.2rem;
  width: 40px; height: 40px;
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer;
}

/* ===== Mobile expandable menu ===== */
.s9fb-mobile-menu {
  max-height: 0;
  overflow: hidden;
  background: #1c1c1c;
  border-top: 1px solid var(--s9fb-border);
  transition: max-height 0.3s ease;
}
.s9fb-mobile-menu.s9fb-menu-open { max-height: 520px; }
.s9fb-mobile-menu ul { list-style: none; padding: 0.6rem 1.2rem 1rem; }
.s9fb-mobile-menu li a {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1rem 0.6rem;
  color: var(--s9fb-text);
  border-bottom: 1px solid var(--s9fb-border);
  font-size: 1.4rem;
}
.s9fb-mobile-menu li a:active { color: var(--s9fb-primary); }
.s9fb-mobile-menu li a i { color: var(--s9fb-accent); width: 22px; text-align: center; }

/* ===== Main / sections ===== */
main { padding-top: 70px; padding-bottom: 80px; }
.s9fb-section { padding: 1.6rem 0; }
.s9fb-section-title {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--s9fb-text);
}
.s9fb-section-title::before {
  content: "";
  width: 4px; height: 18px;
  background: var(--s9fb-primary);
  border-radius: 4px;
}
.s9fb-lead { color: var(--s9fb-text-dim); font-size: 1.4rem; margin-bottom: 1rem; }

/* ===== Hero carousel ===== */
.s9fb-carousel {
  position: relative;
  border-radius: var(--s9fb-radius);
  overflow: hidden;
  box-shadow: var(--s9fb-shadow);
  margin-bottom: 1.4rem;
}
.s9fb-slides { position: relative; width: 100%; aspect-ratio: 16 / 9; }
.s9fb-slide {
  position: absolute; inset: 0;
  opacity: 0;
  transition: opacity 0.6s ease;
  cursor: pointer;
}
.s9fb-slide img { width: 100%; height: 100%; object-fit: cover; }
.s9fb-slide.s9fb-slide-active { opacity: 1; }
.s9fb-slide-caption {
  position: absolute;
  left: 1rem; bottom: 1rem;
  background: rgba(20, 20, 20, 0.55);
  padding: 0.5rem 0.9rem;
  border-radius: 8px;
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--s9fb-accent);
}
.s9fb-dots {
  position: absolute;
  right: 1rem; bottom: 1rem;
  display: flex; gap: 0.4rem;
}
.s9fb-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(236, 240, 241, 0.5);
  cursor: pointer;
}
.s9fb-dot.s9fb-dot-active { background: var(--s9fb-primary); }

/* ===== H1 hero text ===== */
.s9fb-h1 {
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 0.8rem;
  background: linear-gradient(135deg, #BAFFC9, #FF69B4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===== Category blocks ===== */
.s9fb-cat-head {
  display: flex; align-items: center; justify-content: space-between;
  margin: 1.4rem 0 0.8rem;
}
.s9fb-cat-head h2 {
  font-size: 1.6rem; font-weight: 700; color: var(--s9fb-text);
  display: flex; align-items: center; gap: 0.5rem;
}
.s9fb-cat-tag {
  font-size: 1.1rem; color: var(--s9fb-primary);
  background: rgba(255, 105, 180, 0.12);
  padding: 0.2rem 0.7rem; border-radius: 999px;
}

/* ===== Game grid (compact icon layout) ===== */
.s9fb-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
}
.s9fb-game-card {
  background: var(--s9fb-bg-alt);
  border: 1px solid var(--s9fb-border);
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease;
  text-align: center;
}
.s9fb-game-card:active { transform: scale(0.95); border-color: var(--s9fb-primary); }
.s9fb-game-card img {
  width: 100%; aspect-ratio: 1 / 1; object-fit: cover;
}
.s9fb-game-card .s9fb-game-name {
  font-size: 1.1rem;
  color: var(--s9fb-text);
  padding: 0.4rem 0.3rem 0.5rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ===== Info / feature cards ===== */
.s9fb-card {
  background: var(--s9fb-bg-alt);
  border: 1px solid var(--s9fb-border);
  border-radius: var(--s9fb-radius);
  padding: 1.2rem;
  margin-bottom: 1rem;
}
.s9fb-card h3 { font-size: 1.5rem; margin-bottom: 0.6rem; color: var(--s9fb-accent); }
.s9fb-card p { color: var(--s9fb-text-dim); font-size: 1.35rem; }
.s9fb-card a { font-weight: 600; }

.s9fb-feature-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.8rem;
}
.s9fb-feature {
  background: var(--s9fb-bg-alt);
  border-radius: 12px;
  padding: 1rem;
  border: 1px solid var(--s9fb-border);
}
.s9fb-feature .s9fb-feature-ico {
  width: 36px; height: 36px; border-radius: 10px;
  background: rgba(186, 255, 201, 0.12);
  color: var(--s9fb-accent);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 0.5rem; font-size: 1.8rem;
}
.s9fb-feature h3 { font-size: 1.35rem; margin-bottom: 0.3rem; color: var(--s9fb-text); }
.s9fb-feature p { font-size: 1.2rem; color: var(--s9fb-text-dim); }

/* ===== Winners strip ===== */
.s9fb-winners {
  display: flex; gap: 0.8rem; overflow-x: auto; padding-bottom: 0.4rem;
  scrollbar-width: none;
}
.s9fb-winners::-webkit-scrollbar { display: none; }
.s9fb-winner {
  min-width: 160px;
  background: var(--s9fb-bg-alt);
  border: 1px solid var(--s9fb-border);
  border-radius: 12px; padding: 0.8rem;
}
.s9fb-winner .s9fb-winner-amt { color: var(--s9fb-primary); font-weight: 800; font-size: 1.6rem; }
.s9fb-winner .s9fb-winner-name { font-size: 1.2rem; color: var(--s9fb-text-dim); }

/* ===== Payment methods ===== */
.s9fb-pay { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.s9fb-pay span {
  background: var(--s9fb-bg-alt);
  border: 1px solid var(--s9fb-border);
  border-radius: 999px;
  padding: 0.5rem 1rem;
  font-size: 1.2rem;
  color: var(--s9fb-text);
}

/* ===== Testimonials ===== */
.s9fb-testimonial {
  background: var(--s9fb-bg-alt);
  border-left: 3px solid var(--s9fb-primary);
  border-radius: 10px;
  padding: 1rem;
  margin-bottom: 0.8rem;
}
.s9fb-testimonial p { font-size: 1.3rem; color: var(--s9fb-text); }
.s9fb-testimonial .s9fb-testimonial-author { font-size: 1.1rem; color: var(--s9fb-accent); margin-top: 0.4rem; }

/* ===== App download CTA ===== */
.s9fb-app-cta {
  background: linear-gradient(135deg, #36454F, #141414);
  border: 1px solid var(--s9fb-primary);
  border-radius: var(--s9fb-radius);
  padding: 1.4rem;
  text-align: center;
  margin: 1.4rem 0;
}
.s9fb-app-cta h3 { color: var(--s9fb-primary); font-size: 1.6rem; margin-bottom: 0.5rem; }
.s9fb-app-cta p { color: var(--s9fb-text-dim); font-size: 1.3rem; margin-bottom: 1rem; }

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

/* ===== Footer ===== */
.s9fb-footer {
  background: #0f0f0f;
  border-top: 2px solid var(--s9fb-surface);
  padding: 1.6rem 1.2rem 1.4rem;
  margin-top: 1.6rem;
}
.s9fb-footer-about { color: var(--s9fb-text-dim); font-size: 1.3rem; margin-bottom: 1rem; }
.s9fb-footer-links {
  display: flex; flex-wrap: wrap; gap: 0.6rem 1rem; margin-bottom: 1rem;
}
.s9fb-footer-links a { font-size: 1.25rem; color: var(--s9fb-text); }
.s9fb-footer-links a:hover { color: var(--s9fb-accent); }
.s9fb-footer-promos { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: 1rem; }
.s9fb-footer-promos button {
  flex: 1 1 auto;
  background: var(--s9fb-primary); color: #141414;
  border: none; border-radius: 999px;
  padding: 0.5rem 0.9rem; font-weight: 700; font-size: 1.2rem; cursor: pointer;
}
.s9fb-footer-promos button:nth-child(even) {
  background: transparent; color: var(--s9fb-accent); border: 1.5px solid var(--s9fb-accent);
}
.s9fb-copyright { font-size: 1.15rem; color: #7a8085; text-align: center; }

/* ===== Mobile bottom navigation ===== */
.s9fb-bottomnav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  max-width: 430px; margin: 0 auto;
  height: 62px;
  background: linear-gradient(180deg, #1c1c1c, #0f0f0f);
  border-top: 2px solid var(--s9fb-primary);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
}
.s9fb-bottomnav-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(--s9fb-text-dim);
  cursor: pointer;
  transition: color 0.15s ease, transform 0.15s ease;
}
.s9fb-bottomnav-btn:active { transform: scale(0.92); }
.s9fb-bottomnav-btn i,
.s9fb-bottomnav-btn .material-icons-outlined,
.s9fb-bottomnav-btn .icon { font-size: 22px; }
.s9fb-bottomnav-btn .ion-icon { font-size: 24px; }
.s9fb-bottomnav-btn span { font-size: 1.05rem; }
.s9fb-bottomnav-active { color: var(--s9fb-primary); }
.s9fb-bottomnav-active i,
.s9fb-bottomnav-active .material-icons-outlined,
.s9fb-bottomnav-active .ion-icon { color: var(--s9fb-primary); }

/* ===== Desktop: hide bottom nav ===== */
@media (min-width: 769px) {
  .s9fb-bottomnav { display: none; }
}

/* ===== Mobile bottom clearance for bottom nav ===== */
@media (max-width: 768px) {
  main { padding-bottom: 80px; }
}

/* ===== Utility ===== */
.s9fb-text-center { text-align: center; }
.s9fb-mt-1 { margin-top: 1rem; }
.s9fb-mb-1 { margin-bottom: 1rem; }
.s9fb-divider { height: 1px; background: var(--s9fb-border); margin: 1.2rem 0; border: none; }
