/* ==========================================================================
   456b - design-0826.css
   Mobile-first styling. All custom classes use the s082- prefix.
   Palette: #0E1621 (bg) | #FFEB3B (accent) | #FFCCCB (soft) | #FF0000 (cta)
            #D3D3D3 (muted)
   ========================================================================== */

:root {
  --s082-bg: #0E1621;
  --s082-bg-alt: #15202E;
  --s082-bg-card: #1B2838;
  --s082-primary: #FFEB3B;
  --s082-secondary: #FFCCCB;
  --s082-cta: #FF0000;
  --s082-muted: #D3D3D3;
  --s082-text: #F5F7FA;
  --s082-border: #2A3B52;
  --s082-radius: 12px;
  --s082-shadow: 0 4px 18px rgba(0, 0, 0, 0.45);
  --s082-header-h: 56px;
  --s082-bnav-h: 60px;
}

* {
  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", Tahoma, sans-serif;
  background: var(--s082-bg);
  color: var(--s082-text);
  line-height: 1.5rem;
  font-size: 1.4rem;
  max-width: 430px;
  margin: 0 auto;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--s082-primary);
  text-decoration: none;
}

/* ---------- Layout ---------- */
.s082-container {
  width: 100%;
  padding: 0 1.2rem;
}

.s082-wrapper {
  padding-top: var(--s082-header-h);
  padding-bottom: calc(var(--s082-bnav-h) + 2rem);
}

.s082-section {
  padding: 2rem 1.2rem;
}

.s082-section-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--s082-primary);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.s082-section-title i {
  font-size: 2rem;
}

.s082-lead {
  color: var(--s082-muted);
  font-size: 1.4rem;
  margin-bottom: 1.2rem;
}

/* ---------- Header ---------- */
.s082-header {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  height: var(--s082-header-h);
  background: var(--s082-bg-alt);
  border-bottom: 1px solid var(--s082-border);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1rem;
}

.s082-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--s082-primary);
  font-weight: 800;
  font-size: 1.6rem;
}

.s082-brand img {
  width: 28px;
  height: 28px;
  border-radius: 6px;
}

.s082-header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.s082-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 36px;
  padding: 0 1rem;
  border-radius: 8px;
  border: none;
  font-weight: 700;
  font-size: 1.3rem;
  cursor: pointer;
  transition: transform 0.15s ease, opacity 0.15s ease;
  font-family: inherit;
}

.s082-btn:active {
  transform: scale(0.96);
}

.s082-btn-register {
  background: var(--s082-cta);
  color: #fff;
}

.s082-btn-login {
  background: var(--s082-primary);
  color: var(--s082-bg);
}

.s082-menu-btn {
  background: transparent;
  color: var(--s082-text);
  font-size: 2.2rem;
  padding: 0 0.4rem;
  min-width: 40px;
  min-height: 40px;
  border: none;
  cursor: pointer;
}

/* ---------- Mobile menu (expandable) ---------- */
.s082-mobile-menu {
  position: fixed;
  top: var(--s082-header-h);
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  background: var(--s082-bg-alt);
  border-bottom: 1px solid var(--s082-border);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  z-index: 9999;
}

.s082-mobile-menu.s082-open {
  max-height: 480px;
  padding: 0.8rem 1rem 1.2rem;
}

.s082-mobile-menu a {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1rem 0.6rem;
  color: var(--s082-text);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 1.4rem;
}

.s082-mobile-menu a i {
  color: var(--s082-primary);
  font-size: 1.8rem;
  width: 22px;
  text-align: center;
}

.s082-mobile-menu a:last-child {
  border-bottom: none;
}

/* ---------- Carousel ---------- */
.s082-carousel {
  position: relative;
  width: 100%;
  margin: 1rem 0 0;
  border-radius: var(--s082-radius);
  overflow: hidden;
  background: var(--s082-bg-alt);
}

.s082-slide {
  display: none;
  position: relative;
  cursor: pointer;
}

.s082-slide.s082-active {
  display: block;
}

.s082-slide img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.s082-slide-cap {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  padding: 0.8rem 1rem;
  background: linear-gradient(transparent, rgba(14, 22, 33, 0.9));
  color: var(--s082-primary);
  font-weight: 700;
  font-size: 1.4rem;
}

