/* 54bd.homes - core stylesheet
   All custom classes use the w0b67- prefix.
   Color palette: #BAE1FF | #2E4057 | #FFEFD5 | #CCCCCC | #D2B48C | #FFE4B5
   Dark tones -> backgrounds, light tones -> text. Mobile-first, max-width 430px.
   Root font 62.5% -> 1rem = 10px. */

:root {
  --w0b67-primary: #2E4057;
  --w0b67-secondary: #D2B48C;
  --w0b67-accent: #BAE1FF;
  --w0b67-bg: #2E4057;
  --w0b67-bg-alt: #243648;
  --w0b67-bg-card: #3a5168;
  --w0b67-text: #FFEFD5;
  --w0b67-text-muted: #CCCCCC;
  --w0b67-cream: #FFE4B5;
  --w0b67-border: rgba(210, 180, 140, 0.35);
  --w0b67-gold: #D2B48C;
  --w0b67-blue: #BAE1FF;
  --w0b67-radius: 1.2rem;
  --w0b67-shadow: 0 0.4rem 1.2rem rgba(0, 0, 0, 0.35);
  --w0b67-header-h: 5.6rem;
  --w0b67-bottomnav-h: 6.2rem;
}

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

html { font-size: 62.5%; -webkit-text-size-adjust: 100%; }

body {
  font-family: "Segoe UI", "Noto Sans Bengali", "SolaimanLipi", system-ui, sans-serif;
  background: var(--w0b67-bg);
  color: var(--w0b67-text);
  line-height: 1.5rem;
  font-size: 1.4rem;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: var(--w0b67-blue); text-decoration: none; }
a:hover { color: var(--w0b67-cream); }

.w0b67-container { width: 100%; max-width: 430px; margin: 0 auto; padding: 0 1.2rem; }
.w0b67-wrapper { width: 100%; max-width: 430px; margin: 0 auto; }

