/* ============================================================
   6kbd.homes - design.css
   All custom classes use the "w9fda-" prefix.
   Palette: #1C2833 (bg) | #DAA520 (accent/gold) | #C0C0C0 (text)
   Mobile-first, max-width 430px. rem units, root font 62.5%.
   ============================================================ */

:root {
  --w9fda-bg: #1C2833;
  --w9fda-bg-alt: #232f3e;
  --w9fda-bg-card: #2a3848;
  --w9fda-primary: #DAA520;
  --w9fda-text: #C0C0C0;
  --w9fda-text-light: #f2f2f2;
  --w9fda-border: #3a4a5e;
  --w9fda-danger: #e74c3c;
  --w9fda-success: #27ae60;
  --w9fda-radius: 8px;
  --w9fda-shadow: 0 2px 8px rgba(0,0,0,0.35);
}

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

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

body {
  font-family: "Hind Siliguri", "Noto Sans Bengali", system-ui, "Segoe UI", Arial, sans-serif;
  background: var(--w9fda-bg);
  color: var(--w9fda-text);
  line-height: 1.5rem;
  font-size: 1.4rem;
  overflow-x: hidden;
  max-width: 430px;
  margin: 0 auto;
  position: relative;
  min-height: 100vh;
}

a { color: var(--w9fda-primary); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }

/* ---------- Layout helpers ---------- */
.w9fda-wrapper { width: 100%; padding: 0 1.2rem; }
.w9fda-container { width: 100%; max-width: 430px; margin: 0 auto; }
.w9fda-section { padding: 2rem 1.2rem; }
.w9fda-grid { display: grid; gap: 1rem; }

/* ---------- Header ---------- */
.w9fda-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  max-width: 430px;
  margin: 0 auto;
  background: linear-gradient(180deg, #1a2531 0%, #1C2833 100%);
  border-bottom: 1px solid var(--w9fda-border);
  box-shadow: var(--w9fda-shadow);
}
.w9fda-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 1rem;
  gap: 0.6rem;
}
.w9fda-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--w9fda-text-light);
  font-weight: 700;
  font-size: 1.7rem;
}
.w9fda-logo img { width: 28px; height: 28px; border-radius: 4px; }
.w9fda-logo .w9fda-logo-name { color: var(--w9fda-primary); }

.w9fda-header-actions { display: flex; align-items: center; gap: 0.5rem; }
.w9fda-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: none;
  border-radius: var(--w9fda-radius);
  font-weight: 700;
  font-size: 1.3rem;
  padding: 0.6rem 1rem;
  cursor: pointer;
  transition: transform 0.15s ease, opacity 0.15s ease;
  min-height: 36px;
  text-decoration: none;
}
.w9fda-btn:active { transform: scale(0.96); }
.w9fda-btn-register { background: var(--w9fda-primary); color: #1C2833; }
.w9fda-btn-login { background: transparent; color: var(--w9fda-primary); border: 1px solid var(--w9fda-primary); }
.w9fda-btn-block { display: flex; width: 100%; padding: 0.9rem; font-size: 1.5rem; }

.w9fda-menu-btn {
  background: transparent;
  border: none;
  color: var(--w9fda-text-light);
  font-size: 1.8rem;
  cursor: pointer;
  padding: 0.4rem 0.6rem;
  border-radius: 4px;
}

/* ---------- Nav menu (expandable) ---------- */
.w9fda-nav {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  background: var(--w9fda-bg-alt);
  border-top: 1px solid var(--w9fda-border);
}
.w9fda-nav-open { max-height: 600px; }
.w9fda-nav-list { list-style: none; padding: 0.4rem 1rem 0.8rem; }
.w9fda-nav-list li { border-bottom: 1px solid rgba(255,255,255,0.05); }
.w9fda-nav-list a {
  display: block;
  padding: 0.9rem 0.4rem;
  color: var(--w9fda-text);
  font-size: 1.4rem;
}
.w9fda-nav-list a:hover { color: var(--w9fda-primary); text-decoration: none; }

/* ---------- Main ---------- */
.w9fda-main { padding-top: 6rem; padding-bottom: 80px; }

/* ---------- Carousel ---------- */
.w9fda-carousel {
  position: relative;
  width: 100%;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--w9fda-shadow);
  margin: 1rem 0;
}
.w9fda-slides { position: relative; width: 100%; aspect-ratio: 16/9; }
.w9fda-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.5s ease;
  cursor: pointer;
}
.w9fda-slide img { width: 100%; height: 100%; object-fit: cover; }
.w9fda-slide-active { opacity: 1; }
.w9fda-dots {
  position: absolute;
  bottom: 6px;
  left: 0; right: 0;
  display: flex;
  justify-content: center;
  gap: 6px;
  z-index: 2;
}
.w9fda-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  border: none; cursor: pointer;
}
.w9fda-dot-active { background: var(--w9fda-primary); }