.s082-dots {
  position: absolute;
  bottom: 8px;
  right: 10px;
  display: flex;
  gap: 6px;
  z-index: 2;
}

.s082-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
}

.s082-dot.s082-active {
  background: var(--s082-primary);
}

/* ---------- H1 hero ---------- */
.s082-hero {
  padding: 1.4rem 1.2rem 0.4rem;
}

.s082-hero h1 {
  font-size: 2rem;
  line-height: 2.6rem;
  color: var(--s082-primary);
  font-weight: 800;
  margin-bottom: 0.6rem;
}

.s082-hero p {
  color: var(--s082-muted);
  font-size: 1.35rem;
}

/* ---------- Game grid ---------- */
.s082-cat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 1.6rem 0 0.8rem;
  padding: 0 1.2rem;
}

.s082-cat-head h2 {
  font-size: 1.6rem;
  color: var(--s082-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.s082-cat-head .s082-more {
  font-size: 1.2rem;
  color: var(--s082-secondary);
}

.s082-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.6rem;
  padding: 0 1.2rem;
}

.s082-game {
  background: var(--s082-bg-card);
  border: 1px solid var(--s082-border);
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.s082-game:active {
  transform: scale(0.96);
  border-color: var(--s082-primary);
}

.s082-game img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: #000;
}

.s082-game-name {
  font-size: 1.05rem;
  color: var(--s082-text);
  text-align: center;
  padding: 0.35rem 0.2rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-height: 2.4rem;
  line-height: 2.4rem;
}

/* ---------- Cards / modules ---------- */
.s082-card {
  background: var(--s082-bg-card);
  border: 1px solid var(--s082-border);
  border-radius: var(--s082-radius);
  padding: 1.2rem;
  margin: 0 1.2rem 1rem;
}

.s082-card h3 {
  color: var(--s082-primary);
  font-size: 1.5rem;
  margin-bottom: 0.6rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.s082-card p {
  color: var(--s082-muted);
  font-size: 1.3rem;
  margin-bottom: 0.8rem;
}

.s082-card ul {
  list-style: none;
  padding: 0;
}

.s082-card ul li {
  position: relative;
  padding-left: 1.6rem;
  margin-bottom: 0.6rem;
  color: var(--s082-text);
  font-size: 1.3rem;
}

.s082-card ul li::before {
  content: "\f00c";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  color: var(--s082-primary);
  position: absolute;
  left: 0;
  font-size: 1.1rem;
}

/* ---------- Promo inline link ---------- */
.s082-promo-link {
  color: var(--s082-primary);
  font-weight: 700;
  cursor: pointer;
  border-bottom: 1px dashed var(--s082-primary);
}

.s082-cta-bar {
  background: linear-gradient(135deg, var(--s082-cta), #b30000);
  border-radius: 10px;
  padding: 1.2rem;
  text-align: center;
  margin: 1rem 1.2rem;
  cursor: pointer;
}

.s082-cta-bar strong {
  display: block;
  color: #fff;
  font-size: 1.6rem;
  margin-bottom: 0.2rem;
}

.s082-cta-bar span {
  color: var(--s082-primary);
  font-size: 1.2rem;
}

/* ---------- Features / stats row ---------- */
.s082-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
  padding: 0 1.2rem;
  margin-bottom: 1rem;
}

.s082-stat {
  background: var(--s082-bg-card);
  border: 1px solid var(--s082-border);
  border-radius: 10px;
  padding: 0.8rem 0.4rem;
  text-align: center;
}

.s082-stat b {
  display: block;
  color: var(--s082-primary);
  font-size: 1.6rem;
}

.s082-stat small {
  color: var(--s082-muted);
  font-size: 1.05rem;
}

/* ---------- Testimonials ---------- */
.s082-testi {
  background: var(--s082-bg-card);
  border-left: 3px solid var(--s082-primary);
  border-radius: 8px;
  padding: 0.8rem 1rem;
  margin: 0 1.2rem 0.8rem;
}

.s082-testi p {
  color: var(--s082-text);
  font-size: 1.3rem;
  margin-bottom: 0.4rem;
}

.s082-testi cite {
  color: var(--s082-secondary);
  font-style: normal;
  font-size: 1.15rem;
}

/* ---------- Payment ---------- */
.s082-pay {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  padding: 0 1.2rem;
}

.s082-pay span {
  background: var(--s082-bg-card);
  border: 1px solid var(--s082-border);
  border-radius: 20px;
  padding: 0.5rem 1rem;
  font-size: 1.15rem;
  color: var(--s082-muted);
}

/* ---------- Winners ---------- */
.s082-winner {
  display: flex;
  justify-content: space-between;
  padding: 0.6rem 1rem;
  border-bottom: 1px solid var(--s082-border);
  font-size: 1.2rem;
}

.s082-winner b {
  color: var(--s082-primary);
}

/* ---------- FAQ ---------- */
.s082-faq {
  border: 1px solid var(--s082-border);
  border-radius: 8px;
  margin: 0 1.2rem 0.8rem;
  overflow: hidden;
}

.s082-faq details {
  border-bottom: 1px solid var(--s082-border);
  padding: 0.8rem 1rem;
  background: var(--s082-bg-card);
}

.s082-faq details:last-child {
  border-bottom: none;
}

.s082-faq summary {
  color: var(--s082-primary);
  font-weight: 700;
  cursor: pointer;
  font-size: 1.3rem;
}

.s082-faq details p {
  color: var(--s082-muted);
  margin-top: 0.6rem;
  font-size: 1.25rem;
}

/* ---------- Footer ---------- */
.s082-footer {
  background: var(--s082-bg-alt);
  border-top: 1px solid var(--s082-border);
  padding: 1.6rem 1.2rem 2rem;
  margin-top: 1.4rem;
}

.s082-footer-brand {
  color: var(--s082-primary);
  font-weight: 800;
  font-size: 1.5rem;
  margin-bottom: 0.4rem;
}

.s082-footer p {
  color: var(--s082-muted);
  font-size: 1.2rem;
  margin-bottom: 0.8rem;
}

.s082-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  margin: 0.6rem 0 1rem;
}

.s082-footer-links a {
  color: var(--s082-secondary);
  font-size: 1.2rem;
}

.s082-footer-promo {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.8rem 0;
}

.s082-footer-promo button {
  background: var(--s082-cta);
  color: #fff;
  border: none;
  border-radius: 20px;
  padding: 0.5rem 1rem;
  font-size: 1.15rem;
  cursor: pointer;
  font-weight: 700;
}

.s082-copy {
  color: var(--s082-muted);
  font-size: 1.1rem;
  border-top: 1px solid var(--s082-border);
  padding-top: 0.8rem;
  margin-top: 0.6rem;
  text-align: center;
}

/* ---------- Bottom nav ---------- */
.s082-bnav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  height: var(--s082-bnav-h);
  background: var(--s082-bg-alt);
  border-top: 1px solid var(--s082-border);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
}

