/* cd66 basefiles - theme-8fc3.css
   All custom classes use prefix s8fc-.
   Mobile-first responsive design. Comments in English. */

:root {
  --s8fc-primary: #FF69B4;
  --s8fc-secondary: #FF9500;
  --s8fc-accent: #E91E63;
  --s8fc-deep: #880E4F;
  --s8fc-bg: #212F3D;
  --s8fc-bg2: #18242F;
  --s8fc-bg3: #2A3B4D;
  --s8fc-text: #F5F7FA;
  --s8fc-text-muted: #B0BEC5;
  --s8fc-border: rgba(255,255,255,0.08);
  --s8fc-radius: 10px;
  --s8fc-shadow: 0 4px 18px rgba(0,0,0,0.35);
}

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

html { font-size: 62.5%; -webkit-text-size-adjust: 100%; }

body {
  font-family: 'Segoe UI', 'Noto Sans Bengali', 'Hind Siliguri', system-ui, sans-serif;
  background: var(--s8fc-bg);
  color: var(--s8fc-text);
  line-height: 1.5rem;
  font-size: 1.4rem;
  max-width: 430px;
  margin: 0 auto;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

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

/* ---------- Header ---------- */
.s8fc-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: linear-gradient(135deg, var(--s8fc-deep), var(--s8fc-bg));
  border-bottom: 2px solid var(--s8fc-primary);
  max-width: 430px; margin: 0 auto;
}
.s8fc-header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.6rem 1rem; gap: 0.8rem;
}
.s8fc-logo { display: flex; align-items: center; gap: 0.6rem; min-width: 0; }
.s8fc-logo img { width: 2.8rem; height: 2.8rem; border-radius: 6px; }
.s8fc-logo-name { font-size: 1.7rem; font-weight: 800; color: var(--s8fc-primary); white-space: nowrap; }
.s8fc-logo-name span { color: var(--s8fc-secondary); }

.s8fc-header-actions { display: flex; align-items: center; gap: 0.5rem; }
.s8fc-btn {
  display: inline-flex; align-items: center; gap: 0.3rem;
  padding: 0.55rem 1rem; border: none; border-radius: 20px;
  font-size: 1.25rem; font-weight: 700; cursor: pointer;
  transition: transform 0.15s ease, opacity 0.15s ease;
  min-height: 36px;
}
.s8fc-btn:active { transform: scale(0.94); }
.s8fc-btn-register { background: linear-gradient(135deg, var(--s8fc-primary), var(--s8fc-accent)); color: #fff; }
.s8fc-btn-login { background: var(--s8fc-secondary); color: #212F3D; }

.s8fc-menu-btn {
  background: transparent; border: 1px solid var(--s8fc-border);
  color: var(--s8fc-text); width: 36px; height: 36px; border-radius: 8px;
  font-size: 1.6rem; cursor: pointer; display: flex; align-items: center; justify-content: center;
}

/* ---------- Mobile menu (expandable) ---------- */
.s8fc-mobile-menu {
  position: fixed; top: 60px; left: 0; right: 0; z-index: 9999;
  background: var(--s8fc-bg2); border-bottom: 2px solid var(--s8fc-primary);
  max-width: 430px; margin: 0 auto;
  max-height: 0; overflow: hidden; transition: max-height 0.3s ease;
}
.s8fc-mobile-menu.s8fc-menu-open { max-height: 460px; }
.s8fc-mobile-menu ul { list-style: none; padding: 0.5rem 0; }
.s8fc-mobile-menu li a {
  display: flex; align-items: center; gap: 0.8rem;
  padding: 1rem 1.4rem; color: var(--s8fc-text);
  border-bottom: 1px solid var(--s8fc-border); font-size: 1.4rem;
}
.s8fc-mobile-menu li a:active { background: var(--s8fc-bg3); }
.s8fc-mobile-menu li a i { color: var(--s8fc-primary); width: 2rem; text-align: center; }

/* ---------- Layout ---------- */
.s8fc-main { padding-top: 64px; padding-bottom: 80px; }
.s8fc-container { padding: 1rem 1.2rem; }
.s8fc-section { margin-bottom: 1.6rem; }
.s8fc-section-title {
  font-size: 1.7rem; font-weight: 800; margin-bottom: 0.8rem;
  color: var(--s8fc-text); display: flex; align-items: center; gap: 0.6rem;
}
.s8fc-section-title i { color: var(--s8fc-primary); }
.s8fc-section-title::after {
  content: ''; flex: 1; height: 2px;
  background: linear-gradient(90deg, var(--s8fc-primary), transparent);
}
.s8fc-h1 {
  font-size: 2rem; font-weight: 900; line-height: 1.3;
  margin: 1rem 0 0.6rem; color: var(--s8fc-text);
}
.s8fc-h1 b { color: var(--s8fc-primary); }
.s8fc-lead { color: var(--s8fc-text-muted); font-size: 1.35rem; margin-bottom: 1rem; }

/* ---------- Carousel ---------- */
.s8fc-carousel {
  position: relative; border-radius: var(--s8fc-radius); overflow: hidden;
  box-shadow: var(--s8fc-shadow); margin-bottom: 1.2rem;
}
.s8fc-slide {
  display: none; position: relative; cursor: pointer;
}
.s8fc-slide.s8fc-slide-active { display: block; }
.s8fc-slide img { width: 100%; height: 180px; object-fit: cover; }
.s8fc-slide-cap {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(33,47,61,0.95));
  padding: 1.4rem 1rem 0.8rem; font-weight: 700; font-size: 1.35rem;
}
.s8fc-slide-cap b { color: var(--s8fc-primary); }
.s8fc-slide-dots {
  position: absolute; bottom: 6px; left: 0; right: 0;
  display: flex; justify-content: center; gap: 6px; z-index: 5;
}
.s8fc-slide-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: rgba(255,255,255,0.45); display: inline-block;
}
.s8fc-slide-dot.s8fc-dot-active { background: var(--s8fc-primary); }

