/* ============================================================
 * ck-666 theme stylesheet - theme-822d.css
 * All custom classes use the "w822d-" prefix.
 * Palette: #DEE2E6 | #FFEBCD | #FFB347 | #5D5D5D | #FFFACD | #1E1E1E
 * Mobile-first, capped at max-width: 430px.
 * ============================================================ */

:root {
  --w822d-bg: #1E1E1E;
  --w822d-bg-2: #262626;
  --w822d-bg-3: #333333;
  --w822d-text: #FFEBCD;
  --w822d-text-soft: #DEE2E6;
  --w822d-primary: #FFB347;
  --w822d-accent: #FFFACD;
  --w822d-muted: #5D5D5D;
  --w822d-border: #3a3a3a;
  --w822d-radius: 12px;
}

* { box-sizing: border-box; }

html {
  font-size: 62.5%; /* rem base */
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--w822d-bg);
  color: var(--w822d-text);
  font-family: "Hind Siliguri", "Noto Sans Bengali", "Segoe UI", system-ui, sans-serif;
  font-size: 1.5rem;
  line-height: 1.5rem;
  -webkit-font-smoothing: antialiased;
}

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

/* ---------------------------------------------------------- layout */
.w822d-wrapper {
  max-width: 430px;
  margin: 0 auto;
  position: relative;
  min-height: 100vh;
  background: var(--w822d-bg);
  box-shadow: 0 0 28px rgba(0, 0, 0, 0.45);
}

main.w822d-main {
  padding: 64px 12px 84px; /* header clearance + bottom-nav clearance */
}

.w822d-section { margin: 20px 0; }
.w822d-section-title {
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--w822d-primary);
  margin: 14px 0 10px;
  padding-left: 8px;
  border-left: 4px solid var(--w822d-primary);
}

/* ---------------------------------------------------------- header */
.w822d-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  max-width: 430px;
  margin: 0 auto;
  height: 56px;
  background: linear-gradient(90deg, #1E1E1E 0%, #2b2b2b 100%);
  border-bottom: 1px solid var(--w822d-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 10px;
  z-index: 1000;
}
.w822d-brand { display: flex; align-items: center; gap: 8px; }
.w822d-brand img { width: 30px; height: 30px; border-radius: 6px; }
.w822d-brand-name {
  font-size: 1.7rem; font-weight: 800; color: var(--w822d-primary);
  letter-spacing: 0.4px;
}
.w822d-brand-name span { color: var(--w822d-accent); }

.w822d-header-actions { display: flex; align-items: center; gap: 6px; }
.w822d-menu-btn {
  background: transparent; border: 1px solid var(--w822d-border);
  color: var(--w822d-text); width: 36px; height: 36px;
  border-radius: 8px; cursor: pointer; font-size: 1.6rem;
  display: flex; align-items: center; justify-content: center;
}
.w822d-menu-btn:hover { background: var(--w822d-bg-3); }

/* ---------------------------------------------------------- buttons */
.w822d-btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 6px; min-height: 36px; padding: 0 14px;
  border-radius: 20px; font-weight: 700; font-size: 1.3rem;
  border: none; cursor: pointer; transition: transform .12s ease, filter .12s ease;
}
.w822d-btn:active { transform: scale(0.96); }
.w822d-btn-login {
  background: transparent; color: var(--w822d-accent);
  border: 1px solid var(--w822d-primary);
}
.w822d-btn-register {
  background: linear-gradient(90deg, #FFB347, #FF8C42);
  color: #1E1E1E;
}
.w822d-btn-promo {
  background: var(--w822d-primary); color: #1E1E1E;
  padding: 8px 18px; font-size: 1.4rem;
}
.w822d-text-link {
  color: var(--w822d-primary); font-weight: 700;
  border-bottom: 1px dashed var(--w822d-primary);
}

/* ---------------------------------------------------------- mobile menu */
.w822d-mobile-menu {
  display: none;
  position: fixed;
  top: 56px; left: 0; right: 0;
  max-width: 430px; margin: 0 auto;
  background: var(--w822d-bg-2);
  border-bottom: 1px solid var(--w822d-border);
  padding: 10px 14px;
  z-index: 9999;
}
.w822d-mobile-menu.w822d-menu-open { display: block; }
.w822d-mobile-menu a {
  display: block; padding: 10px 8px;
  color: var(--w822d-text-soft);
  border-bottom: 1px solid var(--w822d-border);
  font-size: 1.45rem;
}
.w822d-mobile-menu a:last-child { border-bottom: none; }
.w822d-mobile-menu a:hover { color: var(--w822d-primary); }

/* ---------------------------------------------------------- hero / carousel */
.w822d-carousel {
  position: relative; overflow: hidden;
  border-radius: var(--w822d-radius); margin: 12px 0;
}
.w822d-slide {
  display: none; cursor: pointer; position: relative;
}
.w822d-slide.w822d-slide-active { display: block; }
.w822d-slide img {
  width: 100%; height: 170px; object-fit: cover;
  border-radius: var(--w822d-radius);
}
.w822d-slide-caption {
  position: absolute; left: 12px; bottom: 10px;
  background: rgba(30, 30, 30, 0.75);
  color: var(--w822d-accent);
  padding: 4px 10px; border-radius: 6px;
  font-size: 1.25rem; font-weight: 700;
}
.w822d-dots {
  display: flex; gap: 6px; justify-content: center; margin-top: 6px;
}
.w822d-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--w822d-muted); cursor: pointer; border: none;
}
.w822d-dot.w822d-dot-active { background: var(--w822d-primary); }