.s082-bnav-item {
  flex: 1;
  min-width: 60px;
  min-height: 60px;
  background: none;
  border: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  color: var(--s082-muted);
  cursor: pointer;
  font-family: inherit;
  transition: color 0.15s ease, transform 0.15s ease;
}

.s082-bnav-item i,
.s082-bnav-item .material-icons-outlined {
  font-size: 22px;
}

.s082-bnav-item span {
  font-size: 1.05rem;
}

.s082-bnav-item:active {
  transform: scale(0.92);
}

.s082-bnav-item.s082-current {
  color: var(--s082-primary);
}

/* ---------- Back to top ---------- */
.s082-top-btn {
  position: fixed;
  right: 1.2rem;
  bottom: calc(var(--s082-bnav-h) + 1rem);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--s082-primary);
  color: var(--s082-bg);
  border: none;
  font-size: 1.8rem;
  font-weight: 800;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999;
  box-shadow: var(--s082-shadow);
}

.s082-top-btn.s082-show {
  display: flex;
}

/* ---------- Desktop ---------- */
@media (min-width: 769px) {
  .s082-bnav,
  .s082-menu-btn,
  .s082-mobile-menu {
    display: none !important;
  }

  .s082-header {
    max-width: 430px;
  }

  .s082-wrapper {
    padding-bottom: 2rem;
  }
}

/* Mobile bottom clearance for main content */
@media (max-width: 768px) {
  .s082-wrapper {
    padding-bottom: calc(var(--s082-bnav-h) + 1.4rem);
  }
}
