/* tk777 base styles - prefix g815- | English comments only */
/* ===== Design tokens ===== */
:root{
  --g815-bg:#2b2b2b;
  --g815-bg-2:#333333;
  --g815-bg-3:#3c3c3c;
  --g815-surface:#404040;
  --g815-line:rgba(255,250,205,.14);
  --g815-text:#FFFACD;
  --g815-text-soft:#e9e3bf;
  --g815-muted:#b9b394;
  --g815-gold:#FFD66b;
  --g815-gold-2:#f4c659;
  --g815-red:#e0564f;
  --g815-green:#5fbb6a;
  --g815-radius:14px;
  --g815-radius-sm:10px;
  --g815-shadow:0 8px 22px rgba(0,0,0,.38);
  --g815-max:430px;
  --g815-header-h:120px;
  --g815-bottom-h:64px;
  --g815-press:translateY(1px);
}

*{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(--g815-bg);
  color:var(--g815-text);
  line-height:1.6;
  font-size:15px;
  min-height:100vh;
  overflow-x:hidden;
}
img{max-width:100%;display:block}
a{color:var(--g815-gold);text-decoration:none}
a:focus-visible{outline:2px solid var(--g815-gold);outline-offset:2px;border-radius:4px}
h1,h2,h3{margin:0 0 8px;line-height:1.35;font-weight:700;letter-spacing:.2px}
h1{font-size:22px}
h2{font-size:19px}
h3{font-size:16px}
p{margin:0 0 12px}
ul,ol{margin:0 0 12px;padding-left:20px}
li{margin-bottom:4px}

