/* cv777.sbs design.css - all custom classes use the sbf8- prefix */
/* Palette: #2F2F2F | #262626 | #006400 | #5D5D5D | #D3D3D3 */

:root {
  --sbf8-bg: #2F2F2F;
  --sbf8-bg2: #262626;
  --sbf8-accent: #006400;
  --sbf8-accent2: #228B22;
  --sbf8-mid: #5D5D5D;
  --sbf8-light: #D3D3D3;
  --sbf8-card: #3a3a3a;
  --sbf8-line: rgba(211, 211, 211, 0.12);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; font-size: 62.5%; }
body {
  margin: 0;
  font-family: 'Hind Siliguri', 'Noto Sans Bengali', 'Segoe UI', system-ui, sans-serif;
  background: var(--sbf8-bg);
  color: var(--sbf8-light);
  line-height: 1.55;
  overflow-x: hidden;
}

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

/* ---------- Mobile frame ---------- */
.sbf8-shell {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  min-height: 100vh;
  background: var(--sbf8-bg);
  position: relative;
  box-shadow: 0 0 40px rgba(0,0,0,0.4);
}

/* ---------- Header ---------- */
.sbf8-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: linear-gradient(180deg, #262626 0%, #2F2F2F 100%);
  border-bottom: 1px solid var(--sbf8-line);
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.sbf8-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 18px;
  color: #fff;
}
.sbf8-logo img { width: 30px; height: 30px; border-radius: 6px; }
.sbf8-logo span { color: var(--sbf8-accent2); }
.sbf8-header-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}
.sbf8-btn {
  font-family: inherit;
  border: none;
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: transform .15s ease, opacity .15s ease;
}
.sbf8-btn:active { transform: scale(0.95); opacity: 0.9; }
.sbf8-btn-login {
  background: transparent;
  border: 1px solid var(--sbf8-mid);
  color: var(--sbf8-light);
}
.sbf8-btn-register {
  background: linear-gradient(135deg, var(--sbf8-accent) 0%, var(--sbf8-accent2) 100%);
  color: #fff;
  box-shadow: 0 4px 12px rgba(0,100,0,0.45);
}
.sbf8-icon-btn {
  background: transparent;
  border: none;
  color: var(--sbf8-light);
  font-size: 20px;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.sbf8-icon-btn:active { background: rgba(211,211,211,0.08); }

/* ---------- Mobile menu drawer ---------- */
.sbf8-menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
  z-index: 9998;
}
.sbf8-menu-open ~ .sbf8-menu-overlay,
.sbf8-menu-overlay.sbf8-active { opacity: 1; pointer-events: auto; }
.sbf8-mobilemenu {
  position: fixed;
  top: 0;
  right: 0;
  height: 100%;
  width: 82%;
  max-width: 360px;
  background: var(--sbf8-bg2);
  transform: translateX(105%);
  transition: transform .28s ease;
  z-index: 9999;
  padding: 18px;
  overflow-y: auto;
}
.sbf8-mobilemenu.sbf8-menu-open { transform: translateX(0); }
.sbf8-mobilemenu h3 {
  margin: 0 0 12px;
  font-size: 16px;
  color: #fff;
  border-bottom: 1px solid var(--sbf8-line);
  padding-bottom: 10px;
}
.sbf8-mobilemenu a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 10px;
  border-radius: 8px;
  color: var(--sbf8-light);
  font-size: 14px;
  border-bottom: 1px dashed var(--sbf8-line);
}
.sbf8-mobilemenu a:active { background: rgba(0,100,0,0.18); }
.sbf8-mobilemenu a i { color: var(--sbf8-accent2); font-size: 18px; width: 22px; text-align: center; }
.sbf8-noscroll { overflow: hidden; }

/* ---------- Main ---------- */
main.sbf8-main { padding-bottom: 88px; }

