/* ============================================================
   tk866 layout stylesheet - core basefile
   Prefix: w1686-
   Palette: #2C3E50 / #6F4E37 / #C0C0C0 / #FFEFD5 / #F5F5F5
   Mobile-first, max-width 430px, rem units (root 62.5%).
   ============================================================ */

:root {
  --w1686-primary: #2C3E50;
  --w1686-bg: #1a2530;
  --w1686-bg2: #233446;
  --w1686-bg3: #2d4258;
  --w1686-accent: #6F4E37;
  --w1686-accent2: #8a6a52;
  --w1686-light: #F5F5F5;
  --w1686-silver: #C0C0C0;
  --w1686-warm: #FFEFD5;
  --w1686-gold: #d4af37;
  --w1686-danger: #c0392b;
  --w1686-success: #27ae60;
  --w1686-radius: 10px;
  --w1686-radius-sm: 6px;
  --w1686-shadow: 0 4px 14px rgba(0, 0, 0, .35);
  --w1686-shadow-lg: 0 10px 30px rgba(0, 0, 0, .5);
  --w1686-header-h: 56px;
  --w1686-bottomnav-h: 62px;
}

* { 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", "Hind Siliguri", sans-serif;
  background: var(--w1686-bg);
  color: var(--w1686-light);
  line-height: 1.5rem;
  font-size: 1.4rem;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: var(--w1686-warm); text-decoration: none; }
a:hover { color: var(--w1686-gold); }

.w1686-container { width: 100%; max-width: 430px; margin: 0 auto; padding: 0 12px; }
.w1686-wrapper { width: 100%; max-width: 430px; margin: 0 auto; }