/* ---------------------------------------------------------- game grid */
.w822d-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.w822d-card {
  background: var(--w822d-bg-2);
  border: 1px solid var(--w822d-border);
  border-radius: 10px;
  padding: 6px;
  text-align: center;
  cursor: pointer;
  transition: transform .12s ease, border-color .12s ease;
}
.w822d-card:hover { transform: translateY(-2px); border-color: var(--w822d-primary); }
.w822d-card img {
  width: 100%; height: 76px; object-fit: cover;
  border-radius: 8px; margin-bottom: 4px;
}
.w822d-card-name {
  font-size: 1.15rem; color: var(--w822d-text-soft);
  line-height: 1.3rem; height: 2.6rem; overflow: hidden;
}

/* ---------------------------------------------------------- info panels */
.w822d-panel {
  background: var(--w822d-bg-2);
  border: 1px solid var(--w822d-border);
  border-radius: var(--w822d-radius);
  padding: 14px; margin: 14px 0;
}
.w822d-panel h2 { font-size: 1.7rem; color: var(--w822d-primary); margin: 0 0 8px; }
.w822d-panel h3 { font-size: 1.45rem; color: var(--w822d-accent); margin: 10px 0 6px; }
.w822d-panel p {
  font-size: 1.35rem; color: var(--w822d-text-soft);
  line-height: 2.1rem; margin: 0 0 8px;
}
.w822d-list { padding-left: 18px; margin: 8px 0; color: var(--w822d-text-soft); }
.w822d-list li { font-size: 1.3rem; line-height: 2rem; margin-bottom: 4px; }

/* compact RTP / stats rows */
.w822d-stats {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px;
}
.w822d-stat {
  background: var(--w822d-bg-3); border-radius: 8px; padding: 8px;
  text-align: center;
}
.w822d-stat-num { font-size: 1.6rem; font-weight: 800; color: var(--w822d-primary); }
.w822d-stat-label { font-size: 1.1rem; color: var(--w822d-text-soft); }

/* winners strip */
.w822d-winners {
  display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px;
}
.w822d-winner {
  flex: 0 0 110px; background: var(--w822d-bg-3);
  border-radius: 8px; padding: 6px; text-align: center;
}
.w822d-winner .n { color: var(--w822d-accent); font-size: 1.2rem; font-weight: 700; }
.w822d-winner .a { color: var(--w822d-primary); font-size: 1.25rem; font-weight: 800; }

