/*!
 * bk 99 - design-177c.css
 * Mobile-first (max-width: 430px) styling. All custom classes use s177- prefix.
 * Palette: #CC99FF | #FFEBCD | #ADB5BD | #F8F8FF | #8A2BE2 | #333333
 */

/* ---------- Reset ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { font-size: 62.5%; scroll-behavior: smooth; }
body {
  font-family: 'Hind Siliguri', 'Noto Sans Bengali', 'Segoe UI', Tahoma, sans-serif;
  background: #333333;
  color: #F8F8FF;
  line-height: 1.5;
  font-size: 1.5rem;
  max-width: 430px;
  margin: 0 auto;
  position: relative;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: #CC99FF; text-decoration: none; }

/* ---------- Header ---------- */
.s177-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 1rem;
  background: linear-gradient(135deg, #8A2BE2 0%, #333333 100%);
  border-bottom: 1px solid rgba(204, 153, 255, 0.25);
}
.s177-logo { display: flex; align-items: center; gap: 0.6rem; color: #FFEBCD; font-weight: 700; font-size: 1.8rem; }
.s177-logo img { width: 32px; height: 32px; border-radius: 8px; }
.s177-menu-btn {
  background: transparent; border: none; color: #F8F8FF; font-size: 2rem; cursor: pointer; padding: 0.4rem;
}
.s177-header-actions { display: flex; gap: 0.5rem; align-items: center; }
.s177-btn {
  border: none; cursor: pointer; padding: 0.7rem 1.3rem; border-radius: 999px;
  font-size: 1.35rem; font-weight: 700; display: inline-flex; align-items: center; gap: 0.4rem;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.s177-btn:active { transform: scale(0.95); }
.s177-btn-login { background: #FFEBCD; color: #333333; }
.s177-btn-register { background: linear-gradient(135deg, #CC99FF, #8A2BE2); color: #F8F8FF; box-shadow: 0 4px 12px rgba(138, 43, 226, 0.5); }

/* ---------- Mobile menu (slide-in) ---------- */
.s177-menu-overlay {
  position: fixed; inset: 0; background: rgba(0, 0, 0, 0.6); z-index: 9998;
  opacity: 0; visibility: hidden; transition: opacity 0.25s ease;
}
.s177-menu-overlay.s177-overlay-show { opacity: 1; visibility: visible; }
.s177-mobile-menu {
  position: fixed; top: 0; left: -85%; width: 80%; max-width: 320px; height: 100vh;
  background: #2a2a2a; z-index: 9999; padding: 1.5rem; transition: left 0.3s ease;
  overflow-y: auto;
}
.s177-mobile-menu.s177-menu-open { left: 0; }
.s177-menu-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; }
.s177-menu-close { background: transparent; border: none; color: #F8F8FF; font-size: 2.2rem; cursor: pointer; }
.s177-mobile-menu a {
  display: block; padding: 1rem 0.6rem; border-bottom: 1px solid rgba(204, 153, 255, 0.15);
  color: #FFEBCD; font-size: 1.5rem;
}
.s177-mobile-menu a i { margin-right: 0.6rem; color: #CC99FF; }

/* ---------- Hero carousel ---------- */
.s177-hero {
  position: relative; overflow: hidden; border-radius: 0 0 18px 18px;
}
.s177-hero-track { display: flex; transition: transform 0.5s ease; }
.s177-slide { min-width: 100%; position: relative; }
.s177-slide img { width: 100%; height: 200px; object-fit: cover; }
.s177-slide-text {
  position: absolute; left: 1.2rem; bottom: 1.2rem; right: 1.2rem;
  background: linear-gradient(transparent, rgba(51, 51, 51, 0.9));
  padding: 0.8rem; border-radius: 10px;
}
.s177-slide-text h2 { color: #FFEBCD; font-size: 1.8rem; margin-bottom: 0.3rem; }
.s177-slide-text p { color: #F8F8FF; font-size: 1.3rem; }
.s177-hero-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); background: rgba(138, 43, 226, 0.7);
  border: none; color: #F8F8FF; width: 32px; height: 32px; border-radius: 50%; cursor: pointer;
  font-size: 1.4rem;
}
.s177-hero-arrow.prev { left: 8px; }
.s177-hero-arrow.next { right: 8px; }

/* ---------- Promo banner ---------- */
.s177-promo-banner {
  margin: 1rem; padding: 1.2rem; border-radius: 14px;
  background: linear-gradient(135deg, #8A2BE2, #CC99FF);
  display: flex; align-items: center; justify-content: space-between; gap: 0.8rem;
  box-shadow: 0 6px 18px rgba(138, 43, 226, 0.4);
}
.s177-promo-banner h3 { color: #FFEBCD; font-size: 1.6rem; }
.s177-promo-banner p { color: #F8F8FF; font-size: 1.25rem; }
.s177-promo-banner .s177-btn { background: #FFEBCD; color: #8A2BE2; }

/* ---------- Search & tabs ---------- */
.s177-search-wrap { padding: 0.5rem 1rem; }
.s177-search-input {
  width: 100%; padding: 0.9rem 1.2rem; border-radius: 999px; border: 1px solid #ADB5BD;
  background: #444; color: #F8F8FF; font-size: 1.4rem; outline: none;
}
.s177-tabs {
  display: flex; gap: 0.5rem; padding: 0.8rem 1rem; overflow-x: auto;
  scrollbar-width: none;
}
.s177-tabs::-webkit-scrollbar { display: none; }
.s177-tab {
  flex: 0 0 auto; padding: 0.6rem 1.2rem; border-radius: 999px; background: #444;
  color: #FFEBCD; font-size: 1.3rem; cursor: pointer; border: 1px solid transparent;
  white-space: nowrap;
}
.s177-tab.s177-tab-active { background: linear-gradient(135deg, #CC99FF, #8A2BE2); color: #F8F8FF; }

/* ---------- Section title ---------- */
.s177-section-title {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 1rem 0.5rem;
}
.s177-section-title h2 { color: #CC99FF; font-size: 1.7rem; }
.s177-section-title a { color: #ADB5BD; font-size: 1.25rem; }

/* ---------- Game grid & cards ---------- */
.s177-game-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.7rem; padding: 0.5rem 1rem;
}
.s177-card {
  background: #3c3c3c; border-radius: 12px; overflow: hidden; position: relative;
  border: 1px solid rgba(204, 153, 255, 0.1); transition: transform 0.2s ease;
}
.s177-card:active { transform: scale(0.96); }
.s177-card img { width: 100%; height: 92px; object-fit: cover; }
.s177-card-body { padding: 0.5rem; }
.s177-card-title { color: #FFEBCD; font-size: 1.15rem; font-weight: 600; line-height: 1.2; }
.s177-card-tag {
  position: absolute; top: 4px; left: 4px; background: rgba(138, 43, 226, 0.85);
  color: #F8F8FF; font-size: 1rem; padding: 0.15rem 0.5rem; border-radius: 6px;
}
.s177-card-play {
  display: block; margin: 0.4rem auto 0.5rem; width: 90%; text-align: center; padding: 0.4rem;
  background: linear-gradient(135deg, #CC99FF, #8A2BE2); color: #F8F8FF; font-size: 1.15rem;
  border-radius: 8px; border: none; cursor: pointer; font-weight: 700;
}

/* ---------- Content / SEO ---------- */
.s177-content { padding: 1rem; color: #F8F8FF; }
.s177-content h2 { color: #CC99FF; font-size: 1.7rem; margin: 1.2rem 0 0.6rem; }
.s177-content h3 { color: #FFEBCD; font-size: 1.4rem; margin: 1rem 0 0.4rem; }
.s177-content p { color: #F8F8FF; font-size: 1.35rem; margin-bottom: 0.8rem; line-height: 1.6; }
.s177-content a { color: #CC99FF; text-decoration: underline; }

/* ---------- FAQ ---------- */
.s177-faq details {
  background: #3c3c3c; border-radius: 10px; padding: 0.8rem 1rem; margin-bottom: 0.6rem;
  border: 1px solid rgba(204, 153, 255, 0.12);
}
.s177-faq summary { cursor: pointer; color: #FFEBCD; font-weight: 600; font-size: 1.35rem; }
.s177-faq p { margin-top: 0.6rem; color: #F8F8FF; font-size: 1.3rem; }

/* ---------- Footer ---------- */
.s177-footer {
  background: #2a2a2a; padding: 1.5rem 1rem 5.5rem; border-top: 2px solid #8A2BE2;
}
.s177-footer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1rem; }
.s177-footer-col h4 { color: #CC99FF; font-size: 1.3rem; margin-bottom: 0.5rem; }
.s177-footer-col a { display: block; color: #ADB5BD; font-size: 1.2rem; padding: 0.25rem 0; }
.s177-footer-bottom { text-align: center; color: #ADB5BD; font-size: 1.15rem; border-top: 1px solid #444; padding-top: 1rem; }

/* ---------- Mobile bottom nav ---------- */
.s177-bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0; max-width: 430px; margin: 0 auto;
  height: 62px; background: #2a2a2a; border-top: 1px solid rgba(204, 153, 255, 0.3);
  display: flex; justify-content: space-around; align-items: center; z-index: 1000;
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.4);
}
.s177-nav-btn {
  min-width: 60px; min-height: 60px; display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 2px; background: transparent; border: none; cursor: pointer;
  color: #ADB5BD; transition: color 0.2s ease, transform 0.2s ease;
}
.s177-nav-btn .material-icons, .s177-nav-btn .fas, .s177-nav-btn .bi { font-size: 22px; }
.s177-nav-btn span { font-size: 1.05rem; }
.s177-nav-btn.active { color: #CC99FF; }
.s177-nav-btn:active { transform: scale(0.9); }
.s177-nav-btn.s177-nav-promo {
  background: linear-gradient(135deg, #8A2BE2, #CC99FF); color: #F8F8FF;
  border-radius: 50%; width: 50px; height: 50px; margin-top: -22px;
  box-shadow: 0 4px 12px rgba(138, 43, 226, 0.6);
}

/* ---------- Toast ---------- */
.s177-toast {
  position: fixed; bottom: 80px; left: 50%; transform: translateX(-50%) translateY(20px);
  background: #8A2BE2; color: #FFEBCD; padding: 0.8rem 1.5rem; border-radius: 999px;
  font-size: 1.3rem; opacity: 0; visibility: hidden; transition: all 0.3s ease; z-index: 5000;
}
.s177-toast.s177-toast-show { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }

/* ---------- Help pages ---------- */
.s177-page-hero {
  margin: 1rem; padding: 1.4rem; border-radius: 18px;
  background: radial-gradient(circle at top left, rgba(204,153,255,.32), transparent 42%), linear-gradient(135deg, #3c2360, #2a2a2a);
  border: 1px solid rgba(204,153,255,.25);
}
.s177-page-hero h1 { color: #FFEBCD; font-size: 2rem; line-height: 1.25; margin-bottom: .7rem; }
.s177-page-hero p { color: #F8F8FF; font-size: 1.35rem; line-height: 1.55; margin-bottom: .8rem; }
.s177-cta-row { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: .9rem; }
.s177-link-strong { color: #FFEBCD; font-weight: 700; text-decoration: underline; cursor: pointer; }
.s177-step-grid { display: grid; gap: .8rem; padding: .5rem 1rem; }
.s177-step {
  background: #3c3c3c; border: 1px solid rgba(204,153,255,.14); border-radius: 14px;
  padding: 1rem; box-shadow: 0 5px 16px rgba(0,0,0,.16);
}
.s177-step b { color: #CC99FF; display: inline-block; margin-bottom: .35rem; }
.s177-step p { color: #F8F8FF; font-size: 1.32rem; line-height: 1.55; }
.s177-mini-list { list-style: none; display: grid; gap: .65rem; margin-top: .7rem; }
.s177-mini-list li { padding-left: 1.8rem; position: relative; color: #F8F8FF; font-size: 1.3rem; }
.s177-mini-list li:before { content: '◆'; position: absolute; left: 0; color: #CC99FF; }
.s177-note {
  margin: 1rem; padding: 1rem; border-radius: 12px; background: rgba(255,235,205,.08);
  border-left: 4px solid #CC99FF; color: #FFEBCD; font-size: 1.3rem;
}

/* ---------- Main padding for bottom nav clearance ---------- */
main { padding-bottom: 80px; }

/* ---------- Desktop: hide bottom nav ---------- */
@media (min-width: 769px) {
  .s177-bottom-nav { display: none; }
  main { padding-bottom: 0; }
}
