/* 5666bd core stylesheet - basefiles version
 * Class prefix: s392-
 * Palette: #BA55D3 #9966CC #0D1117 #EE82EE #F8F9FA
 * Mobile-first, max-width 430px. All comments in English.
 */

:root {
  --s392-primary: #BA55D3;
  --s392-secondary: #9966CC;
  --s392-bg: #0D1117;
  --s392-bg-alt: #161b25;
  --s392-bg-card: #1b2230;
  --s392-accent: #EE82EE;
  --s392-text: #F8F9FA;
  --s392-text-muted: #a9b0c0;
  --s392-border: rgba(186, 85, 211, 0.25);
  --s392-radius: 12px;
  --s392-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
  --s392-header-h: 56px;
  --s392-bottomnav-h: 62px;
}

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

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

a { color: var(--s392-accent); text-decoration: none; }

.s392-container { width: 100%; max-width: 430px; margin: 0 auto; padding: 0 1.2rem; }
.s392-wrapper { padding-top: var(--s392-header-h); padding-bottom: calc(var(--s392-bottomnav-h) + 1rem); }

/* ---------- Header ---------- */
.s392-header {
  position: fixed; top: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 430px; height: var(--s392-header-h);
  background: linear-gradient(90deg, var(--s392-bg-alt), #201828);
  border-bottom: 1px solid var(--s392-border);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 1.2rem; z-index: 1000;
  box-shadow: var(--s392-shadow);
}
.s392-brand { display: flex; align-items: center; gap: 0.7rem; }
.s392-brand img { width: 30px; height: 30px; border-radius: 6px; }
.s392-brand-name { font-size: 1.8rem; font-weight: 800; color: var(--s392-accent); letter-spacing: 0.5px; }
.s392-brand-name span { color: var(--s392-primary); }

.s392-header-actions { display: flex; align-items: center; gap: 0.6rem; }
.s392-btn {
  border: none; cursor: pointer; border-radius: 8px;
  font-size: 1.3rem; font-weight: 700; padding: 0.6rem 1.1rem;
  min-height: 36px; transition: transform 0.15s, filter 0.15s;
}
.s392-btn:active { transform: scale(0.94); }
.s392-btn-login {
  background: transparent; color: var(--s392-text);
  border: 1px solid var(--s392-border);
}
.s392-btn-register {
  background: linear-gradient(90deg, var(--s392-primary), var(--s392-accent));
  color: #1a0a22;
  box-shadow: 0 4px 10px rgba(238, 130, 238, 0.35);
}
.s392-menu-btn {
  background: transparent; border: 1px solid var(--s392-border);
  color: var(--s392-text); border-radius: 8px;
  width: 38px; height: 38px; font-size: 1.8rem;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
}

/* ---------- Mobile expandable menu ---------- */
.s392-mobile-menu {
  position: fixed; top: var(--s392-header-h); left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 430px;
  background: var(--s392-bg-alt);
  border-bottom: 1px solid var(--s392-border);
  max-height: 0; overflow: hidden; transition: max-height 0.3s ease;
  z-index: 9999;
}
.s392-mobile-menu.s392-menu-open { max-height: 480px; }
.s392-mobile-menu ul { list-style: none; padding: 0.6rem 1.2rem 1rem; }
.s392-mobile-menu li { border-bottom: 1px solid rgba(186,85,211,0.12); }
.s392-mobile-menu li:last-child { border-bottom: none; }
.s392-mobile-menu a {
  display: block; padding: 1rem 0.4rem; color: var(--s392-text);
  font-size: 1.45rem; font-weight: 600;
}
.s392-mobile-menu a i { color: var(--s392-primary); margin-right: 0.8rem; }

/* ---------- Carousel ---------- */
.s392-carousel {
  position: relative; width: 100%; border-radius: var(--s392-radius);
  overflow: hidden; margin: 1.2rem 0; box-shadow: var(--s392-shadow);
}
.s392-slide {
  display: none; cursor: pointer; position: relative;
}
.s392-slide.s392-slide-active { display: block; }
.s392-slide img { width: 100%; height: 200px; object-fit: cover; }
.s392-slide-overlay {
  position: absolute; left: 0; bottom: 0; width: 100%;
  padding: 1rem 1.2rem; background: linear-gradient(transparent, rgba(13,17,23,0.92));
  color: var(--s392-text);
}
.s392-slide-overlay h2 { font-size: 1.7rem; color: var(--s392-accent); margin-bottom: 0.3rem; }
.s392-slide-overlay p { font-size: 1.3rem; color: var(--s392-text-muted); }

.s392-dot-row { position: absolute; bottom: 8px; right: 12px; display: flex; gap: 6px; }
.s392-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(248,249,250,0.5); cursor: pointer; }
.s392-dot.s392-dot-active { background: var(--s392-accent); }

