/* ============================================================
   jaya777 theme (mobile-first basefile)
   All custom classes use the w7bfe- prefix.
   Palette: #6F4E37 | #FFE4B5 | #A9A9A9 | #2C2C2C | #E91E63 | #E0F2F1
   Comments in English per project convention.
   ============================================================ */

:root {
  --w7bfe-coffee: #6F4E37;
  --w7bfe-moccasin: #FFE4B5;
  --w7bfe-grey: #A9A9A9;
  --w7bfe-dark: #2C2C2C;
  --w7bfe-pink: #E91E63;
  --w7bfe-teal: #E0F2F1;
  --w7bfe-bg: #1c1612;
  --w7bfe-bg-2: #2a2018;
  --w7bfe-card: #2C2C2C;
  --w7bfe-text: #FFE4B5;
  --w7bfe-text-muted: #A9A9A9;
  --w7bfe-accent: #E91E63;
  --w7bfe-accent-soft: #f06292;
  --w7bfe-line: rgba(255, 228, 181, 0.14);
  --w7bfe-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
  --w7bfe-radius: 14px;
  --w7bfe-max-canvas: 430px;
  --w7bfe-header-h: 56px;
  --w7bfe-bottom-h: 64px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--w7bfe-bg);
  color: var(--w7bfe-text);
  font-family: "Hind Siliguri", "Noto Sans Bengali", "Segoe UI", system-ui, -apple-system, sans-serif;
  font-size: 15px;
  line-height: 1.55;
  -webkit-text-size-adjust: 100%;
}

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

a { color: var(--w7bfe-moccasin); text-decoration: none; }
a:hover, a:focus { color: var(--w7bfe-accent-soft); }

/* Mobile canvas frame: keep phone-sized composition on wider screens */
.w7bfe-canvas {
  width: 100%;
  max-width: var(--w7bfe-max-canvas);
  margin: 0 auto;
  min-height: 100vh;
  background:
    radial-gradient(120% 60% at 50% -10%, rgba(233, 30, 99, 0.18), transparent 60%),
    radial-gradient(120% 60% at 50% 110%, rgba(111, 78, 55, 0.22), transparent 60%),
    var(--w7bfe-bg);
  position: relative;
  padding-bottom: calc(var(--w7bfe-bottom-h) + 16px);
  overflow-x: hidden;
}

/* ---------- Header / compact brand bar ---------- */
.w7bfe-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 8px;
  height: var(--w7bfe-header-h);
  padding: 0 10px;
  background: linear-gradient(90deg, #1a1310 0%, #2a1d16 60%, #1a1310 100%);
  border-bottom: 2px solid var(--w7bfe-coffee);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.w7bfe-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
}

.w7bfe-logo {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  object-fit: cover;
  background: var(--w7bfe-coffee);
  border: 1.5px solid var(--w7bfe-moccasin);
  flex-shrink: 0;
}

.w7bfe-brand-name {
  font-weight: 800;
  font-size: 18px;
  letter-spacing: 0.4px;
  color: var(--w7bfe-moccasin);
  white-space: nowrap;
}
.w7bfe-brand-name span { color: var(--w7bfe-accent); }

.w7bfe-header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.w7bfe-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 13px;
  border: none;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
  text-decoration: none;
  line-height: 1;
}
.w7bfe-btn:active { transform: translateY(1px); }

.w7bfe-btn-login {
  background: transparent;
  color: var(--w7bfe-moccasin);
  border: 1.5px solid var(--w7bfe-moccasin);
}
.w7bfe-btn-login:hover { background: rgba(255, 228, 181, 0.08); }