/* testimonials */
.w822d-testi {
  background: var(--w822d-bg-3); border-radius: 8px; padding: 10px; margin-bottom: 8px;
}
.w822d-testi .u { color: var(--w822d-primary); font-weight: 700; font-size: 1.3rem; }
.w822d-testi .t { color: var(--w822d-text-soft); font-size: 1.25rem; line-height: 1.9rem; }

/* payment chips */
.w822d-pay { display: flex; flex-wrap: wrap; gap: 6px; }
.w822d-pay span {
  background: var(--w822d-bg-3); color: var(--w822d-text-soft);
  border: 1px solid var(--w822d-border);
  padding: 6px 10px; border-radius: 6px; font-size: 1.2rem;
}

/* CTA block */
.w822d-cta {
  background: linear-gradient(90deg, #FFB347 0%, #FFFACD 100%);
  color: #1E1E1E; padding: 14px; border-radius: var(--w822d-radius);
  text-align: center; margin: 14px 0;
}
.w822d-cta h3 { margin: 0 0 6px; font-size: 1.7rem; }
.w822d-cta p { margin: 0 0 10px; font-size: 1.3rem; color: #2b2b2b; }
.w822d-cta .w822d-btn { background: #1E1E1E; color: var(--w822d-accent); }

/* ---------------------------------------------------------- footer */
.w822d-footer {
  background: var(--w822d-bg-2);
  border-top: 1px solid var(--w822d-border);
  padding: 18px 14px 8px;
  color: var(--w822d-text-soft);
}
.w822d-footer p { font-size: 1.25rem; line-height: 1.9rem; margin: 0 0 8px; }
.w822d-footer-links {
  display: flex; flex-wrap: wrap; gap: 6px 10px; margin: 8px 0;
}
.w822d-footer-links a {
  color: var(--w822d-text-soft); font-size: 1.2rem;
  text-decoration: underline;
}
.w822d-footer-buttons {
  display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0;
}
.w822d-copy {
  font-size: 1.1rem; color: var(--w822d-muted);
  border-top: 1px solid var(--w822d-border);
  padding-top: 8px; margin-top: 8px; text-align: center;
}

/* ---------------------------------------------------------- bottom nav */
.w822d-bottomnav {
  position: fixed; bottom: 0; left: 0; right: 0;
  max-width: 430px; margin: 0 auto;
  height: 60px;
  background: linear-gradient(0deg, #1E1E1E 0%, #2b2b2b 100%);
  border-top: 1px solid var(--w822d-border);
  display: flex; justify-content: space-around; align-items: center;
  z-index: 1000;
}
.w822d-bottomnav-btn {
  flex: 1; min-width: 60px; min-height: 60px;
  background: transparent; border: none; color: var(--w822d-text-soft);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px; cursor: pointer; padding: 4px 2px;
  transition: color .12s ease, transform .12s ease;
}
.w822d-bottomnav-btn:active { transform: scale(0.92); }
.w822d-bottomnav-btn .ico { font-size: 22px; line-height: 1; }
.w822d-bottomnav-btn .ico.material-icons-outlined { font-size: 24px; }
.w822d-bottomnav-btn .lbl { font-size: 1.05rem; font-weight: 600; }
.w822d-bottomnav-btn:hover { color: var(--w822d-primary); }
.w822d-bottomnav-active { color: var(--w822d-primary) !important; }
.w822d-bottomnav-active .ico { color: var(--w822d-primary); }

/* hide bottom nav on wide screens */
@media (min-width: 769px) {
  .w822d-bottomnav { display: none; }
  main.w822d-main { padding-bottom: 24px; }
}

/* keep horizontal scrolling away on small devices */
@media (max-width: 768px) {
  main.w822d-main { padding-bottom: 80px; }
}