/* ---------- Category tabs (non-switching display, decorative) ---------- */
.s8fc-cattabs { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 1rem; }
.s8fc-cattab {
  padding: 0.4rem 1rem; border-radius: 16px; font-size: 1.15rem; font-weight: 700;
  background: var(--s8fc-bg3); color: var(--s8fc-text-muted);
}
.s8fc-cattab.s8fc-cat-on { background: var(--s8fc-primary); color: #fff; }

/* ---------- Game grid ---------- */
.s8fc-game-list { margin-bottom: 1.6rem; }
.s8fc-game-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.7rem;
}
.s8fc-game-card {
  background: var(--s8fc-bg3); border-radius: var(--s8fc-radius);
  padding: 0.5rem; text-align: center; cursor: pointer;
  border: 1px solid var(--s8fc-border); transition: transform 0.15s ease, border-color 0.15s;
}
.s8fc-game-card:active { transform: scale(0.96); border-color: var(--s8fc-primary); }
.s8fc-game-card img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; margin-bottom: 0.4rem; }
.s8fc-game-card .s8fc-game-name {
  font-size: 1.1rem; font-weight: 600; color: var(--s8fc-text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-height: 1.6rem;
}

/* ---------- Info modules ---------- */
.s8fc-card {
  background: var(--s8fc-bg2); border-radius: var(--s8fc-radius);
  padding: 1.2rem; margin-bottom: 1rem; border: 1px solid var(--s8fc-border);
}
.s8fc-card h2, .s8fc-card h3 { color: var(--s8fc-text); margin-bottom: 0.6rem; }
.s8fc-card h2 { font-size: 1.6rem; }
.s8fc-card h2 b, .s8fc-card h3 b { color: var(--s8fc-primary); }
.s8fc-card h3 { font-size: 1.4rem; margin-top: 0.8rem; }
.s8fc-card p { color: var(--s8fc-text-muted); margin-bottom: 0.6rem; font-size: 1.3rem; }
.s8fc-card ul { padding-left: 1.6rem; color: var(--s8fc-text-muted); }
.s8fc-card li { margin-bottom: 0.3rem; font-size: 1.3rem; }
.s8fc-card a { color: var(--s8fc-secondary); font-weight: 700; }

.s8fc-feature-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.6rem; margin: 0.6rem 0; }
.s8fc-feature-box {
  background: var(--s8fc-bg3); border-radius: 8px; padding: 0.8rem; text-align: center;
}
.s8fc-feature-box i { color: var(--s8fc-primary); font-size: 2rem; }
.s8fc-feature-box b { display: block; color: var(--s8fc-secondary); margin: 0.3rem 0; font-size: 1.2rem; }
.s8fc-feature-box span { color: var(--s8fc-text-muted); font-size: 1.1rem; }

.s8fc-rtp-table { width: 100%; border-collapse: collapse; margin: 0.6rem 0; }
.s8fc-rtp-table th, .s8fc-rtp-table td { padding: 0.5rem; font-size: 1.15rem; text-align: left; border-bottom: 1px solid var(--s8fc-border); }
.s8fc-rtp-table th { color: var(--s8fc-primary); }
.s8fc-rtp-table td b { color: var(--s8fc-secondary); }

