/* ===========================================================
   bet99 app apk - design stylesheet (mobile-first)
   Prefix: w8474-
   Comments in English per project convention.
   =========================================================== */

:root{
  --w8474-gold:#D4AF37;
  --w8474-sand:#F4A460;
  --w8474-grey:#D3D3D3;
  --w8474-dark:#262626;
  --w8474-orange:#FFA500;
  --w8474-bg:#1d1d1d;
  --w8474-bg2:#2f2a22;
  --w8474-card:#33302a;
  --w8474-text:#f5f1ea;
  --w8474-muted:#cfc7b8;
  --w8474-primary:var(--w8474-gold);
  --w8474-grad:linear-gradient(135deg,#D4AF37 0%,#FFA500 60%,#F4A460 100%);
  --w8474-shadow:0 6px 18px rgba(0,0,0,.45);
  --w8474-radius:14px;
}

/* Base reset */
*{box-sizing:border-box;margin:0;padding:0;-webkit-tap-highlight-color:transparent;}
html{font-size:62.5%;}
body{
  font-family:"Hind Siliguri","Noto Sans Bengali",system-ui,-apple-system,Segoe UI,Roboto,sans-serif;
  background:var(--w8474-bg);
  color:var(--w8474-text);
  line-height:1.5rem;
  font-size:1.5rem;
  overflow-x:hidden;
}
a{color:var(--w8474-gold);text-decoration:none;}
img{max-width:100%;display:block;}
ul{list-style:none;}

/* Layout helpers */
.w8474-container{width:100%;max-width:430px;margin:0 auto;padding:0 12px;}
.w8474-wrapper{padding:14px 0;}
.w8474-grid{display:grid;gap:10px;}

/* ===== Header ===== */
.w8474-header{
  position:fixed;top:0;left:0;right:0;z-index:1000;
  background:linear-gradient(180deg,#1a1714 0%,#26221c 100%);
  border-bottom:1px solid rgba(212,175,55,.35);
  box-shadow:var(--w8474-shadow);
}
.w8474-header-inner{
  max-width:430px;margin:0 auto;
  display:flex;align-items:center;justify-content:space-between;
  padding:8px 12px;gap:8px;
}
.w8474-logo{display:flex;align-items:center;gap:8px;min-width:0;}
.w8474-logo img{width:30px;height:30px;border-radius:8px;border:1px solid var(--w8474-gold);}
.w8474-logo strong{
  font-size:1.6rem;font-weight:800;color:var(--w8474-gold);
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
}
.w8474-header-actions{display:flex;align-items:center;gap:8px;}
.w8474-btn{
  display:inline-flex;align-items:center;justify-content:center;gap:6px;
  min-height:40px;padding:0 14px;border:none;border-radius:20px;
  font-size:1.4rem;font-weight:700;color:#1a1410;cursor:pointer;
  background:var(--w8474-grad);
  transition:transform .15s ease,box-shadow .15s ease;
}
.w8474-btn:hover{transform:translateY(-1px);box-shadow:0 4px 14px rgba(255,165,0,.45);}
.w8474-btn-ghost{
  background:transparent;color:var(--w8474-gold);
  border:1px solid var(--w8474-gold);
}
.w8474-btn-block{width:100%;min-height:46px;font-size:1.6rem;}
.w8474-btn-sm{min-height:34px;padding:0 12px;font-size:1.3rem;}
.w8474-menu-btn{
  background:transparent;border:0;color:var(--w8474-gold);
  font-size:2.2rem;cursor:pointer;padding:4px 8px;
}

/* ===== Expandable nav menu ===== */
.w8474-nav{
  max-height:0;overflow:hidden;
  transition:max-height .35s ease;
  background:#1a1714;
  border-top:1px solid rgba(212,175,55,.18);
}
.w8474-nav.open{max-height:480px;}
.w8474-nav-inner{
  max-width:430px;margin:0 auto;padding:10px 12px;
  display:grid;grid-template-columns:1fr 1fr;gap:8px;
}
.w8474-nav a{
  display:flex;align-items:center;gap:8px;
  padding:10px 12px;border-radius:10px;
  background:#2a2620;color:var(--w8474-text);
  font-size:1.35rem;font-weight:600;
  border:1px solid rgba(212,175,55,.15);
}
.w8474-nav a:hover{background:#3a342a;color:var(--w8474-gold);}

/* ===== Main ===== */
.w8474-main{padding-top:64px;padding-bottom:96px;}
@media (max-width:768px){
  .w8474-main{padding-bottom:96px;}
}

/* ===== Hero / Carousel ===== */
.w8474-hero{margin:14px 0 6px;}
.w8474-carousel{
  position:relative;border-radius:18px;overflow:hidden;
  box-shadow:var(--w8474-shadow);border:1px solid rgba(212,175,55,.25);
}
.w8474-carousel-track{display:flex;transition:transform .5s ease;}
.w8474-carousel-track figure{flex:0 0 100%;position:relative;}
.w8474-carousel-track img{width:100%;height:200px;object-fit:cover;}
.w8474-carousel-track figcaption{
  position:absolute;left:0;right:0;bottom:0;
  padding:18px 14px 12px;
  background:linear-gradient(180deg,transparent,rgba(0,0,0,.85));
  font-size:1.5rem;font-weight:700;color:#fff;
}
.w8474-carousel-dots{
  position:absolute;bottom:8px;left:0;right:0;
  display:flex;justify-content:center;gap:6px;
}
.w8474-carousel-dots span{
  width:8px;height:8px;border-radius:50%;
  background:rgba(255,255,255,.4);
}
.w8474-carousel-dots span.active{background:var(--w8474-gold);width:18px;border-radius:4px;}

/* ===== Section ===== */
.w8474-section{margin:18px 0;}
.w8474-section-head{
  display:flex;align-items:center;justify-content:space-between;
  margin-bottom:10px;
}
.w8474-section-head h2{
  font-size:1.7rem;font-weight:800;color:var(--w8474-gold);
  display:flex;align-items:center;gap:8px;
}
.w8474-section-head h2 i{color:var(--w8474-orange);}
.w8474-section-head .w8474-link-sm{font-size:1.25rem;color:var(--w8474-sand);}

/* ===== H1 ===== */
.w8474-h1{
  font-size:2rem;line-height:2.4rem;font-weight:800;
  color:#fff;margin:12px 0;
  text-shadow:0 2px 6px rgba(0,0,0,.6);
}
.w8474-h1 span{color:var(--w8474-orange);}

/* ===== Game grid (compact icons) ===== */
.w8474-game-grid{
  display:grid;grid-template-columns:repeat(3,1fr);gap:8px;
}
.w8474-game-card{
  display:flex;flex-direction:column;align-items:center;
  background:var(--w8474-card);border-radius:12px;padding:8px 6px;
  border:1px solid rgba(212,175,55,.18);
  transition:transform .15s ease,border-color .15s ease;
  cursor:pointer;
}
.w8474-game-card:hover{transform:translateY(-2px);border-color:var(--w8474-gold);}
.w8474-game-card img{
  width:64px;height:64px;border-radius:10px;object-fit:cover;
  border:1px solid rgba(255,165,0,.25);
}
.w8474-game-card span{
  margin-top:6px;font-size:1.15rem;color:var(--w8474-text);
  text-align:center;line-height:1.3rem;font-weight:600;
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;
}

/* ===== Cards / Features ===== */
.w8474-card{
  background:var(--w8474-card);border-radius:var(--w8474-radius);
  padding:14px;border:1px solid rgba(212,175,55,.18);
  box-shadow:var(--w8474-shadow);
}
.w8474-card h3{
  font-size:1.45rem;color:var(--w8474-gold);font-weight:700;
  margin-bottom:8px;display:flex;align-items:center;gap:8px;
}
.w8474-card p{font-size:1.3rem;color:var(--w8474-muted);line-height:1.7rem;}

.w8474-feature-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;}
.w8474-feature{
  background:var(--w8474-card);border-radius:12px;padding:12px;
  text-align:center;border:1px solid rgba(212,175,55,.18);
}
.w8474-feature .w8474-ico{
  width:44px;height:44px;border-radius:50%;margin:0 auto 8px;
  display:flex;align-items:center;justify-content:center;
  background:var(--w8474-grad);color:#1a1410;font-size:2rem;
}
.w8474-feature h4{font-size:1.3rem;color:#fff;margin-bottom:4px;}
.w8474-feature p{font-size:1.15rem;color:var(--w8474-muted);}

/* ===== Promo CTA banner ===== */
.w8474-cta{
  background:var(--w8474-grad);border-radius:16px;padding:16px;
  color:#1a1410;text-align:center;margin:18px 0;
  box-shadow:var(--w8474-shadow);
}
.w8474-cta h3{font-size:1.7rem;font-weight:800;margin-bottom:6px;}
.w8474-cta p{font-size:1.3rem;margin-bottom:10px;font-weight:600;}

/* ===== RTP table ===== */
.w8474-table{width:100%;border-collapse:collapse;font-size:1.25rem;}
.w8474-table th,.w8474-table td{
  padding:8px 6px;text-align:center;
  border-bottom:1px solid rgba(212,175,55,.18);
}
.w8474-table th{color:var(--w8474-gold);font-weight:700;}
.w8474-table td{color:var(--w8474-muted);}

/* ===== Testimonial ===== */
.w8474-testimonial{
  background:var(--w8474-card);border-radius:12px;padding:12px;
  border-left:3px solid var(--w8474-gold);margin-bottom:10px;
}
.w8474-testimonial p{font-size:1.25rem;color:var(--w8474-text);font-style:italic;}
.w8474-testimonial .w8474-author{
  display:block;margin-top:6px;font-size:1.15rem;color:var(--w8474-sand);font-weight:700;
}

/* ===== Payment icons ===== */
.w8474-pay-row{display:flex;flex-wrap:wrap;gap:8px;}
.w8474-pay{
  flex:1 1 30%;background:var(--w8474-card);
  border:1px solid rgba(212,175,55,.18);border-radius:10px;
  padding:10px;text-align:center;font-size:1.2rem;color:var(--w8474-muted);
}
.w8474-pay i{font-size:2rem;color:var(--w8474-gold);display:block;margin-bottom:4px;}

/* ===== Winners ===== */
.w8474-winner{
  display:flex;align-items:center;justify-content:space-between;
  padding:8px 10px;background:var(--w8474-card);
  border-radius:10px;margin-bottom:6px;
  border:1px solid rgba(212,175,55,.12);font-size:1.25rem;
}
.w8474-winner b{color:var(--w8474-orange);}
.w8474-winner span{color:var(--w8474-muted);}

/* ===== FAQ ===== */
.w8474-faq{margin-bottom:8px;border-radius:10px;overflow:hidden;background:var(--w8474-card);border:1px solid rgba(212,175,55,.15);}
.w8474-faq-q{
  width:100%;text-align:left;background:transparent;border:0;
  padding:12px;color:var(--w8474-gold);font-weight:700;font-size:1.3rem;
  display:flex;justify-content:space-between;align-items:center;cursor:pointer;
}
.w8474-faq-a{padding:0 12px 12px;font-size:1.25rem;color:var(--w8474-muted);}

/* ===== Footer ===== */
.w8474-footer{
  background:#161310;border-top:2px solid var(--w8474-gold);
  padding:18px 0 24px;margin-top:18px;
}
.w8474-footer .w8474-container{display:block;}
.w8474-footer-brand{
  font-size:1.3rem;color:var(--w8474-muted);line-height:1.7rem;
  margin-bottom:12px;
}
.w8474-footer-promos{
  display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-bottom:14px;
}
.w8474-footer-links{
  display:grid;grid-template-columns:1fr 1fr;gap:6px;margin-bottom:12px;
}
.w8474-footer-links a{
  font-size:1.2rem;color:var(--w8474-grey);
  padding:6px 4px;border-bottom:1px solid rgba(212,175,55,.08);
}
.w8474-footer-links a:hover{color:var(--w8474-gold);}
.w8474-footer-copy{
  font-size:1.15rem;color:#8a8175;text-align:center;border-top:1px solid rgba(212,175,55,.12);padding-top:10px;
}

/* ===== Mobile Bottom Nav ===== */
.w8474-bottomnav{
  position:fixed;left:0;right:0;bottom:0;z-index:1000;
  background:linear-gradient(180deg,#241f19 0%,#161310 100%);
  border-top:1px solid rgba(212,175,55,.35);
  display:flex;justify-content:space-around;align-items:stretch;
  height:62px;
}
.w8474-bottomnav a{
  flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;
  color:var(--w8474-grey);font-size:1.05rem;font-weight:600;
  gap:2px;border-top:3px solid transparent;transition:color .15s ease,border-color .15s ease,transform .15s ease;
}
.w8474-bottomnav a i{font-size:2.2rem;}
.w8474-bottomnav a.active{color:var(--w8474-gold);border-top-color:var(--w8474-orange);}
.w8474-bottomnav a:active{transform:scale(.92);}
.w8474-bottomnav .w8474-bn-center i{
  background:var(--w8474-grad);color:#1a1410;
  width:42px;height:42px;border-radius:50%;
  display:flex;align-items:center;justify-content:center;
  margin-top:-14px;box-shadow:0 4px 10px rgba(255,165,0,.5);font-size:2.2rem;
}
@media (min-width:769px){.w8474-bottomnav{display:none;}}

/* Inline promo link (text) */
.w8474-promo-link{
  color:var(--w8474-orange);font-weight:800;cursor:pointer;
  border-bottom:1px dashed var(--w8474-orange);
}

/* SEO text block */
.w8474-seo{font-size:1.25rem;color:var(--w8474-muted);line-height:1.8rem;}
.w8474-seo h2{font-size:1.55rem;color:var(--w8474-gold);margin:14px 0 6px;font-weight:800;}
.w8474-seo p{margin-bottom:8px;}

/* Desktop tweaks */
@media (min-width:431px){
  body{background:#111;}
  .w8474-header-inner,.w8474-nav-inner,.w8474-container{max-width:430px;}
}
