/* ============================================================
   ck 344 - Mobile-first gaming portal stylesheet
   Prefix: vf5e-  | Palette: wheat/dark brown vintage casino
   ============================================================ */

/* ---------- Design tokens ---------- */
:root{
  --vf5e-bg:#0A0A0A;
  --vf5e-bg-2:#141014;
  --vf5e-bg-3:#1d171d;
  --vf5e-ink:#F5DEB3;
  --vf5e-ink-dim:#d9c393;
  --vf5e-muted:#9a8a6a;
  --vf5e-accent:#CD853F;
  --vf5e-accent-2:#DEB887;
  --vf5e-line:rgba(245,222,179,.14);
  --vf5e-line-strong:rgba(245,222,179,.28);
  --vf5e-shadow:0 10px 30px rgba(0,0,0,.55);
  --vf5e-glow:0 0 18px rgba(205,133,63,.45);
  --vf5e-radius:14px;
  --vf5e-max:430px;
  --vf5e-header-h:60px;
  --vf5e-bottom-h:64px;
}

*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}
html,body{margin:0;padding:0}
html{scroll-behavior:smooth}
body{
  font-family:"Hind Siliguri","Noto Sans Bengali","Segoe UI",system-ui,-apple-system,sans-serif;
  background:var(--vf5e-bg);
  color:var(--vf5e-ink);
  font-size:15px;
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
  min-height:100vh;
  overflow-x:hidden;
}
img{max-width:100%;display:block}
a{color:var(--vf5e-accent-2);text-decoration:none}
a:focus-visible,button:focus-visible{outline:2px solid var(--vf5e-accent);outline-offset:2px}