.s8fc-testimonial {
  background: var(--s8fc-bg3); border-radius: 8px; padding: 0.9rem; margin-bottom: 0.7rem;
  border-left: 3px solid var(--s8fc-primary);
}
.s8fc-testimonial b { color: var(--s8fc-secondary); }
.s8fc-testimonial .s8fc-stars { color: #FFD700; margin-bottom: 0.3rem; }

.s8fc-pay-row { display: flex; gap: 0.5rem; flex-wrap: wrap; margin: 0.6rem 0; }
.s8fc-pay-chip {
  background: var(--s8fc-bg3); border: 1px solid var(--s8fc-border); border-radius: 20px;
  padding: 0.5rem 0.9rem; font-size: 1.15rem; color: var(--s8fc-text);
}
.s8fc-pay-chip i { color: var(--s8fc-primary); margin-right: 0.3rem; }

.s8fc-winners { display: grid; grid-template-columns: repeat(2,1fr); gap: 0.5rem; }
.s8fc-winner {
  background: var(--s8fc-bg3); border-radius: 8px; padding: 0.6rem; font-size: 1.15rem;
}
.s8fc-winner b { color: var(--s8fc-secondary); }

/* ---------- Promo link block ---------- */
.s8fc-promo-cta {
  display: flex; gap: 0.8rem; justify-content: center; flex-wrap: wrap; margin: 1rem 0;
}
.s8fc-promo-text {
  color: var(--s8fc-secondary); font-weight: 700; text-decoration: underline; cursor: pointer;
}

/* ---------- Footer ---------- */
.s8fc-footer {
  background: var(--s8fc-bg2); border-top: 2px solid var(--s8fc-primary);
  padding: 1.4rem 1.2rem; margin-top: 1rem;
}
.s8fc-footer-brand { color: var(--s8fc-text-muted); font-size: 1.2rem; margin-bottom: 0.8rem; }
.s8fc-footer-brand b { color: var(--s8fc-primary); }
.s8fc-footer-links { display: flex; flex-wrap: wrap; gap: 0.4rem 0.8rem; margin-bottom: 0.8rem; }
.s8fc-footer-links a { color: var(--s8fc-text-muted); font-size: 1.15rem; }
.s8fc-footer-links a:hover { color: var(--s8fc-primary); }
.s8fc-footer-promos { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0.6rem 0 1rem; }
.s8fc-footer-promos .s8fc-btn { font-size: 1.15rem; padding: 0.5rem 0.9rem; }
.s8fc-footer-copy { color: var(--s8fc-text-muted); font-size: 1.1rem; border-top: 1px solid var(--s8fc-border); padding-top: 0.6rem; }

/* ---------- Bottom nav (fixed) ---------- */
.s8fc-bottomnav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 1000;
  background: linear-gradient(135deg, var(--s8fc-deep), var(--s8fc-bg));
  border-top: 2px solid var(--s8fc-primary);
  display: flex; justify-content: space-around; align-items: stretch;
  height: 60px; max-width: 430px; margin: 0 auto;
}
.s8fc-bottomnav-btn {
  flex: 1; min-width: 60px; min-height: 60px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: transparent; border: none; color: var(--s8fc-text-muted);
  cursor: pointer; gap: 2px; transition: color 0.15s ease, transform 0.15s ease;
}
.s8fc-bottomnav-btn i { font-size: 22px; }
.s8fc-bottomnav-btn .material-icons-outlined,
.s8fc-bottomnav-btn .material-icons { font-size: 22px; }
.s8fc-bottomnav-btn span { font-size: 10px; font-weight: 600; }
.s8fc-bottomnav-btn:active { transform: scale(0.92); color: var(--s8fc-primary); }
.s8fc-bottomnav-btn.s8fc-nav-active { color: var(--s8fc-primary); }
.s8fc-bottomnav-btn.s8fc-nav-active i,
.s8fc-bottomnav-btn.s8fc-nav-active .material-icons-outlined,
.s8fc-bottomnav-btn.s8fc-nav-active .material-icons { color: var(--s8fc-secondary); }
.s8fc-nav-badge {
  position: absolute; top: 4px; right: 22%;
  background: var(--s8fc-accent); color: #fff; font-size: 9px;
  border-radius: 8px; padding: 0 4px; min-width: 14px; line-height: 14px; font-weight: 700;
}
.s8fc-bottomnav-btn { position: relative; }

/* ---------- Desktop ---------- */
@media (min-width: 769px) {
  .s8fc-bottomnav { display: none; }
  .s8fc-menu-btn { display: none; }
  .s8fc-mobile-menu { display: none; }
  .s8fc-main { padding-bottom: 1rem; }
}
@media (max-width: 768px) {
  .s8fc-main { padding-bottom: 80px; }
}
@media (min-width: 431px) {
  body { border-left: 1px solid var(--s8fc-border); border-right: 1px solid var(--s8fc-border); }
}
