/* h-baji.click layout - prefix: we867 */
/* Palette: #FFEBCD | #1A1A1A | #D2B48C | #DEB887 | #FFD700 */

:root {
  --we867-bg: #1A1A1A;
  --we867-bg2: #241c10;
  --we867-card: #2a2118;
  --we867-cream: #FFEBCD;
  --we867-tan: #D2B48C;
  --we867-bronze: #DEB887;
  --we867-gold: #FFD700;
  --we867-text: #FFEBCD;
  --we867-muted: #c9b79a;
  --we867-line: rgba(210, 180, 140, 0.18);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: radial-gradient(1200px 600px at 50% -10%, #3a2c18 0%, var(--we867-bg) 60%);
  color: var(--we867-text);
  font-family: "Hind Siliguri", "Noto Sans Bengali", "Segoe UI", system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--we867-gold); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ============ Header ============ */
.we867-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: linear-gradient(180deg, rgba(26,26,26,0.98), rgba(26,26,26,0.92));
  border-bottom: 1px solid var(--we867-line);
  backdrop-filter: blur(8px);
  max-width: 430px;
  margin: 0 auto;
}
.we867-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 14px;
}
.we867-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 18px;
  color: var(--we867-gold);
  letter-spacing: 0.3px;
}
.we867-logo .we867-logo-badge {
  width: 30px; height: 30px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--we867-gold), var(--we867-bronze));
  color: #1A1A1A;
  display: grid; place-items: center;
  font-weight: 900; font-size: 16px;
}
.we867-header-actions {
  display: flex; align-items: center; gap: 8px;
}
.we867-btn {
  border: 0;
  border-radius: 999px;
  padding: 9px 16px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}
.we867-btn:active { transform: scale(0.96); }
.we867-btn-login {
  background: transparent;
  color: var(--we867-cream);
  border: 1px solid var(--we867-tan);
}
.we867-btn-login:hover { background: rgba(210,180,140,0.12); }
.we867-btn-register {
  background: linear-gradient(135deg, var(--we867-gold), var(--we867-bronze));
  color: #1A1A1A;
  box-shadow: 0 4px 14px rgba(255,215,0,0.30);
}
.we867-btn-register:hover { filter: brightness(1.07); }

.we867-menu-btn {
  background: transparent;
  border: 1px solid var(--we867-line);
  color: var(--we867-cream);
  width: 38px; height: 38px;
  border-radius: 10px;
  display: grid; place-items: center;
  cursor: pointer;
}

/* ============ Mobile Menu ============ */
.we867-mobile-menu {
  position: fixed;
  inset: 0;
  background: rgba(10,8,5,0.96);
  z-index: 9999;
  padding: 70px 20px 30px;
  transform: translateX(100%);
  transition: transform 0.28s ease;
  overflow-y: auto;
}
.we867-menu-open { transform: translateX(0); }
.we867-mobile-menu h3 {
  color: var(--we867-gold);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin: 18px 0 8px;
}
.we867-mobile-menu a {
  display: block;
  padding: 12px 12px;
  border-bottom: 1px solid var(--we867-line);
  color: var(--we867-cream);
  font-size: 15px;
}
.we867-mobile-menu a:hover { color: var(--we867-gold); text-decoration: none; }
.we867-menu-close {
  position: absolute;
  top: 18px; right: 18px;
  background: transparent;
  border: 1px solid var(--we867-line);
  color: var(--we867-cream);
  width: 40px; height: 40px;
  border-radius: 10px;
  cursor: pointer;
}

/* ============ Layout container ============ */
.we867-wrap {
  max-width: 430px;
  margin: 0 auto;
  padding: 0 14px;
}

