/* ============================================================
   6444.homes - Core Palette Stylesheet
   Prefix: wbf37-
   Palette: #9AFF9A (signature green) on #1A1A2E (deep night)
   Canvas: 320-430px mobile-first; centered on wider screens
   ============================================================ */

:root {
  --wbf37-bg: #1A1A2E;
  --wbf37-bg-2: #14142a;
  --wbf37-bg-3: #20203a;
  --wbf37-surface: #232342;
  --wbf37-surface-2: #2c2c52;
  --wbf37-line: #34345e;
  --wbf37-accent: #9AFF9A;
  --wbf37-accent-2: #6ee06e;
  --wbf37-accent-soft: rgba(154, 255, 154, 0.14);
  --wbf37-accent-glow: rgba(154, 255, 154, 0.35);
  --wbf37-ink: #f3f7ef;
  --wbf37-ink-2: #c5ccdf;
  --wbf37-ink-3: #8e95b3;
  --wbf37-gold: #ffd76a;
  --wbf37-danger: #ff7a7a;
  --wbf37-radius: 14px;
  --wbf37-radius-lg: 20px;
  --wbf37-gap: 12px;
  --wbf37-header-h: 56px;
  --wbf37-bottom-h: 64px;
  --wbf37-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  --wbf37-font: "Segoe UI", "Noto Sans Bengali", "Hind Siliguri", "Kalpurush", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: radial-gradient(120% 80% at 50% -10%, #20203f 0%, var(--wbf37-bg) 55%, var(--wbf37-bg-2) 100%);
  color: var(--wbf37-ink);
  font-family: var(--wbf37-font);
  font-size: 15px;
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Lock to a phone canvas on wider screens, do not become a desktop layout. */
#wbf37-stage,
.wbf37-stage {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  position: relative;
  background: linear-gradient(180deg, rgba(154, 255, 154, 0.04) 0%, transparent 30%), var(--wbf37-bg);
  min-height: 100vh;
  padding-bottom: calc(var(--wbf37-bottom-h) + 24px);
}

a { color: var(--wbf37-accent); text-decoration: none; }
a:hover { color: var(--wbf37-accent-2); }
img { display: block; max-width: 100%; }
h1, h2, h3, h4 { margin: 0 0 8px; line-height: 1.35; color: var(--wbf37-ink); font-weight: 700; }
h1 { font-size: 22px; }
h2 { font-size: 18px; }
h3 { font-size: 16px; }
p { margin: 0 0 10px; color: var(--wbf37-ink-2); }

.wbf37-container { width: 100%; padding: 0 12px; }
.wbf37-visually-hidden {
  position: absolute !important; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ===================== Header ===================== */
.wbf37-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--wbf37-header-h);
  background: linear-gradient(180deg, rgba(20,20,42,0.96), rgba(26,26,46,0.92));
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--wbf37-line);
  display: flex;
  align-items: center;
  padding: 0 12px;
  gap: 8px;
}
.wbf37-brand {
  display: flex; align-items: center; gap: 8px;
  flex: 0 0 auto;
}
.wbf37-brand-mark {
  width: 34px; height: 34px; border-radius: 10px;
  background: linear-gradient(135deg, var(--wbf37-accent), var(--wbf37-accent-2));
  color: var(--wbf37-bg);
  font-weight: 800; font-size: 14px;
  display: grid; place-items: center;
  box-shadow: 0 0 14px var(--wbf37-accent-glow);
  letter-spacing: -0.5px;
}
.wbf37-brand-name {
  font-weight: 800; font-size: 17px; color: var(--wbf37-ink);
  letter-spacing: 0.3px;
}
.wbf37-brand-name b { color: var(--wbf37-accent); }
.wbf37-header-spacer { flex: 1 1 auto; }
.wbf37-header-actions { display: flex; align-items: center; gap: 6px; }
.wbf37-btn {
  border: 0; cursor: pointer;
  font-family: inherit; font-weight: 700;
  border-radius: 10px;
  padding: 8px 14px; font-size: 13px;
  min-height: 36px; min-width: 44px;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  transition: transform .12s ease, box-shadow .12s ease, background .2s ease;
}
.wbf37-btn-login {
  background: transparent; color: var(--wbf37-ink);
  border: 1px solid var(--wbf37-line);
}
.wbf37-btn-login:hover { border-color: var(--wbf37-accent); color: var(--wbf37-accent); }
.wbf37-btn-register {
  background: linear-gradient(135deg, var(--wbf37-accent), var(--wbf37-accent-2));
  color: var(--wbf37-bg);
  box-shadow: 0 6px 16px var(--wbf37-accent-glow);
}
.wbf37-btn-register:hover { transform: translateY(-1px); }
.wbf37-btn-ghost {
  background: transparent; color: var(--wbf37-ink);
  width: 38px; height: 38px; padding: 0;
  border-radius: 10px;
  border: 1px solid var(--wbf37-line);
  display: grid; place-items: center;
}
.wbf37-btn-ghost:hover { border-color: var(--wbf37-accent); color: var(--wbf37-accent); }
.wbf37-btn-ghost svg { width: 20px; height: 20px; display: block; }
.wbf37-btn-register.wbf37-btn-lg,
.wbf37-btn-lg {
  padding: 12px 22px; font-size: 15px; min-height: 48px; width: 100%;
}

