/* ============================================================
   9x99.click - theme.css
   Bengali (bn-BD) mobile-first casino homepage.
   All custom classes use w06e6- prefix.
   Palette: #FFAA00 | #2D2D2D | #FFCC33 | #E65100 | #FF8C00
   ============================================================ */

:root {
  --w06e6-primary: #FFAA00;
  --w06e6-bg: #2D2D2D;
  --w06e6-gold: #FFCC33;
  --w06e6-orange: #E65100;
  --w06e6-fire: #FF8C00;
  --w06e6-dark: #1a1a1a;
  --w06e6-card: #3a3a3a;
  --w06e6-text: #FFFFFF;
  --w06e6-muted: #d8d8d8;
  --w06e6-radius: 12px;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  font-family: 'Noto Sans Bengali', 'Hind Siliguri', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  background: var(--w06e6-bg);
  color: var(--w06e6-text);
  line-height: 1.5;
  font-size: 15px;
  overflow-x: hidden;
}

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

.w06e6-container { width: 100%; max-width: 430px; margin: 0 auto; padding: 0 12px; }

/* ---------------- Header ---------------- */
.w06e6-header {
  position: sticky; top: 0; z-index: 1000;
  background: linear-gradient(135deg, var(--w06e6-orange) 0%, var(--w06e6-bg) 70%);
  border-bottom: 2px solid var(--w06e6-primary);
  box-shadow: 0 2px 10px rgba(0,0,0,.45);
}
.w06e6-header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 12px; max-width: 430px; margin: 0 auto;
}
.w06e6-logo { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 18px; color: var(--w06e6-gold); }
.w06e6-logo img { width: 28px; height: 28px; border-radius: 6px; }
.w06e6-logo span { color: var(--w06e6-primary); }
.w06e6-actions { display: flex; align-items: center; gap: 6px; }