.w7bfe-btn-register {
  background: linear-gradient(135deg, var(--w7bfe-pink), #ff5a8a);
  color: #fff;
  box-shadow: 0 3px 10px rgba(233, 30, 99, 0.4);
}
.w7bfe-btn-register:hover { box-shadow: 0 5px 14px rgba(233, 30, 99, 0.55); }

.w7bfe-menu-btn {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--w7bfe-coffee);
  color: var(--w7bfe-moccasin);
  border: 1px solid rgba(255, 228, 181, 0.25);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.w7bfe-menu-btn:hover { background: #7d5942; }

/* ---------- Slide-down menu panel ---------- */
.w7bfe-menu-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 60;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease;
}
.w7bfe-menu-backdrop.x7bfe-menu-open,
.w7bfe-menu-backdrop[data-open="true"] {
  opacity: 1;
  pointer-events: auto;
}

.w7bfe-menu-panel {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 70;
  background: linear-gradient(180deg, #1f1714, #2a1d16);
  border-bottom: 2px solid var(--w7bfe-accent);
  padding: 14px 14px 18px;
  transform: translateY(-110%);
  transition: transform 0.22s ease;
  max-width: var(--w7bfe-max-canvas);
  margin: 0 auto;
}
.w7bfe-menu-panel.x7bfe-menu-open { transform: translateY(0); }

.w7bfe-menu-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.w7bfe-menu-title {
  font-size: 14px;
  color: var(--w7bfe-text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}
.w7bfe-menu-close {
  background: transparent;
  border: 0;
  color: var(--w7bfe-moccasin);
  font-size: 22px;
  cursor: pointer;
  line-height: 1;
  padding: 4px 8px;
}

.w7bfe-menu-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.w7bfe-menu-item {
  background: var(--w7bfe-card);
  border: 1px solid var(--w7bfe-line);
  color: var(--w7bfe-moccasin);
  border-radius: 12px;
  padding: 10px 6px;
  text-align: center;
  font-size: 12.5px;
  font-weight: 600;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.12s ease, transform 0.12s ease;
}
.w7bfe-menu-item:hover {
  background: var(--w7bfe-coffee);
  color: #fff;
  transform: translateY(-1px);
}

/* ---------- Hero / Carousel ---------- */
.w7bfe-main {
  padding: 12px 12px 0;
}

.w7bfe-carousel {
  position: relative;
  border-radius: var(--w7bfe-radius);
  overflow: hidden;
  box-shadow: var(--w7bfe-shadow);
  background: var(--w7bfe-card);
  margin-bottom: 14px;
}
.w7bfe-carousel-track {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
}
.w7bfe-carousel-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.45s ease;
  cursor: pointer;
}
.w7bfe-carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.w7bfe-carousel-slide.x7bfe-slide-active { opacity: 1; }

.w7bfe-carousel-overlay {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 2;
  pointer-events: none;
}
.w7bfe-carousel-title {
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
  margin: 0;
}
.w7bfe-carousel-sub {
  font-size: 12.5px;
  color: var(--w7bfe-moccasin);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
  margin-top: 2px;
}

.w7bfe-carousel-cta {
  pointer-events: auto;
  display: inline-flex;
  margin-top: 8px;
  background: linear-gradient(135deg, var(--w7bfe-pink), #ff5a8a);
  color: #fff;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(233, 30, 99, 0.45);
}

.w7bfe-carousel-dots {
  position: absolute;
  bottom: 8px;
  right: 10px;
  z-index: 3;
  display: flex;
  gap: 5px;
}
.w7bfe-carousel-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 228, 181, 0.4);
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}
.w7bfe-carousel-dot.x7bfe-dot-active {
  background: var(--w7bfe-accent);
  transform: scale(1.25);
}

/* ---------- Section ---------- */
.w7bfe-section {
  margin: 16px 0 6px;
}
.w7bfe-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}
.w7bfe-section-title {
  font-size: 17px;
  font-weight: 800;
  color: var(--w7bfe-moccasin);
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}
.w7bfe-section-title::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 18px;
  background: linear-gradient(180deg, var(--w7bfe-accent), var(--w7bfe-coffee));
  border-radius: 2px;
}
.w7bfe-section-more {
  font-size: 12.5px;
  color: var(--w7bfe-accent-soft);
  font-weight: 600;
}