/* ===================== Slide-down stacked overlay menu ===================== */
.wbf37-menu {
  position: fixed;
  top: var(--wbf37-header-h);
  left: 0; right: 0;
  margin: 0 auto;
  max-width: 430px;
  background: linear-gradient(180deg, rgba(20,20,42,0.98), rgba(26,26,46,0.98));
  border-bottom: 1px solid var(--wbf37-line);
  transform: translateY(-130%);
  transition: transform .28s ease, opacity .28s ease;
  opacity: 0;
  pointer-events: none;
  z-index: 49;
  padding: 10px 12px 18px;
  max-height: calc(100vh - var(--wbf37-header-h));
  overflow-y: auto;
  box-shadow: var(--wbf37-shadow);
}
.wbf37-menu.wbf37-open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.wbf37-menu-title {
  font-size: 12px; color: var(--wbf37-ink-3);
  text-transform: uppercase; letter-spacing: 1.5px;
  margin: 8px 4px 6px;
}
.wbf37-menu-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
}
.wbf37-menu-item {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 12px;
  background: var(--wbf37-surface);
  border: 1px solid var(--wbf37-line);
  border-radius: 12px;
  color: var(--wbf37-ink);
  font-weight: 600; font-size: 14px;
  min-height: 44px;
}
.wbf37-menu-item:hover { border-color: var(--wbf37-accent); color: var(--wbf37-accent); }
.wbf37-menu-item .wbf37-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--wbf37-accent); flex: 0 0 auto;
  box-shadow: 0 0 8px var(--wbf37-accent-glow);
}
.wbf37-menu-promo {
  margin-top: 10px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
}
.wbf37-menu-promo .wbf37-btn { width: 100%; }
.wbf37-menu-backdrop {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 48;
  opacity: 0; pointer-events: none;
  transition: opacity .25s ease;
}
.wbf37-menu-backdrop.wbf37-open { opacity: 1; pointer-events: auto; }

/* ===================== Hero / Carousel ===================== */
.wbf37-hero {
  padding: 14px 12px 4px;
}
.wbf37-carousel {
  position: relative;
  border-radius: var(--wbf37-radius-lg);
  overflow: hidden;
  box-shadow: var(--wbf37-shadow);
  border: 1px solid var(--wbf37-line);
}
.wbf37-track {
  display: flex;
  transition: transform .42s cubic-bezier(.2,.7,.3,1);
}
.wbf37-slide {
  flex: 0 0 100%;
  position: relative;
  cursor: pointer;
}
.wbf37-slide img {
  width: 100%; height: 168px; object-fit: cover; display: block;
}
.wbf37-slide-caption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 22px 14px 12px;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,0.78));
  color: var(--wbf37-ink);
  font-size: 13px;
}
.wbf37-slide-caption b { color: var(--wbf37-accent); display: block; font-size: 16px; margin-bottom: 2px; }
.wbf37-carousel-dots {
  position: absolute; bottom: 8px; left: 0; right: 0;
  display: flex; justify-content: center; gap: 6px;
  z-index: 2;
}
.wbf37-carousel-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: rgba(255,255,255,0.45); border: 0; padding: 0; cursor: pointer;
  transition: all .2s;
}
.wbf37-carousel-dot.wbf37-active {
  background: var(--wbf37-accent);
  width: 20px; border-radius: 6px;
  box-shadow: 0 0 8px var(--wbf37-accent-glow);
}

/* ===================== Quick action rail ===================== */
.wbf37-quick {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px;
  padding: 12px;
}
.wbf37-quick-item {
  background: var(--wbf37-surface);
  border: 1px solid var(--wbf37-line);
  border-radius: 12px;
  padding: 10px 6px;
  text-align: center;
  color: var(--wbf37-ink);
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  min-height: 64px; justify-content: center;
}
.wbf37-quick-item:hover { border-color: var(--wbf37-accent); }
.wbf37-quick-item svg { width: 22px; height: 22px; color: var(--wbf37-accent); }
.wbf37-quick-item span { font-size: 11px; font-weight: 600; }