.w06e6-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px; border-radius: 999px;
  font-weight: 700; font-size: 13px; border: none; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease;
  min-height: 36px; font-family: inherit;
}
.w06e6-btn:hover { transform: translateY(-1px); }
.w06e6-btn-login { background: #fff; color: var(--w06e6-orange); }
.w06e6-btn-register { background: linear-gradient(135deg, var(--w06e6-primary), var(--w06e6-orange)); color: #1a1a1a; box-shadow: 0 2px 8px rgba(255,140,0,.5); }

/* Hamburger */
.w06e6-menu-btn {
  background: transparent; border: 0; color: #fff; font-size: 22px; cursor: pointer;
  padding: 4px 6px; border-radius: 6px; min-width: 36px; min-height: 36px;
}
.w06e6-menu-btn:hover { color: var(--w06e6-primary); }

/* Expandable menu */
.w06e6-mobile-menu {
  max-height: 0; overflow: hidden; transition: max-height .3s ease;
  background: var(--w06e6-dark);
}
.w06e6-menu-open { max-height: 520px; }
.w06e6-mobile-menu ul { list-style: none; padding: 6px 12px; }
.w06e6-mobile-menu li a {
  display: block; padding: 11px 6px; color: var(--w06e6-text);
  border-bottom: 1px solid rgba(255,170,0,.18); font-size: 14px;
}
.w06e6-mobile-menu li:last-child a { border-bottom: 0; }
.w06e6-mobile-menu li a:hover { color: var(--w06e6-primary); padding-left: 12px; }

/* ---------------- Carousel ---------------- */
.w06e6-carousel { position: relative; margin: 10px 0; border-radius: var(--w06e6-radius); overflow: hidden; }
.w06e6-slide {
  display: none; position: relative; cursor: pointer;
}
.w06e6-slide-active { display: block; }
.w06e6-slide img { width: 100%; height: 180px; object-fit: cover; }
.w06e6-slide-cap {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 10px 14px; font-weight: 700; font-size: 15px;
  background: linear-gradient(transparent, rgba(0,0,0,.85)); color: #fff;
}
.w06e6-dots { position: absolute; bottom: 8px; left: 0; right: 0; text-align: center; }
.w06e6-dot {
  display: inline-block; width: 8px; height: 8px; margin: 0 3px;
  background: rgba(255,255,255,.5); border-radius: 50%; cursor: pointer;
}
.w06e6-dot-active { background: var(--w06e6-primary); width: 20px; border-radius: 4px; }

/* ---------------- Section / Heading ---------------- */
.w06e6-section { padding: 14px 0; }
.w06e6-h1 {
  font-size: 22px; font-weight: 800; color: var(--w06e6-gold);
  padding: 10px 0 6px; line-height: 1.3;
}
.w06e6-h2 {
  font-size: 17px; font-weight: 800; color: var(--w06e6-primary);
  margin: 14px 0 8px; padding-left: 10px; border-left: 4px solid var(--w06e6-orange);
}
.w06e6-h3 { font-size: 15px; font-weight: 700; color: var(--w06e6-gold); margin: 10px 0 6px; }
.w06e6-lead { color: var(--w06e6-muted); font-size: 14px; margin-bottom: 10px; }
.w06e6-p { margin-bottom: 10px; color: #eee; font-size: 14px; }

/* Category title bar */
.w06e6-cat-title {
  display: flex; align-items: center; gap: 8px;
  background: linear-gradient(90deg, var(--w06e6-orange), transparent);
  padding: 8px 12px; border-radius: 8px; margin: 14px 0 8px;
}
.w06e6-cat-title i, .w06e6-cat-title span.mi { color: var(--w06e6-gold); font-size: 20px; }
.w06e6-cat-title h3 { color: #fff; font-size: 16px; font-weight: 800; }

/* ---------------- Game grid ---------------- */
.w06e6-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;
}
.w06e6-card {
  background: var(--w06e6-card); border-radius: 10px; overflow: hidden;
  cursor: pointer; position: relative; border: 1px solid rgba(255,170,0,.15);
  transition: transform .15s ease, box-shadow .15s ease;
}
.w06e6-card:hover { transform: translateY(-3px); box-shadow: 0 6px 14px rgba(0,0,0,.5); border-color: var(--w06e6-primary); }
.w06e6-card-img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; background: #222; }
.w06e6-card-name {
  padding: 6px 6px 7px; font-size: 11px; font-weight: 600; color: #fff;
  text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.w06e6-card-badge {
  position: absolute; top: 4px; left: 4px; background: var(--w06e6-orange);
  color: #fff; font-size: 9px; padding: 2px 6px; border-radius: 4px; font-weight: 700;
}

/* ---------------- Promo banner ---------------- */
.w06e6-banner {
  background: linear-gradient(135deg, var(--w06e6-orange), var(--w06e6-fire));
  border-radius: var(--w06e6-radius); padding: 14px; color: #fff;
  text-align: center; margin: 12px 0; box-shadow: 0 4px 14px rgba(230,81,0,.45);
}
.w06e6-banner h3 { font-size: 18px; color: #fff; margin-bottom: 4px; }
.w06e6-banner p { font-size: 13px; opacity: .95; margin-bottom: 10px; }
.w06e6-banner-cta {
  display: inline-block; background: #fff; color: var(--w06e6-orange);
  padding: 8px 20px; border-radius: 999px; font-weight: 800; cursor: pointer;
}

/* ---------------- Feature tiles ---------------- */
.w06e6-features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.w06e6-feature {
  background: var(--w06e6-card); border-radius: 10px; padding: 12px; text-align: center;
  border-top: 3px solid var(--w06e6-primary);
}
.w06e6-feature .ico { font-size: 28px; color: var(--w06e6-gold); }
.w06e6-feature h4 { font-size: 13px; color: #fff; margin: 6px 0 4px; }
.w06e6-feature p { font-size: 11px; color: var(--w06e6-muted); }

/* ---------------- Testimonial ---------------- */
.w06e6-quote {
  background: var(--w06e6-card); border-left: 4px solid var(--w06e6-primary);
  padding: 10px 12px; border-radius: 8px; margin-bottom: 8px;
}
.w06e6-quote .who { color: var(--w06e6-gold); font-size: 13px; font-weight: 700; }
.w06e6-quote p { font-size: 13px; color: #eee; margin-top: 3px; }

/* ---------------- Payment ---------------- */
.w06e6-pay { display: flex; flex-wrap: wrap; gap: 8px; }
.w06e6-pay span {
  background: var(--w06e6-card); padding: 8px 12px; border-radius: 8px;
  font-size: 12px; color: var(--w06e6-gold); border: 1px solid rgba(255,170,0,.25);
}

/* ---------------- Winners ticker ---------------- */
.w06e6-winner {
  background: var(--w06e6-card); border-radius: 8px; padding: 8px 10px; margin-bottom: 6px;
  display: flex; justify-content: space-between; align-items: center; font-size: 12px;
}
.w06e6-winner .nm { color: #fff; font-weight: 700; }
.w06e6-winner .gm { color: var(--w06e6-muted); }
.w06e6-winner .amt { color: var(--w06e6-primary); font-weight: 800; }

/* ---------------- App CTA ---------------- */
.w06e6-appcta {
  background: linear-gradient(135deg, var(--w06e6-dark), var(--w06e6-bg));
  border: 1px solid var(--w06e6-primary); border-radius: var(--w06e6-radius);
  padding: 14px; display: flex; align-items: center; gap: 12px; margin: 12px 0;
}
.w06e6-appcta .ico { font-size: 36px; color: var(--w06e6-primary); }
.w06e6-appcta h3 { color: var(--w06e6-gold); font-size: 16px; }
.w06e6-appcta p { color: var(--w06e6-muted); font-size: 12px; margin: 4px 0 8px; }

/* Inline promo anchor styling */
a.w06e6-promo-link {
  color: var(--w06e6-primary); font-weight: 700;
  border-bottom: 1px dashed var(--w06e6-gold);
}

/* ---------------- Footer ---------------- */
.w06e6-footer {
  background: var(--w06e6-dark); padding: 18px 12px 20px;
  border-top: 2px solid var(--w06e6-orange); margin-top: 16px;
}
.w06e6-footer h4 { color: var(--w06e6-gold); font-size: 14px; margin-bottom: 8px; }
.w06e6-footer p { color: var(--w06e6-muted); font-size: 12px; margin-bottom: 10px; }
.w06e6-footer-links {
  display: flex; flex-wrap: wrap; gap: 8px 14px; margin-bottom: 12px;
}
.w06e6-footer-links a { color: #ccc; font-size: 12px; }
.w06e6-footer-links a:hover { color: var(--w06e6-primary); }
.w06e6-footer-promo {
  display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0;
}
.w06e6-footer-promo button, .w06e6-footer-promo a {
  background: linear-gradient(135deg, var(--w06e6-primary), var(--w06e6-orange));
  color: #1a1a1a; padding: 6px 12px; border-radius: 999px; font-size: 12px;
  font-weight: 700; border: 0; cursor: pointer; display: inline-block;
}
.w06e6-copy { font-size: 11px; color: #999; text-align: center; margin-top: 10px; }

/* ---------------- Bottom navigation (mobile only) ---------------- */
.w06e6-bnav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 1000;
  background: linear-gradient(180deg, #1f1f1f, #000);
  border-top: 2px solid var(--w06e6-primary);
  display: flex; justify-content: space-around; align-items: stretch;
  height: 62px;
  box-shadow: 0 -3px 12px rgba(0,0,0,.5);
}
.w06e6-bnav-btn {
  flex: 1; min-width: 60px; min-height: 60px;
  background: transparent; border: 0; color: #ccc;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px; cursor: pointer; padding: 4px 2px; font-family: inherit;
  transition: transform .15s ease, color .15s ease;
  position: relative;
}
.w06e6-bnav-btn .ico { font-size: 22px; }
.w06e6-bnav-btn .ico.mi { font-size: 24px; }
.w06e6-bnav-btn .lbl { font-size: 10px; }
.w06e6-bnav-btn:hover { color: var(--w06e6-gold); transform: translateY(-2px); }
.w06e6-bnav-active { color: var(--w06e6-primary); }
.w06e6-bnav-active::before {
  content: ''; position: absolute; top: 0; left: 25%; right: 25%;
  height: 3px; background: var(--w06e6-primary); border-radius: 0 0 4px 4px;
}

/* ---------------- Desktop / larger screens ---------------- */
@media (min-width: 769px) {
  body { background: #111; }
  .w06e6-container, .w06e6-header-inner { max-width: 768px; }
  .w06e6-grid { grid-template-columns: repeat(6, 1fr); }
  .w06e6-features { grid-template-columns: repeat(4, 1fr); }
  .w06e6-bnav { display: none; }
  main { padding-bottom: 24px !important; }
}

/* Ensure mobile main content clears the fixed bottom nav */
@media (max-width: 768px) {
  main { padding-bottom: 80px; }
}

/* Focus accessibility */
.w06e6-btn:focus-visible, .w06e6-bnav-btn:focus-visible, .w06e6-menu-btn:focus-visible {
  outline: 2px solid var(--w06e6-gold); outline-offset: 2px;
}