/* ============ Hero ============ */
.we867-hero {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  margin: 14px 0;
  background: linear-gradient(135deg, #3a2c14, #1a1a1a);
  border: 1px solid var(--we867-line);
}
.we867-slide {
  display: none;
  padding: 22px 18px;
}
.we867-slide-active { display: block; }
.we867-slide h2 {
  margin: 0 0 6px;
  font-size: 22px;
  color: var(--we867-gold);
  line-height: 1.3;
}
.we867-slide p {
  margin: 0 0 14px;
  color: var(--we867-muted);
  font-size: 13.5px;
}
.we867-slide .we867-btn { font-size: 14px; padding: 11px 22px; }
.we867-dots {
  display: flex; gap: 6px;
  justify-content: center;
  padding: 0 0 14px;
}
.we867-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(210,180,140,0.4);
  cursor: pointer;
}
.we867-dot-active { background: var(--we867-gold); width: 20px; border-radius: 5px; }

/* ============ Section ============ */
.we867-section { margin: 22px 0; }
.we867-section-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 12px;
}
.we867-section-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--we867-gold);
  display: flex; align-items: center; gap: 8px;
}
.we867-section-more {
  font-size: 12.5px;
  color: var(--we867-bronze);
}

/* ============ Category Tabs ============ */
.we867-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 0 10px;
  scrollbar-width: none;
}
.we867-tabs::-webkit-scrollbar { display: none; }
.we867-tab {
  flex: 0 0 auto;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--we867-card);
  border: 1px solid var(--we867-line);
  color: var(--we867-muted);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}
.we867-tab-active {
  background: linear-gradient(135deg, var(--we867-gold), var(--we867-bronze));
  color: #1A1A1A;
  border-color: transparent;
}