/* ===================== Section ===================== */
.wbf37-section {
  padding: 8px 12px 14px;
}
.wbf37-section-head {
  display: flex; align-items: center; justify-content: space-between;
  margin: 14px 0 10px;
}
.wbf37-section-title {
  font-size: 17px; font-weight: 800;
  display: flex; align-items: center; gap: 8px;
}
.wbf37-section-title::before {
  content: ""; width: 4px; height: 18px; border-radius: 4px;
  background: linear-gradient(180deg, var(--wbf37-accent), var(--wbf37-accent-2));
  box-shadow: 0 0 8px var(--wbf37-accent-glow);
}
.wbf37-section-link { font-size: 12px; color: var(--wbf37-accent); font-weight: 600; }
.wbf37-cat-label {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; color: var(--wbf37-ink-3);
  margin: 6px 2px 8px;
  text-transform: uppercase; letter-spacing: 1px;
}
.wbf37-cat-label::before { content: "◆"; color: var(--wbf37-accent); font-size: 9px; }

/* ===================== Game grid ===================== */
.wbf37-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.wbf37-card {
  background: var(--wbf37-surface);
  border: 1px solid var(--wbf37-line);
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: transform .14s ease, border-color .2s ease, box-shadow .2s ease;
  display: block; color: var(--wbf37-ink);
  text-align: center;
}
.wbf37-card:hover {
  transform: translateY(-2px);
  border-color: var(--wbf37-accent);
  box-shadow: 0 8px 18px rgba(0,0,0,0.4);
}
.wbf37-card-img {
  width: 100%; aspect-ratio: 1 / 1;
  object-fit: cover;
  background: #0e0e1c;
  display: block;
}
.wbf37-card-name {
  font-size: 11px; font-weight: 600;
  padding: 6px 4px;
  color: var(--wbf37-ink);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  line-height: 1.25;
}
.wbf37-card-tag {
  display: inline-block;
  font-size: 9px; font-weight: 700;
  background: var(--wbf37-accent-soft);
  color: var(--wbf37-accent);
  padding: 2px 6px; border-radius: 6px;
  margin: -2px 0 4px;
}

/* ===================== Info / feature blocks ===================== */
.wbf37-feat-grid {
  display: grid; grid-template-columns: 1fr; gap: 10px;
}
.wbf37-feat {
  background: var(--wbf37-surface);
  border: 1px solid var(--wbf37-line);
  border-left: 3px solid var(--wbf37-accent);
  border-radius: 12px;
  padding: 14px;
}
.wbf37-feat h3 { color: var(--wbf37-accent); margin-bottom: 6px; }
.wbf37-feat p { margin: 0; font-size: 13px; color: var(--wbf37-ink-2); }

.wbf37-callout {
  background: linear-gradient(135deg, rgba(154,255,154,0.10), rgba(154,255,154,0.02));
  border: 1px solid var(--wbf37-accent);
  border-radius: var(--wbf37-radius);
  padding: 14px;
  margin: 14px 0;
}
.wbf37-callout h3 { color: var(--wbf37-accent); }
.wbf37-callout p { font-size: 13px; }

.wbf37-steps {
  counter-reset: step;
  display: grid; gap: 8px;
}
.wbf37-step {
  counter-increment: step;
  background: var(--wbf37-surface);
  border: 1px solid var(--wbf37-line);
  border-radius: 12px;
  padding: 12px 12px 12px 48px;
  position: relative;
  min-height: 44px;
}
.wbf37-step::before {
  content: counter(step);
  position: absolute; left: 12px; top: 12px;
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--wbf37-accent); color: var(--wbf37-bg);
  font-weight: 800; font-size: 13px;
  display: grid; place-items: center;
}
.wbf37-step h4 { margin: 0 0 4px; font-size: 14px; color: var(--wbf37-ink); }
.wbf37-step p { margin: 0; font-size: 12.5px; color: var(--wbf37-ink-2); }

.wbf37-testi {
  display: grid; gap: 8px;
}
.wbf37-quote {
  background: var(--wbf37-surface);
  border: 1px solid var(--wbf37-line);
  border-radius: 12px;
  padding: 12px;
}
.wbf37-quote p { margin: 0 0 6px; font-size: 13px; font-style: italic; }
.wbf37-quote cite { font-size: 12px; color: var(--wbf37-accent); font-style: normal; font-weight: 700; }

.wbf37-pill-row { display: flex; flex-wrap: wrap; gap: 6px; }
.wbf37-pill {
  font-size: 11px; font-weight: 600;
  background: var(--wbf37-surface-2);
  border: 1px solid var(--wbf37-line);
  color: var(--wbf37-ink-2);
  padding: 5px 10px; border-radius: 999px;
}

.wbf37-prose p { font-size: 13.5px; color: var(--wbf37-ink-2); margin-bottom: 10px; }
.wbf37-prose strong { color: var(--wbf37-accent); font-weight: 700; }
.wbf37-prose a { font-weight: 600; border-bottom: 1px dashed var(--wbf37-accent); }
.wbf37-prose ul { margin: 0 0 10px; padding-left: 18px; color: var(--wbf37-ink-2); }
.wbf37-prose li { margin-bottom: 4px; font-size: 13px; }