/* ---------- Headings ---------- */
.w9fda-h1 {
  font-size: 2.2rem;
  color: var(--w9fda-text-light);
  font-weight: 800;
  margin: 1.4rem 0 0.6rem;
  line-height: 1.3;
}
.w9fda-h2 {
  font-size: 1.9rem;
  color: var(--w9fda-primary);
  font-weight: 700;
  margin: 1.6rem 0 0.6rem;
  padding-left: 0.8rem;
  border-left: 4px solid var(--w9fda-primary);
}
.w9fda-h3 {
  font-size: 1.6rem;
  color: var(--w9fda-text-light);
  font-weight: 700;
  margin: 1.2rem 0 0.4rem;
}
.w9fda-lead { color: var(--w9fda-text); font-size: 1.45rem; margin-bottom: 1rem; }

/* ---------- Game category & grid ---------- */
.w9fda-cat-title {
  font-size: 1.7rem;
  color: var(--w9fda-primary);
  font-weight: 700;
  margin: 1.6rem 0 0.6rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.w9fda-game-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.7rem;
  margin-bottom: 1rem;
}
.w9fda-game-card {
  background: var(--w9fda-bg-card);
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--w9fda-border);
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease;
  text-align: center;
}
.w9fda-game-card:active { transform: scale(0.97); border-color: var(--w9fda-primary); }
.w9fda-game-card img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.w9fda-game-name {
  font-size: 1.15rem;
  color: var(--w9fda-text-light);
  padding: 0.35rem 0.3rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ---------- Cards / modules ---------- */
.w9fda-card {
  background: var(--w9fda-bg-card);
  border: 1px solid var(--w9fda-border);
  border-radius: 10px;
  padding: 1.2rem;
  margin: 0.8rem 0;
  box-shadow: var(--w9fda-shadow);
}
.w9fda-card-title { font-size: 1.6rem; color: var(--w9fda-primary); font-weight: 700; margin-bottom: 0.5rem; }
.w9fda-card p { margin-bottom: 0.6rem; font-size: 1.4rem; }
.w9fda-promo-link { color: var(--w9fda-primary); font-weight: 700; cursor: pointer; }

/* ---------- Feature list ---------- */
.w9fda-features { display: grid; gap: 0.8rem; }
.w9fda-feature {
  display: flex;
  gap: 0.8rem;
  align-items: flex-start;
  background: var(--w9fda-bg-alt);
  padding: 0.9rem;
  border-radius: 8px;
  border-left: 3px solid var(--w9fda-primary);
}
.w9fda-feature .w9fda-feat-icon { color: var(--w9fda-primary); font-size: 2rem; }
.w9fda-feature h3 { margin-bottom: 0.2rem; }
.w9fda-feature p { font-size: 1.35rem; color: var(--w9fda-text); }

/* ---------- RTP table ---------- */
.w9fda-table { width: 100%; border-collapse: collapse; margin: 0.6rem 0; }
.w9fda-table th, .w9fda-table td {
  border: 1px solid var(--w9fda-border);
  padding: 0.55rem 0.6rem;
  font-size: 1.25rem;
  text-align: left;
}
.w9fda-table th { background: var(--w9fda-bg-alt); color: var(--w9fda-primary); }
.w9fda-table td { color: var(--w9fda-text); }

/* ---------- Testimonials ---------- */
.w9fda-testi { background: var(--w9fda-bg-alt); border-radius: 8px; padding: 1rem; margin: 0.5rem 0; border: 1px solid var(--w9fda-border); }
.w9fda-testi .w9fda-testi-name { color: var(--w9fda-primary); font-weight: 700; font-size: 1.3rem; }
.w9fda-testi p { font-size: 1.35rem; margin-top: 0.3rem; }

/* ---------- Payment / winners / app CTA ---------- */
.w9fda-pay { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.w9fda-pay span {
  background: var(--w9fda-bg-alt);
  border: 1px solid var(--w9fda-border);
  border-radius: 6px;
  padding: 0.5rem 0.8rem;
  font-size: 1.2rem;
  color: var(--w9fda-text-light);
}
.w9fda-winner {
  display: flex; justify-content: space-between;
  padding: 0.5rem 0.7rem; border-bottom: 1px dashed var(--w9fda-border);
  font-size: 1.3rem;
}
.w9fda-winner .w9fda-wname { color: var(--w9fda-text-light); }
.w9fda-winner .w9fda-wamt { color: var(--w9fda-primary); font-weight: 700; }

.w9fda-cta {
  background: linear-gradient(135deg, #2a3848, #1C2833);
  border: 1px solid var(--w9fda-primary);
  border-radius: 12px;
  padding: 1.4rem;
  text-align: center;
  margin: 1rem 0;
}
.w9fda-cta h3 { color: var(--w9fda-primary); margin-bottom: 0.4rem; }
.w9fda-cta p { margin-bottom: 0.8rem; }

/* ---------- Footer ---------- */
.w9fda-footer {
  background: #16202b;
  border-top: 1px solid var(--w9fda-border);
  padding: 1.6rem 1.2rem 2rem;
  margin-top: 1.5rem;
}
.w9fda-footer-about { font-size: 1.3rem; color: var(--w9fda-text); margin-bottom: 1rem; }
.w9fda-footer-links { display: flex; flex-wrap: wrap; gap: 0.5rem 0.8rem; margin-bottom: 0.8rem; }
.w9fda-footer-links a { font-size: 1.25rem; }
.w9fda-footer-promo { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0.6rem 0; }
.w9fda-footer-copy { font-size: 1.15rem; color: #6b7785; margin-top: 0.6rem; }

/* ---------- Bottom navigation (mobile) ---------- */
.w9fda-bnav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  max-width: 430px;
  margin: 0 auto;
  height: 62px;
  background: #16202b;
  border-top: 1px solid var(--w9fda-border);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.4);
}
.w9fda-bnav-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-width: 60px;
  min-height: 60px;
  background: transparent;
  border: none;
  color: var(--w9fda-text);
  cursor: pointer;
  text-decoration: none;
  transition: color 0.15s ease, transform 0.15s ease;
  font-size: 1.05rem;
}
.w9fda-bnav-btn:active { transform: scale(0.92); }
.w9fda-bnav-btn .w9fda-bnav-icon { font-size: 22px; }
.w9fda-bnav-btn .w9fda-bnav-label { font-size: 1rem; }
.w9fda-bnav-btn:hover { color: var(--w9fda-primary); text-decoration: none; }
.w9fda-bnav-active { color: var(--w9fda-primary); }

/* ---------- Utility ---------- */
.w9fda-text-center { text-align: center; }
.w9fda-mt-1 { margin-top: 1rem; }
.w9fda-hidden { display: none; }

/* ---------- Desktop ---------- */
@media (min-width: 769px) {
  .w9fda-bnav { display: none; }
  body { max-width: 768px; }
  .w9fda-header, .w9fda-bnav { max-width: 768px; }
  .w9fda-main { padding-bottom: 2rem; }
  .w9fda-game-grid { grid-template-columns: repeat(5, 1fr); }
}

/* ---------- Mobile bottom padding clearance ---------- */
@media (max-width: 768px) {
  .w9fda-main { padding-bottom: 80px; }
}
