/* ==========================================================================
   shell-b50f12.css - 333 dhaka mobile-first shell
   All custom classes / variables use the "wb50f-" prefix.
   Palette: #BF360C (crimson) | #495057 (slate) | #FAFAD2 (light silk)
            #2C2C2C (charcoal bg) | #FFCC02 (amber) | #FFF176 (soft amber)
   Comments in English only.
   ========================================================================== */

:root {
  --wb50f-crimson: #BF360C;
  --wb50f-slate: #495057;
  --wb50f-silk: #FAFAD2;
  --wb50f-charcoal: #2C2C2C;
  --wb50f-amber: #FFCC02;
  --wb50f-soft-amber: #FFF176;
  --wb50f-bg: #1c1a17;
  --wb50f-bg-2: #2C2C2C;
  --wb50f-surface: #322f2a;
  --wb50f-surface-2: #3b3731;
  --wb50f-line: rgba(255, 204, 2, 0.18);
  --wb50f-text: #FAFAD2;
  --wb50f-text-soft: #d8d2b0;
  --wb50f-text-muted: #a59f7c;
  --wb50f-radius: 14px;
  --wb50f-radius-sm: 10px;
  --wb50f-shadow: 0 6px 22px rgba(0, 0, 0, 0.35);
  --wb50f-header-h: 116px;
  --wb50f-bottomnav-h: 70px;
  --wb50f-safe-bottom: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; }

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

img { max-width: 100%; display: block; }
a { color: var(--wb50f-amber); text-decoration: none; transition: color .25s ease; }
a:hover, a:focus { color: var(--wb50f-soft-amber); }

.wb50f-wrap {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  padding: 0 14px;
}

.wb50f-page {
  padding-top: var(--wb50f-header-h);
  padding-bottom: calc(var(--wb50f-bottomnav-h) + 24px + var(--wb50f-safe-bottom));
  min-height: 100vh;
}

/* ---------- Header: brand row + action row (two-layer layout) ---------- */
.wb50f-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 90;
  background: linear-gradient(180deg, #2C2C2C 0%, #1f1d19 100%);
  border-bottom: 2px solid var(--wb50f-crimson);
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.45);
  max-width: 430px;
  margin: 0 auto;
}

.wb50f-brand-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px 4px;
}

.wb50f-logo {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: radial-gradient(circle at 30% 30%, var(--wb50f-amber), var(--wb50f-crimson));
  display: grid; place-items: center;
  font-weight: 800; color: #2C2C2C;
  font-size: 18px;
  box-shadow: inset 0 0 0 2px rgba(255, 241, 118, 0.35);
}

.wb50f-brand-name {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.3px;
  color: var(--wb50f-silk);
}
.wb50f-brand-name span { color: var(--wb50f-amber); }

.wb50f-menu-btn {
  margin-left: auto;
  background: var(--wb50f-surface);
  border: 1px solid var(--wb50f-line);
  color: var(--wb50f-silk);
  width: 40px; height: 40px;
  border-radius: 10px;
  display: grid; place-items: center;
  cursor: pointer;
}
.wb50f-menu-btn:hover { background: var(--wb50f-surface-2); }

.wb50f-action-row {
  display: flex;
  gap: 10px;
  padding: 4px 14px 10px;
}

.wb50f-btn {
  flex: 1;
  border: none;
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
  min-height: 44px;
  transition: transform .18s ease, filter .25s ease, background .25s ease;
}
.wb50f-btn:active { transform: translateY(1px); }