/* ===================== Extended footer ===================== */
.wbf37-extend {
  margin: 16px 12px;
  background: var(--wbf37-bg-3);
  border: 1px solid var(--wbf37-line);
  border-radius: var(--wbf37-radius-lg);
  overflow: hidden;
}
.wbf37-extend-block {
  padding: 14px;
  border-bottom: 1px solid var(--wbf37-line);
}
.wbf37-extend-block:last-child { border-bottom: 0; }
.wbf37-extend-block h3 {
  font-size: 14px; color: var(--wbf37-accent);
  text-transform: uppercase; letter-spacing: 1px; margin-bottom: 8px;
}
.wbf37-extend-list {
  display: grid; grid-template-columns: 1fr 1fr; gap: 6px 10px;
  list-style: none; padding: 0; margin: 0;
}
.wbf37-extend-list a {
  color: var(--wbf37-ink-2);
  font-size: 12.5px;
  padding: 4px 0;
  display: inline-block;
}
.wbf37-extend-list a:hover { color: var(--wbf37-accent); }
.wbf37-extend-promo {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
}
.wbf37-extend-promo .wbf37-btn { width: 100%; font-size: 12px; }
.wbf37-disclaimer {
  font-size: 11.5px; color: var(--wbf37-ink-3); line-height: 1.7;
}
.wbf37-disclaimer strong { color: var(--wbf37-ink-2); }

/* ===================== Footer ===================== */
.wbf37-footer {
  padding: 14px 12px calc(var(--wbf37-bottom-h) + 18px);
  text-align: center;
  border-top: 1px solid var(--wbf37-line);
  margin-top: 8px;
}
.wbf37-footer-brand {
  font-weight: 800; font-size: 15px; color: var(--wbf37-ink); margin-bottom: 4px;
}
.wbf37-footer-brand b { color: var(--wbf37-accent); }
.wbf37-footer-copy { font-size: 11px; color: var(--wbf37-ink-3); }
.wbf37-footer-links {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 10px;
  margin: 8px 0;
}
.wbf37-footer-links a { color: var(--wbf37-ink-3); font-size: 11.5px; }
.wbf37-footer-links a:hover { color: var(--wbf37-accent); }

/* ===================== Bottom navigation ===================== */
.wbf37-bottom {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  margin: 0 auto;
  max-width: 430px;
  height: var(--wbf37-bottom-h);
  background: linear-gradient(180deg, rgba(20,20,42,0.97), rgba(16,16,32,0.99));
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--wbf37-line);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  z-index: 47;
}
.wbf37-bottom-item {
  background: transparent; border: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 3px;
  color: var(--wbf37-ink-3);
  font-size: 10px; font-weight: 600;
  padding: 6px 2px;
  cursor: pointer;
  position: relative;
  font-family: inherit;
  border-radius: 0;
  transition: color .2s ease;
}
.wbf37-bottom-item:hover { color: var(--wbf37-ink-2); }
.wbf37-bottom-item .wbf37-ic {
  width: 30px; height: 30px;
  display: grid; place-items: center;
  border-radius: 9px;
  border: 1.5px solid transparent;
  transition: transform .18s ease, border-color .2s ease, background .2s ease;
}
.wbf37-bottom-item .wbf37-ic svg { width: 19px; height: 19px; display: block; }
.wbf37-bottom-item:hover .wbf37-ic { transform: translateY(-1px); }
.wbf37-bottom-item.wbf37-active { color: var(--wbf37-accent); }
.wbf37-bottom-item.wbf37-active .wbf37-ic {
  background: var(--wbf37-accent-soft);
  border-color: var(--wbf37-accent);
  box-shadow: 0 0 10px var(--wbf37-accent-glow);
}
.wbf37-bottom-item.wbf37-active .wbf37-ic svg { color: var(--wbf37-accent); }

/* ===================== Floating CTA ===================== */
.wbf37-fab {
  position: fixed;
  right: 12px;
  bottom: calc(var(--wbf37-bottom-h) + 14px);
  z-index: 46;
  max-width: 406px;
}
.wbf37-fab .wbf37-btn {
  width: 100%;
  border-radius: 999px;
  font-size: 14px;
  box-shadow: 0 10px 24px rgba(0,0,0,0.5), 0 0 18px var(--wbf37-accent-glow);
}

/* ===================== Utility ===================== */
.wbf37-divider { height: 1px; background: var(--wbf37-line); margin: 14px 0; border: 0; }
.wbf37-hide { display: none !important; }

@media (max-width: 359px) {
  .wbf37-grid { grid-template-columns: repeat(3, 1fr); }
  .wbf37-extend-list { grid-template-columns: 1fr; }
}
