/* ============================================================
   xe66 game - layout-655411.css
   Mobile-first gaming site styles (320-430px canvas).
   All custom classes use the s655- prefix.
   Palette: #2C3E50 (dark base) | #7B68EE (accent) | #F5F5F5 (light text)
   ============================================================ */

/* ---- Design tokens ---- */
:root{
  --s655-bg:#2C3E50;
  --s655-bg-2:#233341;
  --s655-bg-3:#1c2a35;
  --s655-card:#2a3a4b;
  --s655-accent:#7B68EE;
  --s655-accent-2:#9b8af5;
  --s655-accent-soft:rgba(123,104,238,0.16);
  --s655-text:#F5F5F5;
  --s655-text-2:#c7ced8;
  --s655-muted:#8a95a3;
  --s655-line:rgba(245,245,245,0.10);
  --s655-warn:#ffd479;
  --s655-good:#54d98c;
  --s655-radius:14px;
  --s655-radius-sm:10px;
  --s655-shadow:0 10px 26px rgba(0,0,0,0.35);
  --s655-header-h:60px;
  --s655-bottom-h:68px;
  --s655-maxw:480px;
}

/* ---- Reset ---- */
*{box-sizing:border-box;margin:0;padding:0;-webkit-tap-highlight-color:transparent;}
html,body{background:var(--s655-bg);color:var(--s655-text);}
body{
  font-family:"Hind Siliguri","Noto Sans Bengali","Segoe UI",Roboto,Arial,sans-serif;
  font-size:15px;line-height:1.62;
  min-height:100vh;
  overflow-x:hidden;
  position:relative;
}
img{max-width:100%;display:block;}
a{color:var(--s655-accent-2);text-decoration:none;}
button{font-family:inherit;cursor:pointer;border:none;background:none;color:inherit;}
ul,ol{list-style:none;}