/* Quick category chips (focus aid, not filter hiding) */
.w7bfe-chips {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  padding-bottom: 6px;
  margin-bottom: 10px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.w7bfe-chips::-webkit-scrollbar { display: none; }
.w7bfe-chip {
  flex-shrink: 0;
  padding: 7px 14px;
  background: var(--w7bfe-card);
  border: 1px solid var(--w7bfe-line);
  color: var(--w7bfe-moccasin);
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.12s ease, transform 0.12s ease;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
}
.w7bfe-chip:active { transform: translateY(1px); }
.w7bfe-chip:hover { background: var(--w7bfe-coffee); color: #fff; }

/* ---------- Game grid (dense 4-col) ---------- */
.w7bfe-games {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
@media (min-width: 375px) {
  .w7bfe-games { grid-template-columns: repeat(4, 1fr); gap: 10px; }
}
@media (min-width: 400px) {
  .w7bfe-games { grid-template-columns: repeat(5, 1fr); }
}

.w7bfe-game {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  background: transparent;
  border: none;
  padding: 0;
  text-align: center;
  transition: transform 0.12s ease;
}
.w7bfe-game:hover { transform: translateY(-2px); }

.w7bfe-game-img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  overflow: hidden;
  background: linear-gradient(160deg, #3a2a20, #2C2C2C);
  border: 1px solid var(--w7bfe-line);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
}
.w7bfe-game-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.w7bfe-game:hover .x7bfe-game-img-wrap,
.w7bfe-game:hover .w7bfe-game-img-wrap {
  border-color: var(--w7bfe-accent);
}

.w7bfe-game-name {
  font-size: 11.5px;
  color: var(--w7bfe-text);
  font-weight: 600;
  line-height: 1.25;
  margin-top: 2px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 28px;
}

.w7bfe-cat-label {
  display: inline-block;
  font-size: 11px;
  color: var(--w7bfe-accent-soft);
  background: rgba(233, 30, 99, 0.12);
  padding: 2px 8px;
  border-radius: 999px;
  margin-bottom: 8px;
  font-weight: 600;
}

/* ---------- Highlights / compact modules ---------- */
.w7bfe-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.w7bfe-card {
  background: var(--w7bfe-card);
  border: 1px solid var(--w7bfe-line);
  border-radius: 12px;
  padding: 12px;
  color: var(--w7bfe-text);
}
.w7bfe-card h3 {
  margin: 0 0 6px;
  font-size: 14px;
  color: var(--w7bfe-moccasin);
}
.w7bfe-card p {
  margin: 0;
  font-size: 12.5px;
  color: var(--w7bfe-text-muted);
  line-height: 1.5;
}
.w7bfe-card a {
  display: inline-block;
  margin-top: 8px;
  font-size: 12px;
  color: var(--w7bfe-accent-soft);
  font-weight: 700;
}

/* ---------- Winners strip ---------- */
.w7bfe-winners {
  background: linear-gradient(135deg, rgba(233, 30, 99, 0.12), rgba(111, 78, 55, 0.18));
  border: 1px solid var(--w7bfe-line);
  border-radius: var(--w7bfe-radius);
  padding: 12px;
}
.w7bfe-winner-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 0;
  border-bottom: 1px dashed var(--w7bfe-line);
  font-size: 13px;
}
.w7bfe-winner-row:last-child { border-bottom: none; }
.w7bfe-winner-name { font-weight: 700; color: var(--w7bfe-moccasin); }
.w7bfe-winner-game { color: var(--w7bfe-text-muted); font-size: 12px; }
.w7bfe-winner-amount { color: var(--w7bfe-accent); font-weight: 800; }

/* ---------- App download banner ---------- */
.w7bfe-app-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(135deg, var(--w7bfe-coffee), #4a3326);
  border-radius: var(--w7bfe-radius);
  padding: 14px;
  border: 1px solid var(--w7bfe-moccasin);
}
.w7bfe-app-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: var(--w7bfe-moccasin);
  color: var(--w7bfe-coffee);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 20px;
  flex-shrink: 0;
}
.w7bfe-app-text { flex: 1; min-width: 0; }
.w7bfe-app-text h3 {
  margin: 0 0 2px;
  font-size: 15px;
  color: var(--w7bfe-moccasin);
}
.w7bfe-app-text p {
  margin: 0;
  font-size: 12px;
  color: var(--w7bfe-teal);
}
.w7bfe-app-btn {
  background: var(--w7bfe-accent);
  color: #fff;
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 12.5px;
  border: none;
  cursor: pointer;
}

/* ---------- FAQ-style inline answer ---------- */
.w7bfe-faq {
  background: var(--w7bfe-card);
  border: 1px solid var(--w7bfe-line);
  border-radius: var(--w7bfe-radius);
  padding: 14px;
}
.w7bfe-faq h3 {
  margin: 0 0 6px;
  font-size: 15px;
  color: var(--w7bfe-moccasin);
}
.w7bfe-faq p {
  margin: 0 0 8px;
  font-size: 13px;
  color: var(--w7bfe-text);
  line-height: 1.6;
}
.w7bfe-faq p:last-child { margin-bottom: 0; }

/* ---------- CTA strip ---------- */
.w7bfe-cta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: linear-gradient(135deg, #3a1a26, #2C2C2C);
  border: 1px solid var(--w7bfe-accent);
  border-radius: var(--w7bfe-radius);
  padding: 16px;
  text-align: center;
}
.w7bfe-cta h2 {
  margin: 0;
  color: var(--w7bfe-moccasin);
  font-size: 18px;
}
.w7bfe-cta p {
  margin: 0 0 6px;
  color: var(--w7bfe-text-muted);
  font-size: 13px;
}
.w7bfe-cta .w7bfe-btn {
  align-self: center;
  padding: 10px 22px;
}

/* ---------- Extended footer ---------- */
.w7bfe-ext-footer {
  margin-top: 18px;
  padding: 16px 12px;
  background: linear-gradient(180deg, #1f1714, #150f0c);
  border-top: 1px solid var(--w7bfe-line);
}
.w7bfe-ef-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.w7bfe-ef-brand img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid var(--w7bfe-moccasin);
}
.w7bfe-ef-brand-name {
  font-weight: 800;
  color: var(--w7bfe-moccasin);
  font-size: 15px;
}
.w7bfe-ef-intro {
  font-size: 12.5px;
  color: var(--w7bfe-text-muted);
  margin: 0 0 12px;
  line-height: 1.6;
}

.w7bfe-ef-group-title {
  font-size: 12px;
  color: var(--w7bfe-accent-soft);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 10px 0 6px;
  font-weight: 700;
}
.w7bfe-ef-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px 10px;
  margin-bottom: 8px;
}
.w7bfe-ef-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  color: var(--w7bfe-moccasin);
  padding: 4px 0;
  min-height: 28px;
}
.w7bfe-ef-link svg { width: 14px; height: 14px; flex-shrink: 0; color: var(--w7bfe-accent); }
.w7bfe-ef-link:hover { color: var(--w7bfe-accent-soft); }