/* ---------- Hero carousel ---------- */
.sbf8-hero {
  margin: 12px;
  border-radius: 14px;
  background: linear-gradient(135deg, #1c1c1c 0%, #2F2F2F 100%);
  border: 1px solid var(--sbf8-line);
  padding: 14px;
  position: relative;
}
.sbf8-hero-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.sbf8-hero-title {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 6px;
}
.sbf8-hero-title .material-icons,
.sbf8-hero-title i { color: var(--sbf8-accent2); }
.sbf8-hero-cta { display: flex; gap: 6px; }
.sbf8-hero-track {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 6px;
}
.sbf8-hero-track::-webkit-scrollbar { display: none; }
.sbf8-hero-card {
  flex: 0 0 220px;
  scroll-snap-align: start;
  border-radius: 12px;
  overflow: hidden;
  background: var(--sbf8-card);
  border: 1px solid var(--sbf8-line);
}
.sbf8-hero-card img { width: 100%; height: 110px; object-fit: cover; }
.sbf8-hero-card-body { padding: 10px; }
.sbf8-hero-card-body strong { color: #fff; display: block; font-size: 13px; }
.sbf8-hero-card-body span { font-size: 11px; color: var(--sbf8-mid); }

/* ---------- Section / rows ---------- */
.sbf8-section { margin: 16px 12px; }
.sbf8-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.sbf8-section-title {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
}
.sbf8-section-title i,
.sbf8-section-title .material-icons { color: var(--sbf8-accent2); font-size: 20px; }
.sbf8-section-more { font-size: 12px; color: var(--sbf8-light); }

.sbf8-row-wrap { position: relative; }
.sbf8-row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 92px;
  gap: 10px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 4px 0 8px;
}
.sbf8-row::-webkit-scrollbar { display: none; }
.sbf8-arrow-prev,
.sbf8-arrow-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(0,0,0,0.65);
  color: #fff;
  border: 1px solid var(--sbf8-line);
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 5;
}
.sbf8-arrow-prev { left: -6px; }
.sbf8-arrow-next { right: -6px; }
@media (min-width: 769px) {
  .sbf8-arrow-prev, .sbf8-arrow-next { display: inline-flex; }
}

/* ---------- Game card ---------- */
.sbf8-game-card {
  scroll-snap-align: start;
  text-align: center;
  cursor: pointer;
}
.sbf8-game-thumb {
  width: 92px;
  height: 92px;
  border-radius: 12px;
  overflow: hidden;
  background: var(--sbf8-card);
  border: 1px solid var(--sbf8-line);
  transition: transform .15s ease, box-shadow .15s ease;
}
.sbf8-game-card:active .sbf8-game-thumb {
  transform: scale(0.96);
  box-shadow: 0 6px 16px rgba(0,100,0,0.35);
}
.sbf8-game-thumb img { width: 100%; height: 100%; object-fit: cover; }
.sbf8-game-name {
  font-size: 11px;
  margin-top: 5px;
  color: var(--sbf8-light);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 92px;
}

/* ---------- Promo banner ---------- */
.sbf8-promo {
  margin: 16px 12px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--sbf8-accent) 0%, var(--sbf8-accent2) 100%);
  padding: 16px;
  color: #fff;
  text-align: center;
  box-shadow: 0 8px 20px rgba(0,100,0,0.35);
}
.sbf8-promo h2 { margin: 0 0 6px; font-size: 18px; }
.sbf8-promo p { margin: 0 0 12px; font-size: 12px; opacity: .92; }
.sbf8-promo .sbf8-btn-register { display: inline-block; }