/* ============= Header ============= */
.w1686-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--w1686-header-h);
  background: linear-gradient(90deg, var(--w1686-primary), var(--w1686-bg2));
  border-bottom: 1px solid rgba(196, 175, 55, .25);
  transition: box-shadow .25s ease;
}
.w1686-header-scrolled { box-shadow: var(--w1686-shadow); }
.w1686-header-inner {
  max-width: 430px; margin: 0 auto; height: 100%;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 12px;
}
.w1686-logo { display: flex; align-items: center; gap: 8px; color: var(--w1686-warm); font-weight: 700; font-size: 1.8rem; }
.w1686-logo img { width: 28px; height: 28px; border-radius: 6px; }
.w1686-logo .w1686-logo-text { background: linear-gradient(90deg, var(--w1686-gold), var(--w1686-warm)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.w1686-header-actions { display: flex; align-items: center; gap: 8px; }
.w1686-menu-btn { background: transparent; border: 0; color: var(--w1686-light); font-size: 2rem; cursor: pointer; padding: 6px; }

.w1686-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  font-weight: 700; font-size: 1.3rem; border: 0; border-radius: var(--w1686-radius-sm);
  padding: 8px 14px; cursor: pointer; transition: transform .15s ease, box-shadow .2s ease;
  min-height: 38px; text-decoration: none;
}
.w1686-btn:active { transform: scale(.96); }
.w1686-btn-register { background: linear-gradient(135deg, var(--w1686-gold), #b8941f); color: #2a1d05; }
.w1686-btn-register:hover { box-shadow: 0 4px 12px rgba(212, 175, 55, .5); color: #2a1d05; }
.w1686-btn-login { background: transparent; color: var(--w1686-warm); border: 1px solid var(--w1686-gold); }
.w1686-btn-login:hover { background: rgba(212, 175, 55, .15); color: var(--w1686-warm); }
.w1686-btn-promo { background: linear-gradient(135deg, var(--w1686-accent), var(--w1686-accent2)); color: var(--w1686-warm); }
.w1686-btn-block { display: flex; width: 100%; padding: 12px 16px; font-size: 1.5rem; }

/* ============= Mobile Menu ============= */
.w1686-menu-mask {
  position: fixed; inset: 0; background: rgba(0, 0, 0, .55); z-index: 9998;
  opacity: 0; visibility: hidden; transition: opacity .25s ease;
}
.w1686-mask-show { opacity: 1; visibility: visible; }
.w1686-mobile-menu {
  position: fixed; top: 0; right: -80%; width: 80%; max-width: 320px; height: 100%;
  background: var(--w1686-bg2); z-index: 9999; transition: right .3s ease;
  padding: 16px; overflow-y: auto;
}
.w1686-menu-open { right: 0; }
.w1686-menu-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid rgba(255,255,255,.1); }
.w1686-menu-close { background: transparent; border: 0; color: var(--w1686-light); font-size: 2rem; cursor: pointer; }
.w1686-menu-list { list-style: none; }
.w1686-menu-list li a {
  display: block; padding: 12px 10px; color: var(--w1686-light); border-bottom: 1px solid rgba(255,255,255,.06);
  font-size: 1.4rem; transition: padding .2s ease, color .2s ease;
}
.w1686-menu-list li a:hover { padding-left: 18px; color: var(--w1686-warm); }
.w1686-menu-cta { margin-top: 18px; display: flex; flex-direction: column; gap: 10px; }

/* ============= Main / Sections ============= */
main { padding-top: calc(var(--w1686-header-h) + 6px); padding-bottom: 20px; }
.w1686-section { padding: 18px 0; }
.w1686-section-title {
  font-size: 1.8rem; font-weight: 700; color: var(--w1686-warm);
  margin-bottom: 12px; padding-left: 10px; border-left: 4px solid var(--w1686-gold);
  display: flex; align-items: center; gap: 8px;
}
.w1686-section-title i { color: var(--w1686-gold); }
.w1686-intro { padding: 14px 12px; color: var(--w1686-silver); font-size: 1.35rem; line-height: 1.6rem; }
.w1686-intro strong { color: var(--w1686-warm); }

/* ============= Carousel ============= */
.w1686-carousel { position: relative; overflow: hidden; border-radius: var(--w1686-radius); margin: 8px 0; }
.w1686-carousel-track { display: flex; transition: transform .5s ease; }
.w1686-carousel-slide { min-width: 100%; position: relative; cursor: pointer; }
.w1686-carousel-slide img { width: 100%; height: 180px; object-fit: cover; }
.w1686-carousel-cap {
  position: absolute; left: 12px; bottom: 12px; right: 12px;
  background: linear-gradient(90deg, rgba(44,62,80,.85), rgba(111,78,55,.6));
  padding: 8px 12px; border-radius: var(--w1686-radius-sm); color: var(--w1686-warm); font-weight: 700; font-size: 1.4rem;
}
.w1686-carousel-dots { position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%); display: flex; gap: 6px; }
.w1686-carousel-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.4); cursor: pointer; transition: background .2s; }
.w1686-dot-active { background: var(--w1686-gold); }
.w1686-carousel-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(0,0,0,.4); color: var(--w1686-warm); border: 0; width: 32px; height: 32px;
  border-radius: 50%; cursor: pointer; font-size: 1.6rem; display: flex; align-items: center; justify-content: center;
}
.w1686-carousel-nav:hover { background: rgba(0,0,0,.7); }
.w1686-carousel-prev { left: 6px; }
.w1686-carousel-next { right: 6px; }