/* ============ Game Grid ============ */
.we867-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.we867-card {
  background: var(--we867-card);
  border: 1px solid var(--we867-line);
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.we867-card:active { transform: scale(0.97); }
.we867-card:hover { box-shadow: 0 6px 18px rgba(0,0,0,0.4); border-color: var(--we867-tan); }
.we867-card-img {
  aspect-ratio: 1 / 1;
  width: 100%;
  object-fit: cover;
  background: #120f0a;
}
.we867-card-body {
  padding: 6px 8px 9px;
}
.we867-card-name {
  font-size: 12px;
  font-weight: 600;
  color: var(--we867-cream);
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.we867-card-play {
  position: absolute;
  top: 6px; right: 6px;
  background: rgba(26,26,26,0.75);
  color: var(--we867-gold);
  border-radius: 50%;
  width: 28px; height: 28px;
  display: grid; place-items: center;
  font-size: 13px;
}
.we867-card-tag {
  position: absolute;
  top: 6px; left: 6px;
  background: linear-gradient(135deg, var(--we867-gold), var(--we867-bronze));
  color: #1A1A1A;
  font-size: 9.5px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 5px;
  text-transform: uppercase;
}

/* ============ Pane ============ */
.we867-pane { display: none; }
.we867-pane-active { display: block; }

/* ============ Promo Banner ============ */
.we867-promo {
  background: linear-gradient(135deg, #4a3618, #1a1a1a 70%);
  border: 1px solid var(--we867-tan);
  border-radius: 16px;
  padding: 18px 16px;
  margin: 18px 0;
  position: relative;
  overflow: hidden;
}
.we867-promo h3 {
  margin: 0 0 6px;
  color: var(--we867-gold);
  font-size: 18px;
}
.we867-promo p {
  margin: 0 0 12px;
  color: var(--we867-muted);
  font-size: 13px;
}
.we867-promo .we867-btn { font-size: 14px; padding: 11px 22px; }

/* ============ SEO content ============ */
.we867-seo {
  background: rgba(255,235,205,0.04);
  border: 1px solid var(--we867-line);
  border-radius: 14px;
  padding: 16px;
  margin: 18px 0;
}
.we867-seo h3 {
  color: var(--we867-gold);
  font-size: 15px;
  margin: 14px 0 6px;
}
.we867-seo h3:first-child { margin-top: 0; }
.we867-seo p {
  font-size: 13.5px;
  color: var(--we867-muted);
  margin: 0 0 10px;
}
.we867-seo a { color: var(--we867-bronze); }

/* ============ FAQ ============ */
.we867-faq { margin: 18px 0; }
.we867-faq details {
  background: var(--we867-card);
  border: 1px solid var(--we867-line);
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 8px;
}
.we867-faq summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--we867-cream);
  font-size: 14px;
  list-style: none;
}
.we867-faq summary::-webkit-details-marker { display: none; }
.we867-faq summary::before {
  content: "+";
  color: var(--we867-gold);
  margin-right: 8px;
  font-weight: 800;
}
.we867-faq details[open] summary::before { content: "–"; }
.we867-faq p {
  margin: 8px 0 0;
  color: var(--we867-muted);
  font-size: 13px;
}

/* ============ Footer ============ */
.we867-footer {
  background: #100d08;
  border-top: 1px solid var(--we867-line);
  margin-top: 26px;
  padding: 22px 14px 30px;
  max-width: 430px;
  margin-left: auto;
  margin-right: auto;
}
.we867-footer-cols {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.we867-footer h4 {
  color: var(--we867-gold);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 0 0 8px;
}
.we867-footer a {
  display: block;
  color: var(--we867-muted);
  font-size: 13px;
  padding: 4px 0;
}
.we867-footer a:hover { color: var(--we867-gold); }
.we867-footer-bottom {
  text-align: center;
  color: var(--we867-muted);
  font-size: 12px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--we867-line);
  line-height: 1.7;
}

/* ============ Bottom Nav ============ */
.we867-bottom-nav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: 62px;
  background: linear-gradient(180deg, rgba(26,26,26,0.98), #0d0a06);
  border-top: 1px solid var(--we867-tan);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
  padding-bottom: env(safe-area-inset-bottom, 0);
}
.we867-nav-btn {
  background: transparent;
  border: 0;
  color: var(--we867-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-width: 60px;
  min-height: 60px;
  cursor: pointer;
  font-family: inherit;
  font-size: 11px;
  font-weight: 600;
  position: relative;
  transition: color 0.15s ease, transform 0.15s ease;
}
.we867-nav-btn .we867-nav-ico { font-size: 22px; line-height: 1; }
.we867-nav-btn:hover { color: var(--we867-bronze); }
.we867-nav-btn:active { transform: translateY(-2px); }
.we867-nav-btn.is-active { color: var(--we867-gold); }
.we867-nav-btn.is-active::before {
  content: "";
  position: absolute;
  top: 0;
  width: 26px; height: 3px;
  border-radius: 0 0 3px 3px;
  background: var(--we867-gold);
}
.we867-nav-btn.we867-nav-cta {
  background: linear-gradient(135deg, var(--we867-gold), var(--we867-bronze));
  color: #1A1A1A;
  width: 50px; height: 50px;
  border-radius: 50%;
  margin-top: -22px;
  box-shadow: 0 6px 16px rgba(255,215,0,0.35);
  border: 3px solid #1A1A1A;
}
.we867-nav-btn.we867-nav-cta .we867-nav-ico { font-size: 22px; }

/* Bottom padding so content isn't covered */
main { padding-bottom: 80px; }

/* ============ Back to top ============ */
.we867-top {
  position: fixed;
  right: 14px; bottom: 74px;
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--we867-card);
  border: 1px solid var(--we867-tan);
  color: var(--we867-gold);
  display: grid; place-items: center;
  cursor: pointer;
  z-index: 900;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.we867-top-show { opacity: 1; pointer-events: auto; transform: translateY(0); }

/* ============ Reveal animation ============ */
.we867-reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.5s ease, transform 0.5s ease; }
.we867-reveal-in { opacity: 1; transform: translateY(0); }

/* ============ Desktop ============ */
@media (min-width: 769px) {
  .we867-bottom-nav { display: none; }
  main { padding-bottom: 30px; }
  .we867-wrap, .we867-header, .we867-footer { max-width: 430px; }
}

@media (max-width: 768px) {
  .we867-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 360px) {
  .we867-grid { grid-template-columns: repeat(2, 1fr); }
  .we867-slide h2 { font-size: 19px; }
}