/* ---------- SEO content ---------- */
.sbf8-content {
  margin: 16px 12px;
  background: var(--sbf8-bg2);
  border: 1px solid var(--sbf8-line);
  border-radius: 12px;
  padding: 16px;
  font-size: 13.5px;
  color: var(--sbf8-light);
}
.sbf8-content h2 { color: #fff; font-size: 16px; margin: 0 0 8px; }
.sbf8-content h3 { color: #fff; font-size: 14px; margin: 14px 0 6px; }
.sbf8-content p { margin: 0 0 10px; }
.sbf8-content a { color: var(--sbf8-accent2); text-decoration: underline; }

/* ---------- Footer ---------- */
.sbf8-footer {
  background: var(--sbf8-bg2);
  border-top: 1px solid var(--sbf8-line);
  padding: 20px 14px 24px;
  margin-top: 12px;
  font-size: 12px;
}
.sbf8-footer-cols {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-bottom: 14px;
}
.sbf8-footer h4 {
  color: #fff;
  margin: 0 0 8px;
  font-size: 13px;
  border-bottom: 1px solid var(--sbf8-line);
  padding-bottom: 4px;
}
.sbf8-footer a {
  display: block;
  padding: 4px 0;
  color: var(--sbf8-light);
}
.sbf8-footer a:hover { color: var(--sbf8-accent2); }
.sbf8-footer-bottom {
  border-top: 1px solid var(--sbf8-line);
  padding-top: 10px;
  color: var(--sbf8-mid);
  font-size: 11px;
  text-align: center;
}

/* ---------- Mobile bottom nav ---------- */
.sbf8-bottomnav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  background: linear-gradient(180deg, #2F2F2F 0%, #262626 100%);
  border-top: 1px solid var(--sbf8-line);
  display: flex;
  justify-content: space-around;
  align-items: stretch;
  padding: 6px 4px 8px;
  z-index: 1000;
  box-shadow: 0 -4px 16px rgba(0,0,0,0.45);
}
.sbf8-nav-btn {
  flex: 1;
  min-width: 60px;
  min-height: 56px;
  background: transparent;
  border: none;
  color: var(--sbf8-light);
  font-family: inherit;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  cursor: pointer;
  border-radius: 10px;
  transition: color .15s ease, background .15s ease, transform .15s ease;
}
.sbf8-nav-btn i,
.sbf8-nav-btn .material-icons,
.sbf8-nav-btn ion-icon { font-size: 22px; }
.sbf8-nav-btn ion-icon { width: 22px; height: 22px; }
.sbf8-nav-btn span { font-size: 11px; }
.sbf8-nav-btn:active { transform: scale(0.92); }
.sbf8-nav-btn.sbf8-nav-active { color: var(--sbf8-accent2); }
.sbf8-nav-promo {
  background: linear-gradient(135deg, var(--sbf8-accent) 0%, var(--sbf8-accent2) 100%);
  color: #fff !important;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,100,0,0.45);
}
@media (min-width: 769px) {
  .sbf8-bottomnav { display: none; }
  main.sbf8-main { padding-bottom: 24px; }
}

/* ---------- Reveal animation ---------- */
.sbf8-reveal { opacity: 0; transform: translateY(14px); transition: opacity .45s ease, transform .45s ease; }
.sbf8-reveal.sbf8-visible { opacity: 1; transform: none; }

/* ---------- Back to top ---------- */
.sbf8-topbtn {
  position: fixed;
  right: 14px;
  bottom: 86px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--sbf8-accent);
  color: #fff;
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
  z-index: 900;
  box-shadow: 0 6px 16px rgba(0,0,0,0.4);
}
.sbf8-topbtn.sbf8-show { opacity: 1; pointer-events: auto; }
.sbf8-topbtn:active { transform: scale(0.92); }

/* ---------- Marquee ---------- */
.sbf8-marquee {
  background: var(--sbf8-bg2);
  border-top: 1px solid var(--sbf8-line);
  border-bottom: 1px solid var(--sbf8-line);
  padding: 6px 12px;
  font-size: 12px;
  color: var(--sbf8-light);
  overflow: hidden;
  white-space: nowrap;
}
.sbf8-marquee b { color: var(--sbf8-accent2); margin-right: 6px; }

/* ---------- Category badge ---------- */
.sbf8-cat-pill {
  display: inline-block;
  font-size: 10px;
  background: rgba(0,100,0,0.25);
  color: var(--sbf8-accent2);
  padding: 2px 8px;
  border-radius: 10px;
  margin-left: 6px;
  font-weight: 600;
}