.w7bfe-ef-promos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 6px 0 12px;
}
.w7bfe-ef-promo {
  background: var(--w7bfe-card);
  border: 1px solid var(--w7bfe-line);
  border-radius: 10px;
  padding: 10px 6px;
  text-align: center;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--w7bfe-moccasin);
  cursor: pointer;
  transition: transform 0.12s ease, background 0.12s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-height: 44px;
  justify-content: center;
}
.w7bfe-ef-promo:hover { background: var(--w7bfe-coffee); transform: translateY(-1px); }
.w7bfe-ef-promo svg { width: 18px; height: 18px; color: var(--w7bfe-accent); }

.w7bfe-ef-disclaimer {
  margin-top: 8px;
  padding: 10px;
  border-radius: 10px;
  background: rgba(233, 30, 99, 0.08);
  border: 1px dashed rgba(233, 30, 99, 0.35);
  font-size: 11.5px;
  color: var(--w7bfe-text-muted);
  line-height: 1.55;
}

.w7bfe-copyright {
  padding: 10px 12px 14px;
  text-align: center;
  font-size: 11.5px;
  color: var(--w7bfe-grey);
}

/* ---------- Bottom navigation ---------- */
.w7bfe-bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 45;
  max-width: var(--w7bfe-max-canvas);
  margin: 0 auto;
  height: var(--w7bfe-bottom-h);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  background: linear-gradient(180deg, #2a1d16, #160f0b);
  border-top: 2px solid var(--w7bfe-coffee);
  box-shadow: 0 -3px 12px rgba(0, 0, 0, 0.55);
}
.w7bfe-nav-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: var(--w7bfe-text-muted);
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 6px 2px 4px;
  font-size: 10.5px;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.15s ease, transform 0.15s ease;
  min-height: 44px;
}
.w7bfe-nav-item svg {
  width: 22px;
  height: 22px;
  transition: transform 0.18s ease, fill 0.18s ease;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.w7bfe-nav-item:hover { color: var(--w7bfe-moccasin); transform: translateY(-2px); }
.w7bfe-nav-item.w7bfe-nav-active { color: var(--w7bfe-accent); }
.w7bfe-nav-item.w7bfe-nav-active svg {
  fill: var(--w7bfe-accent);
  stroke: var(--w7bfe-accent);
}
.w7bfe-nav-item.w7bfe-nav-promo {
  color: var(--w7bfe-moccasin);
}
.w7bfe-nav-item.w7bfe-nav-promo svg {
  fill: var(--w7bfe-accent);
  stroke: var(--w7bfe-accent);
}
.w7bfe-nav-badge {
  position: absolute;
  top: 4px;
  right: 50%;
  margin-right: -16px;
  background: var(--w7bfe-accent);
  color: #fff;
  font-size: 8px;
  font-weight: 800;
  border-radius: 999px;
  padding: 1px 4px;
  line-height: 1;
}

/* ---------- Helpers ---------- */
.w7bfe-h1 {
  font-size: 22px;
  font-weight: 800;
  margin: 8px 0 4px;
  color: var(--w7bfe-moccasin);
  line-height: 1.3;
}
.w7bfe-lead {
  font-size: 13.5px;
  color: var(--w7bfe-text-muted);
  margin: 0 0 10px;
  line-height: 1.6;
}
.w7bfe-visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