/* ===== Layout frame (mobile canvas centered on wide screens) ===== */
.g815-shell{
  max-width:var(--g815-max);
  margin:0 auto;
  background:linear-gradient(180deg,#2f2f2f 0%,#333 12%,#333 100%);
  min-height:100vh;
  position:relative;
  box-shadow:0 0 40px rgba(0,0,0,.4);
}
.g815-main{
  padding:calc(var(--g815-header-h) + 10px) 12px calc(var(--g815-bottom-h) + 28px);
}

/* ===== Top header (two rows: brand + actions) ===== */
.g815-header{
  position:fixed;top:0;left:0;right:0;z-index:60;
  max-width:var(--g815-max);margin:0 auto;
  background:linear-gradient(180deg,#1f1f1f 0%,#2c2c2c 100%);
  border-bottom:1px solid var(--g815-line);
  box-shadow:0 4px 14px rgba(0,0,0,.35);
}
.g815-head-row1{
  display:flex;align-items:center;justify-content:space-between;
  padding:8px 12px;gap:8px;
}
.g815-brand{display:flex;align-items:center;gap:9px;min-width:0}
.g815-brand-logo{
  width:38px;height:38px;border-radius:10px;
  background:radial-gradient(circle at 30% 25%,#fff4c4,#f5c64b 60%,#a87b1d);
  object-fit:cover;border:1px solid rgba(255,250,205,.25);
  flex-shrink:0;
}
.g815-brand-meta{display:flex;flex-direction:column;line-height:1.05;min-width:0}
.g815-brand-name{
  font-weight:800;font-size:19px;color:var(--g815-gold);
  letter-spacing:.4px;white-space:nowrap;
}
.g815-brand-tag{font-size:10.5px;color:var(--g815-muted);white-space:nowrap}

.g815-head-actions{display:flex;align-items:center;gap:6px}
.g815-menu-btn{
  width:38px;height:38px;border-radius:10px;border:1px solid var(--g815-line);
  background:var(--g815-surface);color:var(--g815-text);
  display:flex;align-items:center;justify-content:center;cursor:pointer;
  transition:transform .12s ease,background .2s;
}
.g815-menu-btn:active{transform:var(--g815-press);background:#4a4a4a}
.g815-head-row2{display:flex;gap:8px;padding:6px 12px 9px}
.g815-btn{
  flex:1;border:none;border-radius:11px;padding:11px 14px;font-size:14.5px;
  font-weight:700;font-family:inherit;cursor:pointer;
  display:flex;align-items:center;justify-content:center;gap:6px;
  transition:transform .12s ease,filter .2s;min-height:44px;
}
.g815-btn:active{transform:var(--g815-press)}
.g815-btn--primary{
  background:linear-gradient(135deg,#f5c451 0%,#ffae3b 100%);
  color:#2b1a02;box-shadow:0 4px 12px rgba(245,196,81,.3);
}
.g815-btn--ghost{
  background:transparent;color:var(--g815-text);
  border:1.5px solid var(--g815-gold);
}
.g815-btn--ghost:active{background:rgba(255,214,107,.1)}

/* ===== Drawer menu ===== */
.g815-drawer-mask{
  position:fixed;inset:0;z-index:70;background:rgba(0,0,0,.55);
  opacity:0;visibility:hidden;transition:opacity .25s;
}
.g815-drawer-mask.g815-is-open{opacity:1;visibility:visible}
.g815-drawer{
  position:fixed;top:0;right:0;z-index:71;
  height:100%;width:82%;max-width:330px;
  background:linear-gradient(180deg,#262626,#2f2f2f);
  transform:translateX(105%);transition:transform .28s ease;
  border-left:1px solid var(--g815-line);box-shadow:-10px 0 30px rgba(0,0,0,.5);
  overflow-y:auto;padding:16px 14px 30px;
}
.g815-drawer.g815-is-open{transform:translateX(0)}
.g815-drawer-head{display:flex;align-items:center;gap:10px;margin-bottom:14px}
.g815-drawer-close{
  margin-left:auto;width:34px;height:34px;border-radius:9px;
  background:var(--g815-surface);border:1px solid var(--g815-line);
  color:var(--g815-text);font-size:18px;cursor:pointer;
}
.g815-drawer-title{font-size:16px;color:var(--g815-gold);font-weight:700}
.g815-drawer-section{margin-bottom:18px}
.g815-drawer-label{
  font-size:11px;text-transform:uppercase;letter-spacing:.8px;
  color:var(--g815-muted);margin:0 4px 6px;
}
.g815-drawer-link{
  display:flex;align-items:center;gap:10px;
  padding:11px 12px;border-radius:10px;margin-bottom:3px;
  color:var(--g815-text-soft);font-weight:600;font-size:14px;
  border:1px solid transparent;transition:background .18s,border-color .18s;
}
.g815-drawer-link:active{transform:var(--g815-press)}
.g815-drawer-link:hover{background:rgba(255,214,107,.07);border-color:var(--g815-line)}
.g815-drawer-link .g815-ic{width:20px;height:20px;color:var(--g815-gold);flex-shrink:0}
.g815-drawer-promo{
  background:linear-gradient(135deg,#f5c451,#ffae3b);color:#2b1a02;
  justify-content:center;font-weight:800;border-radius:12px;padding:13px;
}

/* ===== Hero carousel ===== */
.g815-hero{position:relative;border-radius:18px;overflow:hidden;margin-bottom:16px;box-shadow:var(--g815-shadow)}
.g815-hero-track{display:flex;transition:transform .42s ease;will-change:transform}
.g815-hero-slide{flex:0 0 100%;position:relative;cursor:pointer}
.g815-hero-slide img{width:100%;height:180px;object-fit:cover;display:block}
.g815-hero-cap{
  position:absolute;inset:auto 0 0 0;padding:14px 14px 16px;
  background:linear-gradient(0deg,rgba(0,0,0,.78) 10%,rgba(0,0,0,.15) 80%,transparent);
}
.g815-hero-cap h2{font-size:17px;color:#fff;margin:0 0 4px}
.g815-hero-cap p{font-size:12.5px;color:#f3edcd;margin:0 0 8px;max-width:90%}
.g815-hero-cta{
  display:inline-block;background:linear-gradient(135deg,#f5c451,#ffae3b);
  color:#2b1a02;padding:7px 14px;border-radius:9px;font-size:13px;font-weight:700;
}
.g815-hero-dots{position:absolute;bottom:7px;right:12px;display:flex;gap:5px;z-index:2}
.g815-hero-dot{width:7px;height:7px;border-radius:50%;background:rgba(255,250,205,.4);transition:.2s}
.g815-hero-dot.g815-active{background:var(--g815-gold);width:18px;border-radius:4px}

/* ===== Sections ===== */
.g815-section{margin-bottom:22px}
.g815-sec-head{
  display:flex;align-items:center;justify-content:space-between;
  margin-bottom:10px;padding:0 2px;
}
.g815-sec-title{
  font-size:17px;font-weight:700;color:var(--g815-text);
  display:flex;align-items:center;gap:8px;margin:0;
}
.g815-sec-title::before{
  content:"";width:4px;height:18px;border-radius:2px;
  background:linear-gradient(180deg,#f5c451,#ffae3b);
}
.g815-sec-more{font-size:12.5px;color:var(--g815-gold);font-weight:600}

/* ===== Game grids ===== */
.g815-grid{display:grid;gap:9px}
.g815-grid--4{grid-template-columns:repeat(4,1fr)}
.g815-grid--5{grid-template-columns:repeat(4,1fr)}
@media(min-width:360px){.g815-grid--5{grid-template-columns:repeat(5,1fr)}}

.g815-cat-head{
  display:flex;align-items:center;gap:8px;
  margin:18px 0 10px;padding:8px 12px;
  background:linear-gradient(90deg,rgba(245,196,81,.14),transparent);
  border-left:3px solid var(--g815-gold);border-radius:0 10px 10px 0;
}
.g815-cat-head h3{margin:0;font-size:15px;color:var(--g815-gold)}
.g815-cat-head .g815-cat-count{
  margin-left:auto;font-size:11px;color:var(--g815-muted);
}

.g815-card{
  background:var(--g815-surface);border:1px solid var(--g815-line);
  border-radius:var(--g815-radius-sm);padding:6px;cursor:pointer;
  transition:transform .14s,box-shadow .2s,border-color .2s;
  display:flex;flex-direction:column;align-items:center;text-align:center;
  position:relative;overflow:hidden;
}
.g815-card:active{transform:var(--g815-press);border-color:var(--g815-gold)}
.g815-card-img{
  width:100%;aspect-ratio:1/1;object-fit:cover;border-radius:7px;
  background:#222;margin-bottom:5px;
}
.g815-card-name{
  font-size:11px;color:var(--g815-text-soft);font-weight:600;
  line-height:1.25;height:28px;overflow:hidden;
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;
}
.g815-card-hot{
  position:absolute;top:4px;left:4px;background:var(--g815-red);
  color:#fff;font-size:9px;font-weight:700;padding:2px 5px;border-radius:5px;
}

/* ===== Feature / Highlights grid ===== */
.g815-feat-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:10px}
.g815-feat{
  background:var(--g815-surface);border:1px solid var(--g815-line);
  border-radius:var(--g815-radius-sm);padding:12px;
}
.g815-feat-ic{
  width:34px;height:34px;border-radius:9px;display:flex;
  align-items:center;justify-content:center;margin-bottom:8px;
  background:rgba(245,196,81,.15);color:var(--g815-gold);
}
.g815-feat h4{margin:0 0 4px;font-size:13.5px;color:var(--g815-text)}
.g815-feat p{margin:0;font-size:12px;color:var(--g815-muted);line-height:1.5}

/* ===== CTA banner ===== */
.g815-cta{
  background:linear-gradient(135deg,#3a2e10 0%,#5a4218 60%,#7c5a1e 100%);
  border:1px solid var(--g815-line);border-radius:var(--g815-radius);
  padding:16px;margin:22px 0;text-align:center;
}
.g815-cta h3{color:var(--g815-gold);font-size:18px;margin-bottom:6px}
.g815-cta p{color:var(--g815-text-soft);font-size:13px;margin-bottom:12px}
.g815-cta .g815-btn{display:inline-flex;width:auto;padding:11px 26px}

/* ===== FAQ / Article ===== */
.g815-card-box{
  background:var(--g815-surface);border:1px solid var(--g815-line);
  border-radius:var(--g815-radius);padding:14px 16px;margin-bottom:12px;
}
.g815-faq{margin-bottom:8px;padding-bottom:10px;border-bottom:1px dashed var(--g815-line)}
.g815-faq:last-child{border-bottom:none;padding-bottom:0;margin-bottom:0}
.g815-faq h4{margin:0 0 5px;font-size:14px;color:var(--g815-gold);font-weight:700}
.g815-faq p{margin:0;font-size:13px;color:var(--g815-text-soft)}
.g815-prose p{font-size:13.5px;color:var(--g815-text-soft)}
.g815-prose a{text-decoration:underline;text-underline-offset:2px}

/* ===== Directory footer (home only) ===== */
.g815-directory{
  display:grid;grid-template-columns:1fr 1fr;gap:8px 14px;
  margin-top:8px;
}
.g815-directory a{
  color:var(--g815-text-soft);font-size:12.5px;
  padding:6px 0;border-bottom:1px solid var(--g815-line);
}
.g815-directory a:hover{color:var(--g815-gold)}
.g815-promo-row{
  display:grid;grid-template-columns:repeat(2,1fr);gap:8px;margin:10px 0;
}
.g815-promo-btn{
  background:var(--g815-surface);border:1px solid var(--g815-line);
  color:var(--g815-text);padding:9px;border-radius:9px;font-size:12px;
  font-weight:600;cursor:pointer;text-align:center;transition:transform .12s;
}
.g815-promo-btn:active{transform:var(--g815-press)}

/* ===== Footer ===== */
.g815-footer{
  border-top:1px solid var(--g815-line);
  padding:16px 14px calc(var(--g815-bottom-h) + 18px);
  background:#262626;
}
.g815-footer-brand{display:flex;align-items:center;gap:9px;margin-bottom:10px}
.g815-footer-brand img{width:32px;height:32px;border-radius:8px}
.g815-footer-brand strong{color:var(--g815-gold);font-size:15px}
.g815-footer p{font-size:11.5px;color:var(--g815-muted);line-height:1.6;margin-bottom:8px}
.g815-disclaimer{
  background:rgba(224,86,79,.08);border:1px solid rgba(224,86,79,.25);
  border-radius:9px;padding:9px 11px;font-size:11px;color:#e9b9b6;margin-top:10px;
}
.g815-copy{text-align:center;font-size:11px;color:var(--g815-muted);margin-top:12px;padding-top:10px;border-top:1px solid var(--g815-line)}

/* ===== Bottom nav ===== */
.g815-bottom{
  position:fixed;left:0;right:0;bottom:0;z-index:65;
  max-width:var(--g815-max);margin:0 auto;
  background:linear-gradient(180deg,#2a2a2a,#1b1b1b);
  border-top:1px solid var(--g815-line);
  display:flex;padding:5px 4px calc(env(safe-area-inset-bottom,0px) + 5px);
  box-shadow:0 -4px 14px rgba(0,0,0,.4);
}
.g815-bottom-item{
  flex:1;min-width:0;background:none;border:none;
  display:flex;flex-direction:column;align-items:center;justify-content:center;
  gap:3px;padding:6px 2px;color:var(--g815-muted);cursor:pointer;
  font-family:inherit;font-size:10px;font-weight:600;
  position:relative;transition:color .2s;
}
.g815-bottom-item .g815-bic{width:22px;height:22px;transition:transform .15s}
.g815-bottom-item:active{transform:var(--g815-press)}
.g815-bottom-item.g815-active{color:var(--g815-gold)}
.g815-bottom-item.g815-active::after{
  content:"";position:absolute;top:1px;width:22px;height:3px;
  background:var(--g815-gold);border-radius:2px;
}
.g815-bottom-item.g815-active .g815-bic{transform:scale(1.08)}

/* ===== Utility ===== */
.g815-ic{width:18px;height:18px;stroke:currentColor;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.g815-hidden{display:none !important}
.g815-text-center{text-align:center}
.g815-mt-12{margin-top:12px}

/* ===== Wide screen keeps mobile canvas centered ===== */
@media(min-width:480px){
  body{background:#1a1a1a}
  .g815-header,.g815-bottom,.g815-shell{box-shadow:0 0 30px rgba(0,0,0,.5)}
}