.wb50f-btn-register {
  background: linear-gradient(135deg, var(--wb50f-crimson), #8a2606);
  color: var(--wb50f-silk);
  box-shadow: 0 4px 14px rgba(191, 54, 12, 0.45);
}
.wb50f-btn-register:hover { filter: brightness(1.1); color: #fff; }

.wb50f-btn-login {
  background: linear-gradient(135deg, var(--wb50f-amber), #d99f00);
  color: #2C2C2C;
  box-shadow: 0 4px 14px rgba(255, 204, 2, 0.30);
}
.wb50f-btn-login:hover { filter: brightness(1.08); color: #1c1a17; }

/* ---------- Layered dropdown menu ---------- */
.wb50f-menu-layer {
  position: absolute;
  top: 100%; left: 0; right: 0;
  background: #1f1d19;
  border-top: 1px solid var(--wb50f-line);
  padding: 12px 14px 18px;
  display: none;
  box-shadow: var(--wb50f-shadow);
}
.wb50f-header.wb50f-menu-open .wb50f-menu-layer { display: block; animation: wb50f-fade .25s ease; }

@keyframes wb50f-fade { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

.wb50f-menu-group { margin-bottom: 12px; }
.wb50f-menu-group-title {
  font-size: 12px;
  color: var(--wb50f-amber);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin: 6px 0 6px;
}
.wb50f-menu-cols {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
}
.wb50f-menu-cols a {
  background: var(--wb50f-surface);
  color: var(--wb50f-silk);
  padding: 9px 10px;
  border-radius: 8px;
  font-size: 13.5px;
  border: 1px solid transparent;
  display: block;
  min-height: 40px;
}
.wb50f-menu-cols a:hover {
  background: var(--wb50f-surface-2);
  border-color: var(--wb50f-line);
  color: var(--wb50f-soft-amber);
}

/* ---------- Hero / Carousel ---------- */
.wb50f-hero {
  margin-top: 14px;
}
.wb50f-carousel {
  position: relative;
  border-radius: var(--wb50f-radius);
  overflow: hidden;
  background: #000;
  box-shadow: var(--wb50f-shadow);
}
.wb50f-slides { position: relative; aspect-ratio: 16 / 9; }
.wb50f-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity var(--wb50f-carousel-transition, 520ms) ease;
}
.wb50f-slide img { width: 100%; height: 100%; object-fit: cover; }
.wb50f-slide.wb50f-active { opacity: 1; }

.wb50f-slide-caption {
  position: absolute;
  left: 12px; right: 90px; bottom: 12px;
  color: var(--wb50f-silk);
  text-shadow: 0 2px 8px rgba(0,0,0,.7);
  font-weight: 700;
  font-size: 15px;
}

.wb50f-dots {
  position: absolute;
  right: 12px; bottom: 12px;
  display: flex; gap: 6px;
}
.wb50f-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(250, 250, 210, 0.5);
  border: none; padding: 0; cursor: pointer;
}
.wb50f-dot.wb50f-active { background: var(--wb50f-amber); }

/* ---------- Section heading ---------- */
.wb50f-section {
  margin-top: 22px;
}
.wb50f-section-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.wb50f-section-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--wb50f-silk);
}
.wb50f-section-title em {
  font-style: normal;
  color: var(--wb50f-amber);
}
.wb50f-section-tag {
  background: rgba(255, 204, 2, 0.12);
  color: var(--wb50f-amber);
  border: 1px solid var(--wb50f-line);
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
}
.wb50f-link-more {
  margin-left: auto;
  font-size: 12.5px;
  color: var(--wb50f-soft-amber);
}

/* ---------- Game grid (4 cols at 320, 5 at wider) ---------- */
.wb50f-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
@media (min-width: 360px) {
  .wb50f-game-grid { gap: 12px; }
}
@media (min-width: 400px) {
  .wb50f-game-grid { grid-template-columns: repeat(5, 1fr); }
}

.wb50f-game {
  background: var(--wb50f-surface);
  border: 1px solid transparent;
  border-radius: var(--wb50f-radius-sm);
  padding: 6px;
  text-align: center;
  cursor: pointer;
  transition: transform .2s ease, border-color .25s ease, background .25s ease;
}
.wb50f-game:hover, .wb50f-game:focus {
  transform: translateY(-2px);
  border-color: var(--wb50f-line);
  background: var(--wb50f-surface-2);
}
.wb50f-game-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 8px;
  background: #000;
}
.wb50f-game-name {
  margin-top: 6px;
  font-size: 12px;
  color: var(--wb50f-text-soft);
  line-height: 1.3;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  min-height: 32px;
}
.wb50f-game-badge {
  display: inline-block;
  margin-top: 2px;
  font-size: 9.5px;
  background: var(--wb50f-crimson);
  color: var(--wb50f-silk);
  padding: 1px 6px;
  border-radius: 6px;
  font-weight: 700;
}
.wb50f-game-badge.hot { background: linear-gradient(90deg, #d99f00, #BF360C); }

/* ---------- Feature / info cards ---------- */
.wb50f-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.wb50f-card {
  background: var(--wb50f-surface);
  border: 1px solid var(--wb50f-line);
  border-radius: var(--wb50f-radius-sm);
  padding: 12px;
}
.wb50f-card h3 {
  margin: 0 0 6px;
  color: var(--wb50f-amber);
  font-size: 14.5px;
}
.wb50f-card p {
  margin: 0;
  font-size: 13px;
  color: var(--wb50f-text-soft);
}

/* ---------- Testimonials ---------- */
.wb50f-testi {
  background: var(--wb50f-surface);
  border-left: 3px solid var(--wb50f-amber);
  border-radius: 8px;
  padding: 10px 12px;
  margin-bottom: 10px;
}
.wb50f-testi p { margin: 0 0 6px; font-size: 13px; color: var(--wb50f-text-soft); }
.wb50f-testi .wb50f-testi-by { font-size: 12px; color: var(--wb50f-amber); font-weight: 700; }

/* ---------- Winners strip ---------- */
.wb50f-winners {
  background: linear-gradient(135deg, #2C2C2C, #3a1505);
  border: 1px solid var(--wb50f-line);
  border-radius: var(--wb50f-radius-sm);
  padding: 10px 12px;
}
.wb50f-winner-row {
  display: grid;
  grid-template-columns: 32px 1fr auto;
  gap: 8px;
  align-items: center;
  padding: 6px 0;
  border-bottom: 1px dashed rgba(255, 241, 118, 0.15);
  font-size: 13px;
}
.wb50f-winner-row:last-child { border-bottom: 0; }
.wb50f-winner-avatar {
  width: 28px; height: 28px; border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, var(--wb50f-soft-amber), var(--wb50f-crimson));
}
.wb50f-winner-amount { color: var(--wb50f-amber); font-weight: 800; }

/* ---------- Steps (How to Play) ---------- */
.wb50f-steps {
  list-style: none;
  counter-reset: wb50f-step;
  margin: 0; padding: 0;
}
.wb50f-steps li {
  counter-increment: wb50f-step;
  position: relative;
  padding: 8px 8px 8px 44px;
  margin-bottom: 8px;
  background: var(--wb50f-surface);
  border-radius: 8px;
  font-size: 13.5px;
  color: var(--wb50f-text-soft);
}
.wb50f-steps li::before {
  content: counter(wb50f-step);
  position: absolute;
  left: 8px; top: 8px;
  width: 28px; height: 28px;
  background: var(--wb50f-crimson);
  color: var(--wb50f-silk);
  border-radius: 50%;
  display: grid; place-items: center;
  font-weight: 800;
  font-size: 13px;
}

/* ---------- SEO prose ---------- */
.wb50f-prose {
  background: var(--wb50f-surface);
  border-radius: var(--wb50f-radius-sm);
  padding: 14px;
  border: 1px solid var(--wb50f-line);
}
.wb50f-prose h2 {
  color: var(--wb50f-amber);
  font-size: 16.5px;
  margin: 14px 0 8px;
}
.wb50f-prose h2:first-child { margin-top: 0; }
.wb50f-prose h3 {
  color: var(--wb50f-silk);
  font-size: 14.5px;
  margin: 10px 0 6px;
}
.wb50f-prose p {
  margin: 0 0 10px;
  color: var(--wb50f-text-soft);
  font-size: 13.5px;
}

/* ---------- Extended footer ---------- */
.wb50f-ext-footer {
  margin-top: 24px;
  background: linear-gradient(180deg, #2C2C2C, #1c1a17);
  border-top: 2px solid var(--wb50f-crimson);
  border-radius: var(--wb50f-radius) var(--wb50f-radius) 0 0;
  padding: 18px 14px 8px;
}
.wb50f-ext-footer h2, .wb50f-ext-footer h3 {
  color: var(--wb50f-amber);
  margin: 0 0 8px;
}
.wb50f-ext-footer h3 { font-size: 14px; }
.wb50f-brand-block { font-size: 13px; color: var(--wb50f-text-soft); margin-bottom: 14px; }
.wb50f-ext-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px 10px;
  margin: 8px 0 12px;
}
.wb50f-ext-grid a {
  display: block;
  background: var(--wb50f-surface);
  border: 1px solid transparent;
  padding: 8px 10px;
  border-radius: 8px;
  color: var(--wb50f-silk);
  font-size: 12.5px;
  min-height: 36px;
}
.wb50f-ext-grid a:hover {
  border-color: var(--wb50f-line);
  background: var(--wb50f-surface-2);
  color: var(--wb50f-soft-amber);
}
.wb50f-promo-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 8px 0 12px;
}
.wb50f-promo-row button {
  background: linear-gradient(135deg, var(--wb50f-crimson), #8a2606);
  color: var(--wb50f-silk);
  border: none;
  border-radius: 10px;
  padding: 10px 4px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  min-height: 44px;
}
.wb50f-promo-row button:nth-child(2) {
  background: linear-gradient(135deg, var(--wb50f-amber), #d99f00);
  color: #2C2C2C;
}
.wb50f-promo-row button:nth-child(3) {
  background: linear-gradient(135deg, #495057, #2c3138);
  color: var(--wb50f-silk);
}
.wb50f-promo-row button:nth-child(4) {
  background: linear-gradient(135deg, #FFF176, #FFCC02);
  color: #2C2C2C;
}
.wb50f-promo-row button:nth-child(5) {
  background: linear-gradient(135deg, #BF360C, #FFCC02);
  color: #fff;
}
.wb50f-promo-row button:nth-child(6) {
  background: linear-gradient(135deg, #322f2a, #495057);
  color: var(--wb50f-silk);
  border: 1px solid var(--wb50f-line);
}

.wb50f-disclaimer {
  font-size: 11.5px;
  color: var(--wb50f-text-muted);
  padding: 10px;
  border: 1px dashed rgba(255, 241, 118, 0.18);
  border-radius: 8px;
  margin-top: 8px;
}

/* ---------- Generic bottom copyright (used on every page) ---------- */
.wb50f-copyright {
  text-align: center;
  font-size: 11.5px;
  color: var(--wb50f-text-muted);
  padding: 8px 14px calc(10px + var(--wb50f-safe-bottom));
}

/* ---------- Bottom navigation (center-raised) ---------- */
.wb50f-bottomnav {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 95;
  max-width: 430px;
  margin: 0 auto;
  height: calc(var(--wb50f-bottomnav-h) + var(--wb50f-safe-bottom));
  padding-bottom: var(--wb50f-safe-bottom);
  background: linear-gradient(180deg, #2C2C2C, #16140f);
  border-top: 2px solid var(--wb50f-crimson);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: center;
}
.wb50f-bottomnav a {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  height: 100%;
  color: var(--wb50f-text-muted);
  font-size: 10.5px;
  padding-top: 4px;
  transition: color .25s ease;
}
.wb50f-bottomnav a:hover { color: var(--wb50f-soft-amber); }
.wb50f-bottomnav a.wb50f-active { color: var(--wb50f-amber); }
.wb50f-bottomnav a.wb50f-active::after {
  content: "";
  position: absolute;
  top: 2px;
  width: 26px; height: 3px;
  border-radius: 3px;
  background: var(--wb50f-amber);
}

/* Center raised item */
.wb50f-bottomnav a.wb50f-raised {
  transform: translateY(-14px);
  background: radial-gradient(circle at 50% 35%, var(--wb50f-crimson) 0%, #2C2C2C 78%);
  border: 2px solid var(--wb50f-amber);
  border-radius: 50%;
  width: 56px; height: 56px;
  margin: 0 auto;
  box-shadow: 0 6px 18px rgba(191, 54, 12, 0.55);
  color: var(--wb50f-silk);
}
.wb50f-bottomnav a.wb50f-raised .wb50f-ic { width: 24px; height: 24px; }
.wb50f-bottomnav a.wb50f-raised span { display: none; }

.wb50f-bottomnav a.wb50f-active.wb50f-raised::after { display: none; }

/* Icons: dual-tone SVG (currentColor + amber accent) */
.wb50f-ic { width: 22px; height: 22px; display: block; }
.wb50f-ic-amber { fill: var(--wb50f-amber); }

/* Utility */
.wb50f-hidden { display: none !important; }
.wb50f-noscroll { overflow: hidden; }

/* Visually-hidden helper for ARIA-only labels */
.wb50f-sr {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap; border: 0;
}