/* ---- Mobile canvas frame ---- */
.s655-shell{
  width:100%;
  max-width:var(--s655-maxw);
  margin:0 auto;
  min-height:100vh;
  background:linear-gradient(180deg,#2C3E50 0%,#233341 60%,#1c2a35 100%);
  position:relative;
  box-shadow:0 0 60px rgba(0,0,0,0.4);
}
@media(min-width:481px){
  body{background:#0e1620;}
  .s655-shell{border-left:1px solid var(--s655-line);border-right:1px solid var(--s655-line);}
}

/* ============ HEADER (asymmetric brand head) ============ */
.s655-header{
  position:sticky;top:0;z-index:60;
  height:var(--s655-header-h);
  background:linear-gradient(90deg,rgba(123,104,238,0.20) 0%,rgba(44,62,80,0.96) 55%);
  backdrop-filter:blur(10px);
  border-bottom:1px solid var(--s655-line);
  display:flex;align-items:center;gap:8px;
  padding:0 12px;
}
.s655-brand{
  display:flex;align-items:center;gap:9px;flex:1;min-width:0;
}
.s655-brand-logo{
  width:38px;height:38px;border-radius:9px;object-fit:cover;
  border:1px solid rgba(245,245,245,0.18);
  box-shadow:0 4px 10px rgba(0,0,0,0.35);
  flex-shrink:0;
}
.s655-brand-meta{display:flex;flex-direction:column;line-height:1.1;min-width:0;}
.s655-brand-name{
  font-weight:800;font-size:17px;letter-spacing:.3px;color:#fff;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
}
.s655-brand-tag{font-size:10.5px;color:var(--s655-accent-2);font-weight:600;}

.s655-header-actions{display:flex;align-items:center;gap:6px;}
.s655-btn{
  display:inline-flex;align-items:center;justify-content:center;gap:6px;
  min-height:38px;padding:0 14px;border-radius:20px;font-weight:700;font-size:13px;
  transition:transform .12s ease,box-shadow .2s ease,background .2s ease;
}
.s655-btn:active{transform:scale(.94);}
.s655-btn-primary{
  background:linear-gradient(135deg,#7B68EE 0%,#9b8af5 100%);
  color:#fff;box-shadow:0 6px 16px rgba(123,104,238,0.42);
}
.s655-btn-ghost{
  background:rgba(245,245,245,0.07);color:var(--s655-text);
  border:1px solid var(--s655-line);
}
.s655-menu-btn{
  width:40px;height:40px;border-radius:10px;
  display:flex;align-items:center;justify-content:center;
  background:rgba(245,245,245,0.07);border:1px solid var(--s655-line);
}
.s655-menu-btn span{
  display:block;width:18px;height:2px;background:#fff;border-radius:2px;
  position:relative;
}
.s655-menu-btn span:before,.s655-menu-btn span:after{
  content:"";position:absolute;left:0;width:18px;height:2px;background:#fff;border-radius:2px;
}
.s655-menu-btn span:before{top:-6px;}
.s655-menu-btn span:after{top:6px;}

/* ============ Side drawer menu ============ */
.s655-drawer-mask{
  position:fixed;inset:0;background:rgba(10,16,22,0.6);backdrop-filter:blur(3px);
  z-index:90;opacity:0;visibility:hidden;transition:opacity .25s ease,visibility .25s;
}
.s655-drawer-mask.s655-open{opacity:1;visibility:visible;}
.s655-drawer{
  position:fixed;top:0;right:0;height:100%;width:82%;max-width:340px;z-index:100;
  background:linear-gradient(180deg,#233341,#1c2a35);
  transform:translateX(105%);transition:transform .28s cubic-bezier(.2,.7,.2,1);
  box-shadow:-16px 0 40px rgba(0,0,0,0.5);
  display:flex;flex-direction:column;
}
.s655-drawer.s655-open{transform:translateX(0);}
.s655-drawer-head{
  padding:18px 18px 14px;border-bottom:1px solid var(--s655-line);
  display:flex;align-items:center;gap:10px;
}
.s655-drawer-head img{width:36px;height:36px;border-radius:9px;}
.s655-drawer-title{font-weight:800;font-size:16px;color:#fff;}
.s655-drawer-sub{font-size:11px;color:var(--s655-accent-2);}
.s655-drawer-close{
  margin-left:auto;width:34px;height:34px;border-radius:8px;
  background:rgba(245,245,245,0.08);font-size:18px;color:#fff;line-height:1;
}
.s655-drawer-nav{padding:10px 12px;overflow-y:auto;flex:1;}
.s655-drawer-section{margin:10px 6px 16px;}
.s655-drawer-section h4{
  font-size:11px;letter-spacing:1.2px;text-transform:uppercase;color:var(--s655-muted);
  margin:6px 8px 8px;font-weight:700;
}
.s655-drawer-link{
  display:flex;align-items:center;justify-content:space-between;gap:8px;
  padding:12px 12px;border-radius:10px;color:var(--s655-text);
  font-size:14.5px;font-weight:600;
  transition:background .15s ease,transform .12s ease;
}
.s655-drawer-link:active{transform:scale(.97);}
.s655-drawer-link:hover{background:rgba(123,104,238,0.14);}
.s655-drawer-link small{color:var(--s655-muted);font-weight:500;font-size:11px;}
.s655-drawer-cta{
  margin:14px;padding:14px;border-radius:14px;text-align:center;
  background:linear-gradient(135deg,#7B68EE,#9b8af5);color:#fff;font-weight:800;
  box-shadow:0 10px 22px rgba(123,104,238,0.4);
}

/* ============ Main body ============ */
.s655-main{padding:14px 12px 24px;}
.s655-main-bottom-pad{padding-bottom:calc(var(--s655-bottom-h) + 24px);}

/* ============ Hero carousel ============ */
.s655-hero{
  position:relative;border-radius:var(--s655-radius);overflow:hidden;
  box-shadow:var(--s655-shadow);margin-bottom:16px;
}
.s655-hero-track{display:flex;transition:transform .42s cubic-bezier(.2,.7,.2,1);}
.s655-hero-slide{
  flex:0 0 100%;position:relative;cursor:pointer;
}
.s655-hero-slide img{width:100%;height:188px;object-fit:cover;}
.s655-hero-overlay{
  position:absolute;left:0;right:0;bottom:0;
  padding:14px 14px 12px;
  background:linear-gradient(0deg,rgba(10,16,22,0.86) 20%,rgba(10,16,22,0) 100%);
}
.s655-hero-title{font-size:16px;font-weight:800;color:#fff;line-height:1.3;}
.s655-hero-text{font-size:12px;color:var(--s655-text-2);margin-top:3px;}
.s655-hero-cta{
  display:inline-flex;align-items:center;gap:6px;margin-top:8px;
  background:linear-gradient(135deg,#7B68EE,#9b8af5);color:#fff;
  padding:8px 14px;border-radius:18px;font-size:12.5px;font-weight:800;
  box-shadow:0 6px 14px rgba(123,104,238,0.45);
}
.s655-hero-dots{
  position:absolute;bottom:8px;left:50%;transform:translateX(-50%);
  display:flex;gap:6px;z-index:2;
}
.s655-hero-dot{
  width:7px;height:7px;border-radius:50%;background:rgba(245,245,245,0.45);
  transition:all .2s ease;
}
.s655-hero-dot.s655-active{background:#7B68EE;width:18px;border-radius:4px;}

/* ============ Quick action strip ============ */
.s655-quick{
  display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin-bottom:18px;
}
.s655-quick-item{
  background:rgba(245,245,245,0.05);border:1px solid var(--s655-line);
  border-radius:12px;padding:10px 4px;text-align:center;
  transition:transform .12s ease,background .2s;
}
.s655-quick-item:active{transform:scale(.93);}
.s655-quick-ic{font-size:20px;line-height:1;margin-bottom:4px;}
.s655-quick-label{font-size:11px;font-weight:700;color:var(--s655-text-2);}

/* ============ Section heading ============ */
.s655-sec-head{
  display:flex;align-items:center;gap:10px;margin:18px 0 12px;
}
.s655-sec-head h2{
  font-size:18px;font-weight:800;color:#fff;letter-spacing:.2px;
}
.s655-sec-head .s655-bar{
  width:4px;height:18px;border-radius:3px;
  background:linear-gradient(180deg,#7B68EE,#9b8af5);
}
.s655-sec-head .s655-more{
  margin-left:auto;font-size:12px;font-weight:700;color:var(--s655-accent-2);
}
.s655-sec-desc{font-size:12.5px;color:var(--s655-text-2);margin:-6px 0 12px;line-height:1.55;}

/* ============ Category pills (visual anchor only) ============ */
.s655-cats{display:flex;gap:7px;overflow-x:auto;padding-bottom:6px;margin-bottom:6px;-webkit-overflow-scrolling:touch;}
.s655-cats::-webkit-scrollbar{display:none;}
.s655-cat-pill{
  flex-shrink:0;padding:7px 13px;border-radius:16px;font-size:12px;font-weight:700;
  background:rgba(245,245,245,0.06);color:var(--s655-text-2);
  border:1px solid var(--s655-line);white-space:nowrap;
}

/* ============ Game grid ============ */
.s655-game-section{margin-bottom:24px;}
.s655-game-grid{
  display:grid;grid-template-columns:repeat(4,1fr);gap:9px;
}
@media(min-width:360px){.s655-game-grid{gap:10px;}}
@media(min-width:400px){.s655-game-grid{grid-template-columns:repeat(5,1fr);}}
.s655-game-card{
  display:flex;flex-direction:column;align-items:center;
  background:var(--s655-card);border:1px solid var(--s655-line);
  border-radius:12px;padding:6px 4px 8px;text-align:center;cursor:pointer;
  transition:transform .12s ease,box-shadow .2s,border-color .2s;
}
.s655-game-card:active{transform:scale(.93);border-color:rgba(123,104,238,0.5);}
.s655-game-thumb{
  width:100%;aspect-ratio:1/1;border-radius:9px;object-fit:cover;
  background:rgba(255,255,255,0.04);
  border:1px solid rgba(245,245,245,0.08);
}
.s655-game-name{
  margin-top:5px;font-size:10.5px;font-weight:700;color:var(--s655-text-2);
  line-height:1.25;height:26px;overflow:hidden;
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;
}

/* ============ Info / content blocks ============ */
.s655-block{
  background:rgba(245,245,245,0.04);border:1px solid var(--s655-line);
  border-radius:var(--s655-radius);padding:16px;margin-bottom:16px;
}
.s655-block h3{font-size:15.5px;font-weight:800;color:#fff;margin-bottom:8px;}
.s655-block p{font-size:13.5px;color:var(--s655-text-2);margin-bottom:8px;}
.s655-block p:last-child{margin-bottom:0;}
.s655-block a.s655-inline-link{color:var(--s655-accent-2);font-weight:700;border-bottom:1px dashed rgba(155,138,245,0.5);}

/* Two-column compact cards */
.s655-cols-2{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-bottom:16px;}
.s655-mini-card{
  background:rgba(245,245,245,0.05);border:1px solid var(--s655-line);
  border-radius:12px;padding:12px;
}
.s655-mini-card .s655-ic{font-size:22px;margin-bottom:6px;}
.s655-mini-card h4{font-size:13.5px;font-weight:800;color:#fff;margin-bottom:4px;}
.s655-mini-card p{font-size:11.8px;color:var(--s655-muted);line-height:1.45;}

/* Testimonials */
.s655-testi{
  background:rgba(245,245,245,0.05);border-left:3px solid var(--s655-accent);
  border-radius:10px;padding:12px;margin-bottom:10px;
}
.s655-testi-quote{font-size:13px;color:var(--s655-text);font-style:italic;line-height:1.55;}
.s655-testi-author{font-size:11.5px;color:var(--s655-accent-2);font-weight:700;margin-top:6px;}

/* Steps */
.s655-step{
  display:flex;gap:10px;margin-bottom:10px;align-items:flex-start;
}
.s655-step-num{
  flex-shrink:0;width:26px;height:26px;border-radius:50%;
  background:linear-gradient(135deg,#7B68EE,#9b8af5);color:#fff;
  font-weight:800;font-size:13px;display:flex;align-items:center;justify-content:center;
}
.s655-step-body{font-size:13px;color:var(--s655-text-2);}
.s655-step-body b{color:#fff;}

/* App download block */
.s655-app-card{
  background:linear-gradient(135deg,rgba(123,104,238,0.22),rgba(44,62,80,0.5));
  border:1px solid rgba(123,104,238,0.4);border-radius:16px;padding:16px;margin-bottom:16px;
}
.s655-app-card h3{font-size:16px;font-weight:800;color:#fff;margin-bottom:6px;}
.s655-app-card p{font-size:12.5px;color:var(--s655-text-2);margin-bottom:12px;}
.s655-app-btns{display:flex;gap:8px;flex-wrap:wrap;}
.s655-app-btn{
  flex:1;min-width:130px;padding:10px;border-radius:10px;text-align:center;
  background:rgba(245,245,245,0.08);border:1px solid var(--s655-line);
  font-weight:700;font-size:12.5px;color:#fff;
}

/* ============ Extended footer (homepage only) ============ */
.s655-ext-footer{
  margin-top:8px;padding-top:14px;border-top:1px solid var(--s655-line);
}
.s655-ext-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-bottom:14px;}
.s655-ext-card{
  background:rgba(245,245,245,0.04);border:1px solid var(--s655-line);
  border-radius:12px;padding:12px;
}
.s655-ext-card h4{
  font-size:12px;letter-spacing:.8px;text-transform:uppercase;
  color:var(--s655-accent-2);margin-bottom:8px;font-weight:800;
}
.s655-ext-card a{
  display:flex;align-items:center;gap:8px;padding:7px 0;font-size:13px;color:var(--s655-text-2);
  border-bottom:1px solid rgba(245,245,245,0.05);
}
.s655-ext-card a:last-child{border-bottom:none;}
.s655-ext-card a .s655-ext-ic{width:18px;text-align:center;color:var(--s655-accent);}
.s655-brand-intro{
  background:rgba(123,104,238,0.10);border:1px solid rgba(123,104,238,0.3);
  border-radius:12px;padding:14px;margin-bottom:14px;
}
.s655-brand-intro h4{font-size:14px;font-weight:800;color:#fff;margin-bottom:6px;}
.s655-brand-intro p{font-size:12.5px;color:var(--s655-text-2);line-height:1.55;}
.s655-promo-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:8px;margin-bottom:14px;}
.s655-promo-tile{
  background:linear-gradient(135deg,rgba(123,104,238,0.25),rgba(44,62,80,0.5));
  border:1px solid rgba(123,104,238,0.4);border-radius:10px;padding:11px;
  font-size:12px;font-weight:700;color:#fff;text-align:center;min-height:48px;
  display:flex;flex-direction:column;justify-content:center;
  transition:transform .12s;
}
.s655-promo-tile:active{transform:scale(.95);}
.s655-promo-tile .s655-pt-ic{font-size:16px;margin-bottom:3px;}
.s655-disclaimer{
  font-size:11px;color:var(--s655-muted);line-height:1.55;padding:12px;
  background:rgba(0,0,0,0.18);border-radius:10px;
}

/* ============ Footer (universal) ============ */
.s655-footer{
  padding:18px 12px calc(var(--s655-bottom-h) + 18px);
  text-align:center;border-top:1px solid var(--s655-line);
  background:rgba(10,16,22,0.5);
}
.s655-footer-brand{
  display:flex;align-items:center;justify-content:center;gap:8px;margin-bottom:8px;
}
.s655-footer-brand img{width:26px;height:26px;border-radius:6px;}
.s655-footer-brand span{font-weight:800;font-size:14px;color:#fff;}
.s655-footer p{font-size:11.5px;color:var(--s655-muted);line-height:1.55;}
.s655-footer-nav{
  display:flex;flex-wrap:wrap;justify-content:center;gap:6px 12px;margin:8px 0 10px;
}
.s655-footer-nav a{font-size:11.5px;color:var(--s655-text-2);}

/* ============ Bottom nav (raised center) ============ */
.s655-bottom{
  position:fixed;left:50%;transform:translateX(-50%);
  bottom:0;width:100%;max-width:var(--s655-maxw);
  height:var(--s655-bottom-h);z-index:70;
  background:rgba(28,42,53,0.96);backdrop-filter:blur(12px);
  border-top:1px solid var(--s655-line);
  display:flex;justify-content:space-around;align-items:flex-end;
  padding:0 4px 8px;
}
.s655-bottom-item{
  flex:1;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;
  height:100%;gap:3px;color:var(--s655-muted);position:relative;
  font-size:10px;font-weight:700;padding-top:6px;
  transition:transform .12s ease,color .2s;
}
.s655-bottom-item:active{transform:scale(.9);}
.s655-bottom-item.s655-active{color:#fff;}
.s655-bottom-item.s655-active:after{
  content:"";position:absolute;top:0;left:50%;transform:translateX(-50%);
  width:24px;height:3px;border-radius:2px;background:linear-gradient(90deg,#7B68EE,#9b8af5);
}
.s655-bottom-ic-wrap{
  width:34px;height:34px;display:flex;align-items:center;justify-content:center;
  border-radius:10px;font-size:18px;line-height:1;
}
.s655-bottom-item.s655-active .s655-bottom-ic-wrap{background:rgba(123,104,238,0.22);}
/* raised center promo */
.s655-bottom-item.s655-center{transform:translateY(-12px);}
.s655-bottom-item.s655-center .s655-bottom-ic-wrap{
  width:48px;height:48px;border-radius:50%;
  background:linear-gradient(135deg,#7B68EE,#9b8af5);
  color:#fff;box-shadow:0 8px 18px rgba(123,104,238,0.5);
  border:3px solid #1c2a35;
}
.s655-bottom-item.s655-center:active{transform:translateY(-12px) scale(.94);}
.s655-bottom-item.s655-center.s655-active:after{display:none;}
.s655-bottom-label{font-size:10px;letter-spacing:.2px;}

/* Inline emphasis helpers */
.s655-kw{color:#fff;font-weight:700;}
.s655-pill{
  display:inline-block;padding:3px 9px;border-radius:12px;font-size:11px;font-weight:700;
  background:rgba(123,104,238,0.18);color:var(--s655-accent-2);margin-right:5px;
}
.s655-note{font-size:12px;color:var(--s655-muted);font-style:italic;}

/* Utility */
.s655-container{padding:0 12px;}
.s655-divider{height:1px;background:var(--s655-line);margin:14px 0;}
.s655-hide{display:none !important;}

/* Focus visibility */
a:focus-visible,button:focus-visible{
  outline:2px solid var(--s655-accent);outline-offset:2px;border-radius:6px;
}