/* Mobile canvas frame for wider screens */
.vf5e-stage{
  max-width:var(--vf5e-max);
  margin:0 auto;
  background:
    radial-gradient(120% 60% at 50% -10%,rgba(205,133,63,.15),transparent 60%),
    linear-gradient(180deg,#0d0a0d 0%,var(--vf5e-bg) 40%);
  min-height:100vh;
  position:relative;
  box-shadow:var(--vf5e-shadow);
}

/* ---------- Header (centered identity bar) ---------- */
.vf5e-header{
  position:sticky;top:0;z-index:60;
  height:var(--vf5e-header-h);
  display:grid;
  grid-template-columns:44px 1fr auto;
  align-items:center;
  gap:10px;
  padding:0 12px;
  background:linear-gradient(180deg,rgba(10,10,10,.96),rgba(10,10,10,.82));
  backdrop-filter:blur(10px);
  border-bottom:1px solid var(--vf5e-line);
}
.vf5e-menu-btn{
  width:42px;height:42px;
  display:flex;align-items:center;justify-content:center;
  border:1px solid var(--vf5e-line);
  background:rgba(245,222,179,.05);
  border-radius:12px;color:var(--vf5e-ink);
  cursor:pointer;
  transition:background .2s,box-shadow .2s;
}
.vf5e-menu-btn:hover,.vf5e-menu-btn:focus-visible{
  background:rgba(205,133,63,.18);
  box-shadow:var(--vf5e-glow);
}
.vf5e-menu-btn span{
  display:block;width:18px;height:2px;background:var(--vf5e-ink);
  position:relative;border-radius:2px;
}
.vf5e-menu-btn span:before,.vf5e-menu-btn span:after{
  content:"";position:absolute;left:0;width:18px;height:2px;background:var(--vf5e-ink);border-radius:2px;
}
.vf5e-menu-btn span:before{top:-6px}
.vf5e-menu-btn span:after{top:6px}

.vf5e-brand{
  display:flex;align-items:center;justify-content:center;gap:9px;
  min-width:0;
}
.vf5e-brand-logo{
  width:36px;height:36px;border-radius:10px;object-fit:cover;
  border:1px solid var(--vf5e-accent);
  box-shadow:0 0 0 2px rgba(205,133,63,.18);
  flex:0 0 auto;
}
.vf5e-brand-name{
  font-weight:700;font-size:17px;letter-spacing:.3px;color:var(--vf5e-ink);
  white-space:nowrap;
}
.vf5e-brand-name b{color:var(--vf5e-accent-2)}

.vf5e-auth{display:flex;gap:6px;align-items:center}
.vf5e-btn{
  font-family:inherit;font-weight:600;font-size:13px;
  padding:9px 14px;border-radius:10px;cursor:pointer;border:none;
  min-height:40px;display:inline-flex;align-items:center;justify-content:center;
  transition:transform .15s,box-shadow .2s,background .2s;
  line-height:1;
}
.vf5e-btn-login{
  background:transparent;color:var(--vf5e-ink);
  border:1px solid var(--vf5e-line-strong);
}
.vf5e-btn-login:hover{background:rgba(245,222,179,.08)}
.vf5e-btn-register{
  background:linear-gradient(135deg,#CD853F,#DEB887);
  color:#1a1208;
  box-shadow:0 4px 14px rgba(205,133,63,.35);
}
.vf5e-btn-register:hover{transform:translateY(-1px);box-shadow:var(--vf5e-glow)}
.vf5e-btn:active{transform:translateY(1px)}

/* ---------- Side drawer ---------- */
.vf5e-scrim{
  position:fixed;inset:0;z-index:80;
  background:rgba(0,0,0,.55);
  opacity:0;pointer-events:none;transition:opacity .25s;
}
.vf5e-scrim.on{opacity:1;pointer-events:auto}
.vf5e-drawer{
  position:fixed;top:0;left:0;bottom:0;z-index:90;
  width:280px;max-width:80vw;
  background:linear-gradient(180deg,#161016,#0c0a0c);
  border-right:1px solid var(--vf5e-line);
  transform:translateX(-105%);
  transition:transform .3s ease;
  padding:18px 16px calc(var(--vf5e-bottom-h) + 20px);
  overflow-y:auto;
}
.vf5e-drawer.on{transform:translateX(0)}
.vf5e-drawer-head{display:flex;align-items:center;gap:10px;margin-bottom:18px}
.vf5e-drawer-head img{width:34px;height:34px;border-radius:9px;border:1px solid var(--vf5e-accent)}
.vf5e-drawer-head strong{font-size:16px;color:var(--vf5e-ink)}
.vf5e-drawer-cta{display:flex;flex-direction:column;gap:8px;margin-bottom:18px}
.vf5e-drawer-cta .vf5e-btn{width:100%}
.vf5e-drawer-title{
  font-size:11px;letter-spacing:2px;text-transform:uppercase;color:var(--vf5e-muted);
  margin:14px 4px 8px;
}
.vf5e-drawer nav{display:flex;flex-direction:column;gap:2px}
.vf5e-drawer nav a{
  display:flex;align-items:center;gap:10px;
  padding:11px 12px;border-radius:10px;
  color:var(--vf5e-ink-dim);font-size:14px;
  transition:background .2s,color .2s;
}
.vf5e-drawer nav a:hover,.vf5e-drawer nav a.active{
  background:rgba(205,133,63,.16);color:var(--vf5e-ink);
}
.vf5e-drawer nav a .vf5e-dot{
  width:6px;height:6px;border-radius:50%;background:var(--vf5e-accent);opacity:.6;
}

/* ---------- Main / sections ---------- */
.vf5e-main{padding:14px 14px calc(var(--vf5e-bottom-h) + 30px)}
.vf5e-section{margin-bottom:26px}
.vf5e-section-head{
  display:flex;align-items:center;justify-content:space-between;
  margin:0 2px 12px;
}
.vf5e-section-title{
  font-size:18px;font-weight:700;color:var(--vf5e-ink);position:relative;padding-left:14px;
}
.vf5e-section-title:before{
  content:"";position:absolute;left:0;top:5px;bottom:5px;width:4px;border-radius:4px;
  background:linear-gradient(180deg,#CD853F,#DEB887);
}
.vf5e-section-link{font-size:12px;color:var(--vf5e-accent-2)}

/* ---------- Hero carousel ---------- */
.vf5e-hero{
  position:relative;border-radius:var(--vf5e-radius);overflow:hidden;
  box-shadow:var(--vf5e-shadow);border:1px solid var(--vf5e-line);
  margin-bottom:6px;
}
.vf5e-hero-track{display:flex;transition:transform .45s ease;scroll-snap-type:x mandatory}
.vf5e-hero-slide{
  flex:0 0 100%;scroll-snap-align:start;position:relative;cursor:pointer;
}
.vf5e-hero-slide img{width:100%;height:180px;object-fit:cover}
.vf5e-hero-cap{
  position:absolute;left:0;right:0;bottom:0;padding:14px 14px 16px;
  background:linear-gradient(180deg,transparent,rgba(10,10,10,.92));
}
.vf5e-hero-cap h2{margin:0 0 4px;font-size:17px;color:var(--vf5e-ink)}
.vf5e-hero-cap p{margin:0;font-size:12px;color:var(--vf5e-ink-dim)}
.vf5e-hero-cap .vf5e-hero-cta{
  display:inline-block;margin-top:8px;font-size:12px;font-weight:600;
  padding:7px 14px;border-radius:20px;color:#1a1208;
  background:linear-gradient(135deg,#CD853F,#DEB887);
}
.vf5e-hero-dots{display:flex;gap:6px;justify-content:center;padding:8px 0 0}
.vf5e-hero-dots button{
  width:7px;height:7px;border-radius:50%;border:none;padding:0;
  background:rgba(245,222,179,.25);cursor:pointer;transition:all .25s;
}
.vf5e-hero-dots button.on{width:22px;border-radius:6px;background:var(--vf5e-accent)}

/* ---------- Quick stats ---------- */
.vf5e-stats{
  display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin-top:14px;
}
.vf5e-stat{
  background:linear-gradient(180deg,rgba(205,133,63,.10),rgba(205,133,63,.03));
  border:1px solid var(--vf5e-line);border-radius:12px;
  padding:10px 6px;text-align:center;
}
.vf5e-stat b{display:block;font-size:16px;color:var(--vf5e-accent-2);font-weight:700}
.vf5e-stat span{font-size:10.5px;color:var(--vf5e-muted)}

/* ---------- Category chips ---------- */
.vf5e-chips{
  display:flex;gap:8px;overflow-x:auto;padding:4px 2px 10px;
  -webkit-overflow-scrolling:touch;scrollbar-width:none;
}
.vf5e-chips::-webkit-scrollbar{display:none}
.vf5e-chip{
  flex:0 0 auto;padding:8px 14px;border-radius:20px;font-size:13px;
  background:rgba(245,222,179,.05);border:1px solid var(--vf5e-line);
  color:var(--vf5e-ink-dim);cursor:pointer;font-weight:600;
  transition:background .2s,color .2s,border-color .2s;
}
.vf5e-chip.on,.vf5e-chip:hover{
  background:linear-gradient(135deg,#CD853F,#DEB887);color:#1a1208;border-color:transparent;
}

/* ---------- Game grid ---------- */
.vf5e-grid{
  display:grid;grid-template-columns:repeat(4,1fr);gap:9px;
}
@media(min-width:360px){.vf5e-grid{gap:10px}}
@media(min-width:400px){.vf5e-grid{grid-template-columns:repeat(5,1fr)}}
.vf5e-card{
  position:relative;cursor:pointer;text-align:center;
  background:linear-gradient(180deg,rgba(205,133,63,.06),rgba(0,0,0,.2));
  border:1px solid var(--vf5e-line);border-radius:12px;
  padding:6px 4px 8px;overflow:hidden;
  transition:transform .18s,box-shadow .2s,border-color .2s;
}
.vf5e-card:hover{transform:translateY(-2px);border-color:var(--vf5e-line-strong);box-shadow:var(--vf5e-glow)}
.vf5e-card-img{
  width:100%;aspect-ratio:1/1;object-fit:cover;border-radius:9px;
  background:#151015;
}
.vf5e-card-name{
  font-size:10.5px;line-height:1.25;margin-top:5px;color:var(--vf5e-ink-dim);
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;
  min-height:26px;
}
.vf5e-card-hot{
  position:absolute;top:5px;left:5px;font-size:8.5px;font-weight:700;
  background:linear-gradient(135deg,#e0533d,#CD853F);color:#fff;padding:2px 6px;border-radius:6px;
}

/* ---------- Features / info blocks ---------- */
.vf5e-feat-grid{
  display:grid;grid-template-columns:repeat(2,1fr);gap:10px;
}
.vf5e-feat{
  background:linear-gradient(180deg,rgba(205,133,63,.08),rgba(0,0,0,.15));
  border:1px solid var(--vf5e-line);border-radius:12px;padding:14px 12px;
}
.vf5e-feat-ico{
  width:38px;height:38px;border-radius:10px;display:flex;align-items:center;justify-content:center;
  font-size:20px;background:rgba(205,133,63,.18);color:var(--vf5e-accent-2);margin-bottom:8px;
}
.vf5e-feat h3{margin:0 0 5px;font-size:14px;color:var(--vf5e-ink)}
.vf5e-feat p{margin:0;font-size:12.5px;color:var(--vf5e-ink-dim);line-height:1.55}

/* ---------- Article / SEO text ---------- */
.vf5e-article{
  background:linear-gradient(180deg,rgba(245,222,179,.04),transparent);
  border:1px solid var(--vf5e-line);border-radius:14px;padding:16px 15px;
}
.vf5e-article h1{font-size:22px;line-height:1.3;margin:0 0 10px;color:var(--vf5e-ink)}
.vf5e-article h1 b{color:var(--vf5e-accent-2)}
.vf5e-article h2{font-size:16px;margin:18px 0 8px;color:var(--vf5e-ink);padding-left:12px;border-left:3px solid var(--vf5e-accent)}
.vf5e-article p{margin:0 0 10px;color:var(--vf5e-ink-dim);font-size:13.5px}
.vf5e-article ul{margin:0 0 10px;padding-left:18px;color:var(--vf5e-ink-dim);font-size:13px}
.vf5e-article li{margin-bottom:5px}
.vf5e-article a{color:var(--vf5e-accent-2);text-decoration:underline;text-underline-offset:2px}

/* ---------- Extended footer (home only) ---------- */
.vf5e-ext{
  display:grid;grid-template-columns:1fr 1fr;gap:14px;
  background:linear-gradient(180deg,rgba(205,133,63,.06),transparent);
  border:1px solid var(--vf5e-line);border-radius:14px;padding:16px 14px;
}
.vf5e-ext-col h4{
  font-size:12px;letter-spacing:1.5px;text-transform:uppercase;color:var(--vf5e-accent-2);margin:0 0 8px;
}
.vf5e-ext-col p{font-size:12.5px;color:var(--vf5e-ink-dim);margin:0 0 10px;line-height:1.55}
.vf5e-ext-col ul{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:5px}
.vf5e-ext-col li a,.vf5e-ext-col a{
  display:inline-flex;align-items:center;gap:6px;font-size:12.5px;color:var(--vf5e-ink-dim);
}
.vf5e-ext-col a:hover{color:var(--vf5e-accent-2)}
.vf5e-ext-promo{
  grid-column:1/-1;display:flex;flex-wrap:wrap;gap:7px;padding-top:10px;border-top:1px dashed var(--vf5e-line);
}
.vf5e-ext-promo .vf5e-pill{
  font-size:12px;padding:7px 12px;border-radius:18px;cursor:pointer;font-weight:600;
  background:rgba(205,133,63,.14);color:var(--vf5e-accent-2);border:1px solid rgba(205,133,63,.3);
  transition:background .2s;
}
.vf5e-ext-promo .vf5e-pill:hover{background:linear-gradient(135deg,#CD853F,#DEB887);color:#1a1208}
.vf5e-ext-disclaimer{
  grid-column:1/-1;font-size:11px;color:var(--vf5e-muted);margin-top:6px;line-height:1.55;
}

/* ---------- Footer copyright ---------- */
.vf5e-footer{
  text-align:center;font-size:11.5px;color:var(--vf5e-muted);
  padding:14px 14px calc(var(--vf5e-bottom-h) + 14px);
  border-top:1px solid var(--vf5e-line);
}

/* ---------- Mobile bottom nav (compact icon rack) ---------- */
.vf5e-bottom{
  position:fixed;left:50%;transform:translateX(-50%);
  bottom:0;width:100%;max-width:var(--vf5e-max);z-index:70;
  height:var(--vf5e-bottom-h);
  display:grid;grid-template-columns:repeat(5,1fr);
  background:linear-gradient(180deg,rgba(15,12,15,.96),rgba(8,6,8,.99));
  backdrop-filter:blur(10px);
  border-top:1px solid var(--vf5e-line);
  padding:4px 2px;
}
.vf5e-bottom-item{
  display:flex;flex-direction:column;align-items:center;justify-content:center;
  gap:2px;color:var(--vf5e-muted);cursor:pointer;text-decoration:none;
  font-size:10px;font-weight:600;
  border-radius:10px;margin:0 3px;position:relative;
  transition:color .2s,background .2s;
  min-height:44px;
}
.vf5e-bottom-item svg{width:21px;height:21px}
.vf5e-bottom-item span{line-height:1}
.vf5e-bottom-item:hover{color:var(--vf5e-ink-dim)}
.vf5e-bottom-item.on{
  color:var(--vf5e-accent-2);
  background:rgba(205,133,63,.16);
}
.vf5e-bottom-item.on:before{
  content:"";position:absolute;top:3px;left:50%;transform:translateX(-50%);
  width:22px;height:3px;border-radius:3px;background:var(--vf5e-accent);
  box-shadow:var(--vf5e-glow);
}

/* ---------- Utility ---------- */
.vf5e-hide{display:none !important}
.vf5e-pb-safe{padding-bottom:calc(var(--vf5e-bottom-h) + 24px) !important}
