/* x99999 core stylesheet - prefix v57b- */
/* Palette: #C9C9FF / #A0522D / #2D2D2D / #FFEFD5 */

:root {
  --v57b-primary: #C9C9FF;
  --v57b-accent: #A0522D;
  --v57b-bg: #2D2D2D;
  --v57b-bg-2: #1f1f1f;
  --v57b-text: #FFEFD5;
  --v57b-text-dark: #2D2D2D;
  --v57b-muted: #b8a98f;
  --v57b-card: #3a3a3a;
  --v57b-border: rgba(201, 201, 255, 0.25);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 62.5%; scroll-behavior: smooth; }

body {
  font-family: "Hind Siliguri", "Noto Sans Bengali", "Segoe UI", system-ui, sans-serif;
  background: var(--v57b-bg);
  color: var(--v57b-text);
  line-height: 1.5rem;
  font-size: 1.5rem;
  max-width: 430px;
  margin: 0 auto;
  overflow-x: hidden;
}

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

/* ===== Header ===== */
.v57b-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: linear-gradient(135deg, #2D2D2D 0%, #A0522D 100%);
  border-bottom: 1px solid var(--v57b-border);
  max-width: 430px; margin: 0 auto;
}
.v57b-header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.6rem 1rem; gap: 0.6rem;
}
.v57b-logo { display: flex; align-items: center; gap: 0.5rem; min-width: 0; }
.v57b-logo img { width: 28px; height: 28px; border-radius: 6px; }
.v57b-logo-text { font-size: 1.7rem; font-weight: 800; color: var(--v57b-primary); white-space: nowrap; }
.v57b-header-actions { display: flex; align-items: center; gap: 0.5rem; }
.v57b-btn {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.7rem 1.3rem; border-radius: 2.4rem; border: none;
  font-size: 1.3rem; font-weight: 700; cursor: pointer;
  min-height: 36px; transition: transform .15s, box-shadow .15s;
}
.v57b-btn:hover { transform: translateY(-1px); }
.v57b-btn-register { background: var(--v57b-primary); color: var(--v57b-text-dark); }
.v57b-btn-login { background: transparent; color: var(--v57b-primary); border: 1.5px solid var(--v57b-primary); }
.v57b-menu-btn {
  background: transparent; border: none; color: var(--v57b-primary);
  font-size: 2.2rem; cursor: pointer; padding: 0.4rem 0.6rem; min-width: 44px; min-height: 44px;
}

/* ===== Mobile expand menu ===== */
.v57b-mobile-menu {
  display: none; flex-direction: column;
  background: var(--v57b-bg-2); border-top: 1px solid var(--v57b-border);
  padding: 0.5rem 1rem;
}
.v57b-mobile-menu.v57b-menu-open { display: flex; }
.v57b-mobile-menu a {
  padding: 1rem 0.5rem; border-bottom: 1px solid rgba(201,201,255,0.1);
  color: var(--v57b-text); font-size: 1.4rem; font-weight: 600;
}
.v57b-mobile-menu a:last-child { border-bottom: none; }
.v57b-mobile-menu a i { margin-right: 0.8rem; color: var(--v57b-primary); }

/* ===== Layout ===== */
.v57b-main { padding-top: 6.2rem; }
@media (max-width: 768px) { .v57b-main { padding-bottom: 80px; } }

.v57b-container { padding: 1.4rem 1.2rem; }
.v57b-section { margin-bottom: 2rem; }
.v57b-section-title {
  font-size: 1.8rem; font-weight: 800; color: var(--v57b-primary);
  margin-bottom: 1rem; padding-left: 0.8rem;
  border-left: 4px solid var(--v57b-accent);
}

/* ===== Carousel ===== */
.v57b-carousel { position: relative; overflow: hidden; border-radius: 1rem; margin-bottom: 1.4rem; }
.v57b-slide {
  display: none; position: relative; cursor: pointer;
}
.v57b-slide.v57b-slide-active { display: block; }
.v57b-slide img { width: 100%; height: 180px; object-fit: cover; }
.v57b-slide-cap {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: linear-gradient(transparent, rgba(45,45,45,0.9));
  padding: 1rem; color: var(--v57b-primary); font-weight: 700; font-size: 1.4rem;
}
.v57b-dots { position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%); display: flex; gap: 6px; }
.v57b-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,239,213,0.5); cursor: pointer; }
.v57b-dot.v57b-dot-active { background: var(--v57b-primary); }

/* ===== Hero ===== */
.v57b-hero { text-align: center; padding: 1.5rem 1rem 2rem; }
.v57b-hero h1 { font-size: 2.2rem; font-weight: 800; color: var(--v57b-primary); line-height: 1.3; margin-bottom: 0.8rem; }
.v57b-hero p { color: var(--v57b-muted); font-size: 1.4rem; margin-bottom: 1.2rem; }
.v57b-cta {
  display: inline-block; padding: 1.2rem 2.4rem; border-radius: 2.6rem;
  background: var(--v57b-accent); color: var(--v57b-text); font-weight: 800; font-size: 1.6rem;
  box-shadow: 0 4px 12px rgba(160,82,45,0.4); cursor: pointer;
}