/* ===== Header ===== */
.w0b67-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: linear-gradient(90deg, var(--w0b67-primary), var(--w0b67-bg-alt));
  border-bottom: 0.2rem solid var(--w0b67-gold);
  box-shadow: var(--w0b67-shadow);
}
.w0b67-header-inner {
  max-width: 430px; margin: 0 auto; height: var(--w0b67-header-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 1.2rem; gap: 0.8rem;
}
.w0b67-logo { display: flex; align-items: center; gap: 0.6rem; color: var(--w0b67-cream); font-weight: 700; font-size: 1.6rem; }
.w0b67-logo img { width: 2.8rem; height: 2.8rem; border-radius: 0.6rem; }
.w0b67-logo span { color: var(--w0b67-gold); }

.w0b67-header-actions { display: flex; align-items: center; gap: 0.6rem; }
.w0b67-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
  min-height: 3.4rem; padding: 0 1.2rem; border: none; border-radius: 2rem;
  font-size: 1.3rem; font-weight: 700; cursor: pointer; transition: transform 0.15s, box-shadow 0.15s;
  font-family: inherit;
}
.w0b67-btn:hover { transform: translateY(-0.1rem); }
.w0b67-btn-register { background: linear-gradient(90deg, #D2B48C, #FFE4B5); color: #2E4057; box-shadow: 0 0.3rem 0.8rem rgba(210,180,140,0.4); }
.w0b67-btn-login { background: transparent; color: var(--w0b67-blue); border: 0.15rem solid var(--w0b67-blue); }
.w0b67-btn-login:hover { background: var(--w0b67-blue); color: #2E4057; }
.w0b67-menu-btn {
  background: transparent; border: none; color: var(--w0b67-cream); font-size: 2.2rem; cursor: pointer;
  min-width: 4.4rem; min-height: 4.4rem; display: inline-flex; align-items: center; justify-content: center;
}

/* ===== Mobile menu (expandable) ===== */
.w0b67-mobile-menu {
  position: fixed; top: var(--w0b67-header-h); left: 0; right: 0; z-index: 9999;
  background: var(--w0b67-bg-alt); border-bottom: 0.2rem solid var(--w0b67-gold);
  max-height: 0; overflow: hidden; transition: max-height 0.3s ease;
}
.w0b67-mobile-menu.w0b67-menu-open { max-height: 60rem; }
.w0b67-mobile-menu.w0b67-menu-closed { max-height: 0; }
.w0b67-mobile-menu-inner { max-width: 430px; margin: 0 auto; padding: 1rem 1.2rem 1.4rem; display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; }
.w0b67-mobile-menu a {
  display: flex; align-items: center; gap: 0.6rem; padding: 0.9rem 1rem; border-radius: 0.8rem;
  background: var(--w0b67-bg-card); color: var(--w0b67-text); font-size: 1.3rem; min-height: 4rem;
}
.w0b67-mobile-menu a i, .w0b67-mobile-menu a span.material-icons-outlined { font-size: 1.8rem; color: var(--w0b67-gold); }

/* ===== Main / sections ===== */
main { padding-top: calc(var(--w0b67-header-h) + 1rem); padding-bottom: 1rem; }
.w0b67-section { margin: 1.6rem 0; }
.w0b67-section-title {
  font-size: 1.8rem; color: var(--w0b67-cream); margin: 1.2rem 0 0.8rem; padding-left: 0.4rem;
  border-left: 0.4rem solid var(--w0b67-gold); display: flex; align-items: center; gap: 0.5rem;
}
.w0b67-section-title i, .w0b67-section-title .material-icons-outlined { color: var(--w0b67-blue); font-size: 2rem; }
.w0b67-section-intro { color: var(--w0b67-text-muted); font-size: 1.3rem; margin-bottom: 1rem; padding: 0 0.4rem; }

h1, h2, h3 { color: var(--w0b67-cream); line-height: 1.8rem; }
h1 { font-size: 2rem; margin: 0.8rem 0; }
h2 { font-size: 1.7rem; margin: 0.6rem 0; }
h3 { font-size: 1.5rem; margin: 0.4rem 0; }
p { margin: 0.6rem 0; color: var(--w0b67-text); }

/* ===== Hero carousel ===== */
.w0b67-hero { position: relative; border-radius: var(--w0b67-radius); overflow: hidden; margin: 1rem 0; box-shadow: var(--w0b67-shadow); }
.w0b67-slides { position: relative; height: 18rem; }
.w0b67-slide {
  position: absolute; inset: 0; opacity: 0; transition: opacity 0.6s ease; cursor: pointer;
}
.w0b67-slide.w0b67-slide-active { opacity: 1; }
.w0b67-slide img { width: 100%; height: 100%; object-fit: cover; }
.w0b67-slide-overlay {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 1rem 1.2rem;
  background: linear-gradient(transparent, rgba(46,64,87,0.92));
  color: var(--w0b67-cream); font-size: 1.3rem; font-weight: 600;
}
.w0b67-dots { position: absolute; bottom: 0.8rem; right: 1.2rem; display: flex; gap: 0.4rem; z-index: 5; }
.w0b67-dot { width: 0.8rem; height: 0.8rem; border-radius: 50%; background: rgba(255,239,213,0.5); border: none; cursor: pointer; }
.w0b67-dot.w0b67-dot-active { background: var(--w0b67-gold); }

/* ===== Filter tabs ===== */
.w0b67-filter-tabs { display: flex; gap: 0.6rem; overflow-x: auto; padding: 0.4rem 0.2rem 0.8rem; -webkit-overflow-scrolling: touch; }
.w0b67-filter-tab {
  flex: 0 0 auto; padding: 0.6rem 1.2rem; border-radius: 2rem; background: var(--w0b67-bg-card);
  color: var(--w0b67-text-muted); font-size: 1.2rem; font-weight: 600; border: 0.15rem solid transparent; cursor: pointer;
}
.w0b67-filter-tab.w0b67-filter-tab-active { background: var(--w0b67-gold); color: #2E4057; border-color: var(--w0b67-cream); }

/* ===== Game grid ===== */
.w0b67-game-group { margin: 1.4rem 0; }
.w0b67-game-group-title { font-size: 1.5rem; color: var(--w0b67-blue); margin: 0.8rem 0 0.6rem; display: flex; align-items: center; gap: 0.5rem; }
.w0b67-game-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.8rem; }
.w0b67-game-card { background: var(--w0b67-bg-card); border-radius: 0.9rem; padding: 0.6rem; text-align: center; cursor: pointer; transition: transform 0.15s, box-shadow 0.15s; border: 0.1rem solid var(--w0b67-border); }
.w0b67-game-card:hover { transform: translateY(-0.2rem); box-shadow: 0 0.4rem 1rem rgba(186,225,255,0.25); }
.w0b67-game-card img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 0.6rem; margin-bottom: 0.4rem; }
.w0b67-game-name { font-size: 1.1rem; color: var(--w0b67-cream); line-height: 1.3rem; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; min-height: 2.6rem; }

/* ===== Info / promo cards ===== */
.w0b67-card { background: var(--w0b67-bg-card); border-radius: var(--w0b67-radius); padding: 1.2rem; margin: 0.8rem 0; box-shadow: var(--w0b67-shadow); border: 0.1rem solid var(--w0b67-border); }
.w0b67-card h2, .w0b67-card h3 { color: var(--w0b67-gold); }
.w0b67-card p { color: var(--w0b67-text); font-size: 1.3rem; }
.w0b67-card-link { color: var(--w0b67-blue); font-weight: 700; }
.w0b67-card-link:hover { text-decoration: underline; }

.w0b67-promo-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; margin: 0.8rem 0; }
.w0b67-promo-box { background: linear-gradient(135deg, var(--w0b67-bg-card), var(--w0b67-primary)); border-radius: 1rem; padding: 1rem; text-align: center; border: 0.15rem solid var(--w0b67-gold); cursor: pointer; }
.w0b67-promo-box .w0b67-promo-icon { font-size: 2.4rem; color: var(--w0b67-gold); }
.w0b67-promo-box .w0b67-promo-title { color: var(--w0b67-cream); font-weight: 700; font-size: 1.3rem; margin: 0.4rem 0; }
.w0b67-promo-box .w0b67-promo-sub { color: var(--w0b67-text-muted); font-size: 1.1rem; }

/* ===== RTP table ===== */
.w0b67-rtp-table { width: 100%; border-collapse: collapse; margin: 0.6rem 0; font-size: 1.2rem; }
.w0b67-rtp-table th, .w0b67-rtp-table td { padding: 0.7rem 0.6rem; text-align: left; border-bottom: 0.1rem solid var(--w0b67-border); }
.w0b67-rtp-table th { color: var(--w0b67-gold); font-weight: 700; }
.w0b67-rtp-table td { color: var(--w0b67-text); }
.w0b67-rtp-table tr:hover td { background: rgba(186,225,255,0.08); }

/* ===== Testimonials ===== */
.w0b67-testimonial { background: var(--w0b67-bg-card); border-radius: 1rem; padding: 1rem; margin: 0.6rem 0; border-left: 0.4rem solid var(--w0b67-blue); }
.w0b67-testimonial p { font-size: 1.25rem; color: var(--w0b67-text); font-style: italic; }
.w0b67-testimonial .w0b67-testimonial-author { color: var(--w0b67-gold); font-size: 1.15rem; margin-top: 0.4rem; font-weight: 700; }

/* ===== Winners ===== */
.w0b67-winner-list { list-style: none; display: grid; gap: 0.5rem; }
.w0b67-winner-item { display: flex; justify-content: space-between; background: var(--w0b67-bg-card); padding: 0.6rem 0.9rem; border-radius: 0.6rem; font-size: 1.2rem; }
.w0b67-winner-item .w0b67-winner-name { color: var(--w0b67-cream); }
.w0b67-winner-item .w0b67-winner-amount { color: var(--w0b67-gold); font-weight: 700; }

/* ===== Payment chips ===== */
.w0b67-pay-chips { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.w0b67-pay-chip { background: var(--w0b67-bg-card); border-radius: 2rem; padding: 0.5rem 1rem; font-size: 1.15rem; color: var(--w0b67-text); border: 0.1rem solid var(--w0b67-border); display: inline-flex; align-items: center; gap: 0.4rem; }

/* ===== App download CTA ===== */
.w0b67-app-cta { background: linear-gradient(135deg, #243648, #3a5168); border-radius: var(--w0b67-radius); padding: 1.4rem; text-align: center; border: 0.2rem solid var(--w0b67-gold); margin: 1rem 0; }
.w0b67-app-cta h3 { color: var(--w0b67-cream); }
.w0b67-app-cta .w0b67-app-btns { display: flex; flex-direction: column; gap: 0.6rem; margin-top: 0.8rem; }
.w0b67-app-btn { background: var(--w0b67-gold); color: #2E4057; padding: 1rem; border-radius: 0.8rem; font-weight: 700; font-size: 1.3rem; border: none; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; }

/* ===== FAQ ===== */
.w0b67-faq-item { background: var(--w0b67-bg-card); border-radius: 0.8rem; margin: 0.5rem 0; padding: 0.8rem 1rem; border-left: 0.3rem solid var(--w0b67-blue); }
.w0b67-faq-item h3 { color: var(--w0b67-gold); font-size: 1.3rem; margin-bottom: 0.3rem; }
.w0b67-faq-item p { color: var(--w0b67-text); font-size: 1.25rem; }

/* ===== Footer ===== */
.w0b67-footer { background: var(--w0b67-bg-alt); border-top: 0.2rem solid var(--w0b67-gold); margin-top: 2rem; padding: 1.4rem 1.2rem; }
.w0b67-footer-inner { max-width: 430px; margin: 0 auto; }
.w0b67-footer-brand { color: var(--w0b67-cream); font-size: 1.3rem; margin-bottom: 0.8rem; }
.w0b67-footer-links { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; margin: 0.8rem 0; }
.w0b67-footer-links a { color: var(--w0b67-text-muted); font-size: 1.2rem; padding: 0.3rem 0; display: inline-flex; align-items: center; gap: 0.4rem; }
.w0b67-footer-links a:hover { color: var(--w0b67-blue); }
.w0b67-footer-promo { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0.8rem 0; }
.w0b67-footer-promo .w0b67-btn { flex: 1 1 auto; min-height: 3rem; padding: 0 0.8rem; font-size: 1.15rem; }
.w0b67-footer-copy { color: var(--w0b67-text-muted); font-size: 1.1rem; text-align: center; margin-top: 0.8rem; border-top: 0.1rem solid var(--w0b67-border); padding-top: 0.8rem; }

/* ===== Mobile bottom nav ===== */
.w0b67-bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 1000; height: var(--w0b67-bottomnav-h);
  background: linear-gradient(90deg, var(--w0b67-primary), var(--w0b67-bg-alt));
  border-top: 0.2rem solid var(--w0b67-gold);
  display: flex; justify-content: space-around; align-items: stretch;
  box-shadow: 0 -0.4rem 1rem rgba(0,0,0,0.35);
}
.w0b67-bottom-nav-btn {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.2rem;
  background: transparent; border: none; color: var(--w0b67-text-muted); cursor: pointer;
  font-size: 1.1rem; font-family: inherit; min-width: 6rem; min-height: 6rem; padding: 0.3rem;
  transition: color 0.15s, transform 0.15s;
}
.w0b67-bottom-nav-btn .w0b67-bn-icon { font-size: 2.4rem; line-height: 1; }
.w0b67-bottom-nav-btn .w0b67-bn-label { font-size: 1.05rem; line-height: 1.2rem; }
.w0b67-bottom-nav-btn:hover { color: var(--w0b67-cream); transform: translateY(-0.1rem); }
.w0b67-bottom-nav-btn.w0b67-bn-active { color: var(--w0b67-gold); }
.w0b67-bottom-nav-btn.w0b67-bn-active .w0b67-bn-icon { color: var(--w0b67-gold); }

/* Back to top */
.w0b67-totop {
  position: fixed; right: 1.2rem; bottom: calc(var(--w0b67-bottomnav-h) + 0.8rem); z-index: 900;
  width: 4rem; height: 4rem; border-radius: 50%; background: var(--w0b67-gold); color: #2E4057;
  border: none; cursor: pointer; font-size: 2rem; display: none; align-items: center; justify-content: center;
  box-shadow: var(--w0b67-shadow);
}
.w0b67-totop.w0b67-totop-show { display: flex; }

.w0b67-hidden { display: none !important; }

/* Mobile bottom padding so content is not hidden behind nav */
@media (max-width: 768px) {
  main { padding-bottom: calc(var(--w0b67-bottomnav-h) + 1.2rem); }
  .w0b67-footer { padding-bottom: calc(var(--w0b67-bottomnav-h) + 1rem); }
}

/* ===== Desktop: hide bottom nav, widen container ===== */
@media (min-width: 769px) {
  .w0b67-bottom-nav { display: none; }
  .w0b67-container, .w0b67-wrapper, .w0b67-header-inner, .w0b67-mobile-menu-inner, .w0b67-footer-inner { max-width: 720px; }
  .w0b67-game-grid { grid-template-columns: repeat(6, 1fr); }
  .w0b67-promo-row { grid-template-columns: repeat(4, 1fr); }
  .w0b67-slides { height: 26rem; }
}