/* ============= Game Grid ============= */
.w1686-game-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 4px 0; }
.w1686-game-card { background: var(--w1686-bg2); border-radius: var(--w1686-radius-sm); overflow: hidden; cursor: pointer; transition: transform .18s ease, box-shadow .2s ease; border: 1px solid rgba(255,255,255,.05); }
.w1686-game-card:hover { transform: translateY(-3px); box-shadow: var(--w1686-shadow); border-color: rgba(212,175,55,.4); }
.w1686-game-card img { width: 100%; height: 88px; object-fit: cover; background: #000; }
.w1686-game-name { padding: 6px 4px; font-size: 1.1rem; color: var(--w1686-light); text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-height: 28px; }
.w1686-game-card:hover .w1686-game-name { color: var(--w1686-warm); }

/* ============= Modules / Cards ============= */
.w1686-card {
  background: var(--w1686-bg2); border-radius: var(--w1686-radius); padding: 16px; margin: 10px 0;
  border: 1px solid rgba(255,255,255,.05); box-shadow: var(--w1686-shadow);
}
.w1686-card h2 { font-size: 1.7rem; color: var(--w1686-warm); margin-bottom: 10px; }
.w1686-card h3 { font-size: 1.45rem; color: var(--w1686-gold); margin: 10px 0 6px; }
.w1686-card p { color: var(--w1686-silver); margin-bottom: 8px; font-size: 1.3rem; line-height: 1.6rem; }
.w1686-card ul { padding-left: 18px; color: var(--w1686-silver); }
.w1686-card li { margin-bottom: 6px; font-size: 1.3rem; line-height: 1.55rem; }

.w1686-features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.w1686-feature-item { background: var(--w1686-bg3); padding: 12px; border-radius: var(--w1686-radius-sm); text-align: center; }
.w1686-feature-item i { font-size: 2.2rem; color: var(--w1686-gold); margin-bottom: 6px; }
.w1686-feature-item .w1686-feature-title { font-weight: 700; color: var(--w1686-warm); font-size: 1.3rem; margin-bottom: 4px; }
.w1686-feature-item p { font-size: 1.15rem; color: var(--w1686-silver); margin: 0; }

.w1686-step-list { counter-reset: step; list-style: none; padding: 0; }
.w1686-step-list li { counter-increment: step; position: relative; padding: 10px 10px 10px 38px; margin-bottom: 8px; background: var(--w1686-bg3); border-radius: var(--w1686-radius-sm); font-size: 1.3rem; color: var(--w1686-silver); }
.w1686-step-list li::before { content: counter(step); position: absolute; left: 8px; top: 50%; transform: translateY(-50%); width: 22px; height: 22px; background: var(--w1686-gold); color: #2a1d05; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 1.2rem; }

.w1686-winners { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.w1686-winner { background: var(--w1686-bg3); padding: 10px; border-radius: var(--w1686-radius-sm); }
.w1686-winner .w1686-winner-name { color: var(--w1686-warm); font-weight: 700; font-size: 1.25rem; }
.w1686-winner .w1686-winner-amount { color: var(--w1686-gold); font-weight: 700; font-size: 1.5rem; }
.w1686-winner .w1686-winner-game { color: var(--w1686-silver); font-size: 1.1rem; }

.w1686-payments { display: flex; flex-wrap: wrap; gap: 8px; }
.w1686-pay-item { background: var(--w1686-bg3); padding: 8px 12px; border-radius: var(--w1686-radius-sm); display: flex; align-items: center; gap: 6px; font-size: 1.2rem; color: var(--w1686-silver); }
.w1686-pay-item i { color: var(--w1686-gold); }

.w1686-testimonial { background: var(--w1686-bg3); padding: 12px; border-radius: var(--w1686-radius-sm); margin-bottom: 8px; }
.w1686-testimonial .w1686-testi-text { color: var(--w1686-silver); font-size: 1.3rem; font-style: italic; }
.w1686-testimonial .w1686-testi-author { color: var(--w1686-warm); font-weight: 700; font-size: 1.2rem; margin-top: 6px; }

.w1686-app-cta { background: linear-gradient(135deg, var(--w1686-accent), var(--w1686-primary)); padding: 18px; border-radius: var(--w1686-radius); text-align: center; margin: 10px 0; }
.w1686-app-cta h3 { color: var(--w1686-warm); font-size: 1.7rem; margin-bottom: 8px; }
.w1686-app-cta p { color: var(--w1686-silver); margin-bottom: 12px; }

.w1686-faq-item { background: var(--w1686-bg3); border-radius: var(--w1686-radius-sm); margin-bottom: 8px; overflow: hidden; }
.w1686-faq-q { padding: 12px; font-weight: 700; color: var(--w1686-warm); cursor: pointer; display: flex; justify-content: space-between; align-items: center; }
.w1686-faq-a { padding: 0 12px 12px; color: var(--w1686-silver); font-size: 1.25rem; line-height: 1.55rem; }

.w1686-trust-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.w1686-trust-badge { background: rgba(39,174,96,.15); color: #2ecc71; padding: 5px 10px; border-radius: 20px; font-size: 1.1rem; display: inline-flex; align-items: center; gap: 4px; }

.w1686-cta-bar { display: flex; gap: 10px; margin: 14px 0; }
.w1686-cta-bar .w1686-btn { flex: 1; }

.w1686-text-link { color: var(--w1686-gold); font-weight: 700; text-decoration: underline; }
.w1686-text-link:hover { color: var(--w1686-warm); }

/* ============= Footer ============= */
.w1686-footer { background: var(--w1686-primary); padding: 22px 12px calc(var(--w1686-bottomnav-h) + 22px); margin-top: 16px; border-top: 2px solid var(--w1686-gold); }
.w1686-footer-brand { color: var(--w1686-silver); font-size: 1.25rem; line-height: 1.55rem; margin-bottom: 14px; }
.w1686-footer-links { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.w1686-footer-links a { background: var(--w1686-bg2); color: var(--w1686-warm); padding: 6px 12px; border-radius: 20px; font-size: 1.15rem; }
.w1686-footer-links a:hover { background: var(--w1686-accent); color: var(--w1686-warm); }
.w1686-footer-promo { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.w1686-footer-copy { color: var(--w1686-silver); font-size: 1.1rem; border-top: 1px solid rgba(255,255,255,.08); padding-top: 12px; }

/* ============= Mobile Bottom Nav ============= */
.w1686-bottomnav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 1000;
  height: var(--w1686-bottomnav-h);
  background: linear-gradient(180deg, var(--w1686-primary), #16202b);
  border-top: 1px solid rgba(212,175,55,.3);
  display: flex; justify-content: space-around; align-items: center;
  box-shadow: 0 -4px 14px rgba(0,0,0,.4);
}
.w1686-bottomnav-btn {
  flex: 1; min-width: 60px; min-height: 60px; background: transparent; border: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  color: var(--w1686-silver); cursor: pointer; transition: color .2s ease, transform .15s ease;
  text-decoration: none;
}
.w1686-bottomnav-btn:active { transform: scale(.92); }
.w1686-bottomnav-btn i, .w1686-bottomnav-btn .material-icons-outlined, .w1686-bottomnav-btn ion-icon { font-size: 22px; }
.w1686-bottomnav-btn .w1686-nav-label { font-size: 1rem; line-height: 1.1rem; }
.w1686-bottomnav-btn:hover { color: var(--w1686-warm); }
.w1686-nav-active { color: var(--w1686-gold) !important; }
.w1686-bottomnav-btn.w1686-nav-promo { color: var(--w1686-warm); }
.w1686-bottomnav-btn.w1686-nav-promo .w1686-nav-label { font-weight: 700; }

/* ============= Responsive / Desktop ============= */
@media (min-width: 769px) {
  .w1686-bottomnav { display: none; }
  .w1686-footer { padding-bottom: 22px; }
  .w1686-container, .w1686-wrapper, .w1686-header-inner { max-width: 760px; }
  main { padding-bottom: 30px; }
  .w1686-game-grid { grid-template-columns: repeat(6, 1fr); }
  .w1686-features { grid-template-columns: repeat(4, 1fr); }
  .w1686-winners { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 768px) {
  main { padding-bottom: calc(var(--w1686-bottomnav-h) + 16px); }
}

@media (max-width: 360px) {
  .w1686-game-grid { grid-template-columns: repeat(2, 1fr); }
  .w1686-features { grid-template-columns: 1fr; }
}