/* ---------- Section / Headings ---------- */
.s392-section { padding: 1.4rem 0; }
.s392-section-title {
  font-size: 1.9rem; font-weight: 800; margin-bottom: 1rem;
  display: flex; align-items: center; gap: 0.6rem;
  border-left: 4px solid var(--s392-primary); padding-left: 0.8rem;
}
.s392-section-title i { color: var(--s392-accent); }
.s392-lead { color: var(--s392-text-muted); font-size: 1.4rem; margin-bottom: 1rem; }

/* ---------- Hero CTA ---------- */
.s392-hero {
  background: radial-gradient(circle at 30% 20%, rgba(186,85,211,0.25), transparent 60%),
              linear-gradient(135deg, #1a1024, #0D1117);
  border: 1px solid var(--s392-border); border-radius: var(--s392-radius);
  padding: 1.6rem 1.4rem; margin: 1rem 0; text-align: center;
}
.s392-hero h1 { font-size: 2.2rem; color: var(--s392-text); line-height: 1.4; margin-bottom: 0.8rem; }
.s392-hero h1 b { color: var(--s392-accent); }
.s392-hero p { color: var(--s392-text-muted); font-size: 1.4rem; margin-bottom: 1.2rem; }
.s392-cta {
  display: inline-block; background: linear-gradient(90deg, var(--s392-primary), var(--s392-accent));
  color: #1a0a22; font-weight: 800; padding: 1rem 2rem; border-radius: 30px;
  font-size: 1.5rem; cursor: pointer; border: none;
  box-shadow: 0 6px 16px rgba(238,130,238,0.4);
}
.s392-cta:active { transform: scale(0.96); }
.s392-cta-text { color: var(--s392-accent); font-weight: 700; cursor: pointer; }

/* ---------- Game grid ---------- */
.s392-cat-head {
  display: flex; align-items: center; gap: 0.6rem; margin: 1.4rem 0 0.8rem;
}
.s392-cat-head .s392-cat-icon {
  width: 32px; height: 32px; border-radius: 8px;
  background: linear-gradient(135deg, var(--s392-primary), var(--s392-secondary));
  display: flex; align-items: center; justify-content: center; color: #fff; font-size: 1.6rem;
}
.s392-cat-head h3 { font-size: 1.7rem; font-weight: 800; color: var(--s392-text); }
.s392-cat-head h3 b { color: var(--s392-accent); }

.s392-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 0.7rem;
}
.s392-card {
  background: var(--s392-bg-card); border: 1px solid var(--s392-border);
  border-radius: 10px; overflow: hidden; cursor: pointer;
  transition: transform 0.15s, border-color 0.15s; text-align: center;
}
.s392-card:active { transform: scale(0.95); border-color: var(--s392-accent); }
.s392-card img { width: 100%; height: 64px; object-fit: cover; }
.s392-card-name {
  font-size: 1.1rem; color: var(--s392-text); padding: 0.4rem 0.2rem 0.5rem;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.3;
}

/* ---------- Info / Feature blocks ---------- */
.s392-block {
  background: var(--s392-bg-card); border: 1px solid var(--s392-border);
  border-radius: var(--s392-radius); padding: 1.4rem; margin: 1rem 0;
}
.s392-block h3 { font-size: 1.7rem; color: var(--s392-accent); margin-bottom: 0.8rem; }
.s392-block p { color: var(--s392-text-muted); font-size: 1.4rem; margin-bottom: 0.7rem; }
.s392-block p b { color: var(--s392-text); }

.s392-list { list-style: none; padding: 0; }
.s392-list li {
  padding: 0.6rem 0 0.6rem 2rem; position: relative;
  color: var(--s392-text-muted); font-size: 1.4rem; border-bottom: 1px solid rgba(186,85,211,0.1);
}
.s392-list li:last-child { border-bottom: none; }
.s392-list li::before {
  content: '✦'; position: absolute; left: 0; color: var(--s392-primary); font-size: 1.4rem;
}

.s392-rtp-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 0.6rem; margin-top: 0.6rem; }
.s392-rtp-item {
  background: #121822; border-radius: 8px; padding: 0.7rem; text-align: center;
  border: 1px solid rgba(186,85,211,0.15);
}
.s392-rtp-item .s392-rtp-name { font-size: 1.2rem; color: var(--s392-text); }
.s392-rtp-item .s392-rtp-val { font-size: 1.5rem; font-weight: 800; color: var(--s392-accent); }