/* ===== Game grid ===== */
.v57b-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.8rem; }
.v57b-card {
  background: var(--v57b-card); border: 1px solid var(--v57b-border);
  border-radius: 0.8rem; overflow: hidden; cursor: pointer; transition: transform .15s;
}
.v57b-card:hover { transform: translateY(-2px); }
.v57b-card img { width: 100%; height: 84px; object-fit: cover; }
.v57b-card-name { padding: 0.5rem; font-size: 1.1rem; text-align: center; color: var(--v57b-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.v57b-cat-label { font-size: 1.4rem; color: var(--v57b-accent); font-weight: 700; margin: 1.6rem 0 0.8rem; }

/* ===== Info cards / modules ===== */
.v57b-info-card { background: var(--v57b-card); border-radius: 0.8rem; padding: 1.2rem; margin-bottom: 1rem; border-left: 3px solid var(--v57b-primary); }
.v57b-info-card h3 { color: var(--v57b-primary); font-size: 1.5rem; margin-bottom: 0.6rem; }
.v57b-info-card p { font-size: 1.3rem; color: var(--v57b-muted); }
.v57b-list { list-style: none; padding-left: 0; }
.v57b-list li { padding: 0.5rem 0; font-size: 1.3rem; color: var(--v57b-text); }
.v57b-list li i { color: var(--v57b-accent); margin-right: 0.6rem; }

/* Inline SEO link */
.v57b-inline-link { color: var(--v57b-primary); font-weight: 700; border-bottom: 1px dotted var(--v57b-primary); }

/* Promo text link */
.v57b-promo-link { color: var(--v57b-primary); font-weight: 800; font-size: 1.4rem; cursor: pointer; }

/* Stats grid */
.v57b-stats { display: grid; grid-template-columns: repeat(2,1fr); gap: 0.6rem; }
.v57b-stat { background: var(--v57b-card); border-radius: 0.6rem; padding: 0.8rem; text-align: center; }
.v57b-stat-num { font-size: 1.8rem; font-weight: 800; color: var(--v57b-primary); }
.v57b-stat-label { font-size: 1.1rem; color: var(--v57b-muted); }

/* Testimonial */
.v57b-testi { background: var(--v57b-card); border-radius: 0.8rem; padding: 1rem; margin-bottom: 0.8rem; }
.v57b-testi-text { font-size: 1.3rem; color: var(--v57b-text); margin-bottom: 0.5rem; }
.v57b-testi-author { font-size: 1.1rem; color: var(--v57b-accent); font-weight: 700; }

/* Payment icons row */
.v57b-pay { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.v57b-pay span { background: var(--v57b-card); border: 1px solid var(--v57b-border); border-radius: 0.5rem; padding: 0.5rem 0.9rem; font-size: 1.2rem; color: var(--v57b-text); }

/* Winners */
.v57b-winner { display: flex; justify-content: space-between; padding: 0.6rem 0.8rem; background: var(--v57b-card); border-radius: 0.5rem; margin-bottom: 0.5rem; font-size: 1.2rem; }
.v57b-winner span:last-child { color: var(--v57b-primary); font-weight: 800; }

/* ===== Footer ===== */
.v57b-footer { background: var(--v57b-bg-2); border-top: 1px solid var(--v57b-border); padding: 1.6rem 1.2rem 2rem; }
.v57b-footer-brand { color: var(--v57b-muted); font-size: 1.3rem; margin-bottom: 1rem; }
.v57b-footer-links { display: flex; flex-wrap: wrap; gap: 0.8rem 1.2rem; margin-bottom: 1rem; }
.v57b-footer-links a { font-size: 1.2rem; color: var(--v57b-text); }
.v57b-footer-promo { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: 1rem; }
.v57b-footer-promo button { background: var(--v57b-accent); color: var(--v57b-text); border: none; border-radius: 1.6rem; padding: 0.6rem 1.2rem; font-size: 1.2rem; font-weight: 700; cursor: pointer; }
.v57b-footer-copy { font-size: 1.1rem; color: var(--v57b-muted); border-top: 1px solid rgba(255,239,213,0.1); padding-top: 0.8rem; }

/* ===== Bottom nav ===== */
.v57b-bnav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 1000;
  background: linear-gradient(180deg, #2D2D2D, #1a1a1a);
  border-top: 1px solid var(--v57b-border);
  display: flex; justify-content: space-around; align-items: center;
  height: 60px; max-width: 430px; margin: 0 auto;
}
.v57b-bnav-btn {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: transparent; border: none; color: var(--v57b-muted);
  min-width: 60px; min-height: 60px; cursor: pointer; gap: 2px;
  font-size: 1rem; flex: 1; transition: color .15s, transform .15s;
}
.v57b-bnav-btn i, .v57b-bnav-btn .material-icons-outlined, .v57b-bnav-btn .material-icons { font-size: 22px; }
.v57b-bnav-btn:hover { transform: scale(1.08); }
.v57b-bnav-active { color: var(--v57b-primary); }
.v57b-bnav-active i, .v57b-bnav-active .material-icons-outlined, .v57b-bnav-active .material-icons { color: var(--v57b-primary); }

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

/* Desktop nav */
.v57b-desktop-nav { display: none; }
@media (min-width: 769px) {
  .v57b-desktop-nav { display: flex; gap: 1.2rem; }
  .v57b-desktop-nav a { color: var(--v57b-text); font-size: 1.3rem; font-weight: 600; }
}