/* ---------- Testimonials / winners ---------- */
.s392-row { display: flex; gap: 0.7rem; overflow-x: auto; padding-bottom: 0.4rem; }
.s392-row::-webkit-scrollbar { height: 4px; }
.s392-row::-webkit-scrollbar-thumb { background: var(--s392-primary); border-radius: 4px; }
.s392-chip {
  flex: 0 0 160px; background: var(--s392-bg-card); border: 1px solid var(--s392-border);
  border-radius: 10px; padding: 0.9rem; text-align: center;
}
.s392-chip .s392-chip-user { font-size: 1.3rem; color: var(--s392-text); font-weight: 700; }
.s392-chip .s392-chip-amt { font-size: 1.6rem; color: var(--s392-accent); font-weight: 800; margin: 0.3rem 0; }
.s392-chip .s392-chip-game { font-size: 1.15rem; color: var(--s392-text-muted); }

/* ---------- Payment icons ---------- */
.s392-pay { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 0.6rem; }
.s392-pay span {
  background: #121822; border: 1px solid var(--s392-border);
  border-radius: 8px; padding: 0.5rem 0.9rem; font-size: 1.2rem; color: var(--s392-text);
}

/* ---------- SEO text ---------- */
.s392-seo-text { color: var(--s392-text-muted); font-size: 1.4rem; margin: 1rem 0; }
.s392-seo-text b { color: var(--s392-accent); }
.s392-seo-text a { color: var(--s392-accent); font-weight: 700; text-decoration: underline; }

/* ---------- Footer ---------- */
.s392-footer {
  background: var(--s392-bg-alt); border-top: 1px solid var(--s392-border);
  padding: 1.6rem 1.2rem; margin-top: 1.2rem; color: var(--s392-text-muted);
}
.s392-footer .s392-footer-brand { color: var(--s392-text); font-size: 1.5rem; margin-bottom: 0.6rem; font-weight: 700; }
.s392-footer p { font-size: 1.3rem; line-height: 1.6; margin-bottom: 0.8rem; }
.s392-footer-links { display: flex; flex-wrap: wrap; gap: 0.5rem 1rem; margin: 0.8rem 0; }
.s392-footer-links a { color: var(--s392-text-muted); font-size: 1.25rem; }
.s392-footer-links a:hover { color: var(--s392-accent); }
.s392-footer-promo {
  display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 0.8rem 0;
}
.s392-footer-promo button {
  flex: 1 1 45%; background: linear-gradient(90deg, var(--s392-primary), var(--s392-secondary));
  color: #fff; border: none; border-radius: 8px; padding: 0.7rem; font-size: 1.3rem; font-weight: 700; cursor: pointer;
}
.s392-footer-copy { font-size: 1.2rem; color: var(--s392-text-muted); margin-top: 0.8rem; border-top: 1px solid rgba(186,85,211,0.12); padding-top: 0.8rem; }

/* ---------- Mobile bottom nav ---------- */
.s392-bottomnav {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 430px; height: var(--s392-bottomnav-h);
  background: linear-gradient(180deg, #201828, #0D1117);
  border-top: 1px solid var(--s392-border);
  display: flex; justify-content: space-around; align-items: center;
  z-index: 1000; box-shadow: 0 -4px 14px rgba(0,0,0,0.5);
}
.s392-bottomnav-item {
  flex: 1; min-width: 60px; min-height: 60px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px; background: transparent; border: none; color: var(--s392-text-muted);
  font-size: 1.1rem; cursor: pointer; transition: color 0.15s, transform 0.15s;
  text-decoration: none;
}
.s392-bottomnav-item:active { transform: scale(0.92); }
.s392-bottomnav-item .s392-bottomnav-icon { font-size: 24px; line-height: 1; }
.s392-bottomnav-item .s392-bottomnav-label { font-size: 1.1rem; }
.s392-bottomnav-current { color: var(--s392-accent); }
.s392-bottomnav-current .s392-bottomnav-icon { color: var(--s392-accent); }
.s392-bottomnav-promo { color: var(--s392-primary); }
.s392-bottomnav-promo .s392-bottomnav-icon { color: var(--s392-accent); }

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

/* Mobile main content bottom padding clearance */
@media (max-width: 768px) {
  main, .s392-main { padding-bottom: calc(var(--s392-bottomnav-h) + 1.2rem) !important; }
}

/* Tablet / larger tuning */
@media (min-width: 431px) and (max-width: 768px) {
  .s392-grid { grid-template-columns: repeat(6, 1fr); }
}
@media (min-width: 769px) {
  .s392-grid { grid-template-columns: repeat(8, 1fr); }
  .s392-container, .s392-header, .s392-mobile-menu, .s392-footer { max-width: 960px; }
}
