/* ============================================================
   bj77f.click - Mobile-first gaming surface
   Prefix: surface55e65-
   Palette: #FFDFBA cream / #212F3D deep ink / #880E4F wine
   Direction: bold heading + light body, mid-small radii,
   floating image cards, compact metric rhythm, focus slide,
   segmented action buttons.
   ============================================================ */

/* ---------- Tokens ---------- */
:root{
  --surface55e65-ink:#212F3D;
  --surface55e65-ink-2:#16202B;
  --surface55e65-ink-3:#2A3B4C;
  --surface55e65-cream:#FFDFBA;
  --surface55e65-cream-soft:#F6D6AE;
  --surface55e65-wine:#880E4F;
  --surface55e65-wine-2:#A4125C;
  --surface55e65-wine-deep:#6E0B3F;
  --surface55e65-line:rgba(255,223,186,.16);
  --surface55e65-line-strong:rgba(255,223,186,.32);
  --surface55e65-mute:rgba(255,223,186,.72);
  --surface55e65-faint:rgba(255,223,186,.48);
  --surface55e65-shadow:0 10px 26px rgba(0,0,0,.38);
  --surface55e65-shadow-card:0 4px 12px rgba(0,0,0,.30);
  --surface55e65-radius-sm:8px;
  --surface55e65-radius-md:12px;
  --surface55e65-radius-lg:18px;
  --surface55e65-radius-pill:999px;
  --surface55e65-gap:14px;
  --surface55e65-top-h:60px;
  --surface55e65-rail-h:64px;
  --surface55e65-font:"Hind Siliguri","Noto Sans Bengali","Segoe UI",system-ui,-apple-system,sans-serif;
}

/* ---------- Reset ---------- */
*{box-sizing:border-box;margin:0;padding:0;-webkit-tap-highlight-color:transparent;}
html,body{overflow-x:hidden;}
html{scroll-behavior:smooth;}
body{
  font-family:var(--surface55e65-font);
  background:var(--surface55e65-ink);
  color:var(--surface55e65-cream);
  line-height:1.62;
  font-size:15px;
  min-height:100%;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}
img{display:block;max-width:100%;height:auto;}
a{color:var(--surface55e65-cream);text-decoration:none;}
button{font-family:inherit;cursor:pointer;border:0;background:none;color:inherit;}
ul,ol{list-style:none;}
h1,h2,h3,h4{line-height:1.28;font-weight:800;letter-spacing:.2px;}
:focus-visible{outline:3px solid var(--surface55e65-cream);outline-offset:2px;border-radius:6px;}

/* ---------- Phone canvas ---------- */
.surface55e65-canvas{
  position:relative;
  width:100%;
  max-width:430px;
  margin:0 auto;
  background:
    radial-gradient(120% 60% at 50% -8%,rgba(136,14,79,.32),transparent 60%),
    linear-gradient(180deg,#1B2733 0%,#212F3D 38%,#1A2531 100%);
  min-height:100vh;
  box-shadow:var(--surface55e65-shadow);
  overflow:hidden;
}

/* ---------- Top action bar ---------- */
.surface55e65-topbar{
  position:sticky;top:0;z-index:60;
  height:var(--surface55e65-top-h);
  display:flex;align-items:center;justify-content:space-between;
  gap:10px;
  padding:0 12px;
  background:linear-gradient(180deg,rgba(22,32,43,.96),rgba(22,32,43,.86));
  backdrop-filter:blur(10px);
  -webkit-backdrop-filter:blur(10px);
  border-bottom:1px solid var(--surface55e65-line);
}
.surface55e65-brand{
  display:flex;align-items:center;gap:9px;min-width:0;
}
.surface55e65-logo{
  width:38px;height:38px;border-radius:10px;object-fit:cover;
  box-shadow:0 0 0 2px rgba(255,223,186,.18),0 4px 10px rgba(136,14,79,.40);
  flex-shrink:0;background:var(--surface55e65-ink-2);
}
.surface55e65-brand-name{
  font-weight:800;font-size:18px;letter-spacing:.6px;
  color:var(--surface55e65-cream);
  text-shadow:0 1px 0 rgba(0,0,0,.4);
  white-space:nowrap;
}
.surface55e65-brand-name span{color:var(--surface55e65-wine-2);}
.surface55e65-actions{display:flex;align-items:center;gap:7px;}
.surface55e65-btn{
  display:inline-flex;align-items:center;justify-content:center;
  min-height:38px;padding:0 14px;
  border-radius:var(--surface55e65-radius-pill);
  font-weight:700;font-size:13.5px;
  transition:transform .18s ease,background .25s ease,color .25s ease,box-shadow .25s ease;
  white-space:nowrap;
}
.surface55e65-btn--promo{
  background:linear-gradient(135deg,var(--surface55e65-wine) 0%,var(--surface55e65-wine-2) 100%);
  color:var(--surface55e65-cream);
  box-shadow:0 5px 14px rgba(136,14,79,.45);
}
.surface55e65-btn--promo:hover{transform:translateY(-1px);box-shadow:0 8px 18px rgba(136,14,79,.55);}
.surface55e65-btn--ghost{
  background:transparent;color:var(--surface55e65-cream);
  border:1px solid var(--surface55e65-line-strong);
}
.surface55e65-btn--ghost:hover{background:rgba(255,223,186,.08);}
.surface55e65-menubtn{
  width:38px;height:38px;border-radius:10px;
  display:inline-flex;align-items:center;justify-content:center;
  background:rgba(255,223,186,.08);
  border:1px solid var(--surface55e65-line);
}
.surface55e65-menubtn:hover{background:rgba(255,223,186,.14);}
.surface55e65-menubtn svg{width:20px;height:20px;}

/* ---------- Expandable nav ---------- */
.surface55e65-nav{
  position:absolute;top:calc(var(--surface55e65-top-h) - 6px);left:8px;right:8px;z-index:55;
  background:var(--surface55e65-ink-2);
  border:1px solid var(--surface55e65-line);
  border-radius:var(--surface55e65-radius-md);
  box-shadow:var(--surface55e65-shadow);
  padding:8px;
  opacity:0;visibility:hidden;transform:translateY(-8px);
  transition:opacity .25s ease,transform .25s ease,visibility .25s;
}
.surface55e65-nav[data-open="true"]{opacity:1;visibility:visible;transform:translateY(0);}
.surface55e65-nav-grid{
  display:grid;grid-template-columns:repeat(2,1fr);gap:6px;
}
.surface55e65-nav-link{
  display:flex;align-items:center;gap:10px;
  padding:11px 12px;border-radius:var(--surface55e65-radius-sm);
  font-size:13.5px;font-weight:600;color:var(--surface55e65-cream);
  background:rgba(255,223,186,.04);
  border:1px solid transparent;
  transition:background .2s ease,border-color .2s ease,transform .2s ease;
}
.surface55e65-nav-link:hover{background:rgba(136,14,79,.20);border-color:var(--surface55e65-line-strong);}
.surface55e65-nav-dot{
  width:8px;height:8px;border-radius:50%;flex-shrink:0;
  background:linear-gradient(135deg,var(--surface55e65-wine),var(--surface55e65-wine-2));
}
.surface55e65-nav-promo{
  grid-column:1 / -1;
  justify-content:center;
  background:linear-gradient(135deg,var(--surface55e65-wine),var(--surface55e65-wine-2));
  color:var(--surface55e65-cream);font-weight:700;
}

/* ---------- Main / sections ---------- */
.surface55e65-main{
  padding:14px 14px calc(var(--surface55e65-rail-h) + 28px);
}
.surface55e65-section{margin-top:22px;}
.surface55e65-section--tight{margin-top:16px;}
.surface55e65-eyebrow{
  display:inline-flex;align-items:center;gap:7px;
  font-size:11.5px;font-weight:700;letter-spacing:1.2px;text-transform:uppercase;
  color:var(--surface55e65-cream-soft);
  background:rgba(136,14,79,.22);
  border:1px solid rgba(136,14,79,.45);
  padding:5px 11px;border-radius:var(--surface55e65-radius-pill);
}
.surface55e65-h1{
  font-size:23px;line-height:1.32;margin-top:10px;
  color:var(--surface55e65-cream);
}
.surface55e65-h2{
  font-size:18px;line-height:1.38;margin-bottom:8px;color:var(--surface55e65-cream);
  display:flex;align-items:center;gap:8px;
}
.surface55e65-h2::before{
  content:"";width:4px;height:18px;border-radius:2px;
  background:linear-gradient(180deg,var(--surface55e65-wine-2),var(--surface55e65-wine-deep));
  flex-shrink:0;
}
.surface55e65-h3{font-size:15.5px;margin-bottom:5px;color:var(--surface55e65-cream-soft);}
.surface55e65-lead{color:var(--surface55e65-mute);font-size:14px;margin-top:8px;}
.surface55e65-p{color:var(--surface55e65-mute);font-size:13.8px;margin-top:7px;}
.surface55e65-p a,.surface55e65-lead a{color:var(--surface55e65-cream);border-bottom:1px dashed var(--surface55e65-line-strong);}
.surface55e65-p a:hover,.surface55e65-lead a:hover{color:var(--surface55e65-wine-2);border-bottom-color:var(--surface55e65-wine-2);}

/* ---------- Hero carousel ---------- */
.surface55e65-hero{margin-top:14px;}
.surface55e65-carousel{
  position:relative;border-radius:var(--surface55e65-radius-lg);overflow:hidden;
  border:1px solid var(--surface55e65-line);
  box-shadow:var(--surface55e65-shadow);
}
.surface55e65-track{
  display:flex;transition:transform .42s cubic-bezier(.22,.61,.36,1);
  will-change:transform;
}
.surface55e65-slide{
  position:relative;flex:0 0 100%;aspect-ratio:16/9;
}
.surface55e65-slide img{width:100%;height:100%;object-fit:cover;}
.surface55e65-slide-veil{
  position:absolute;inset:0;
  background:linear-gradient(180deg,rgba(22,32,43,0) 35%,rgba(22,32,43,.92) 100%);
}
.surface55e65-slide-body{
  position:absolute;left:12px;right:12px;bottom:10px;z-index:2;
  display:flex;align-items:flex-end;justify-content:space-between;gap:10px;
}
.surface55e65-slide-text{min-width:0;}
.surface55e65-slide-title{font-size:15.5px;font-weight:800;color:var(--surface55e65-cream);}
.surface55e65-slide-sub{font-size:12px;color:var(--surface55e65-mute);margin-top:2px;}
.surface55e65-slide-cta{
  display:inline-flex;align-items:center;justify-content:center;
  padding:8px 13px;font-size:12.5px;font-weight:700;
  border-radius:var(--surface55e65-radius-pill);
  background:linear-gradient(135deg,var(--surface55e65-wine),var(--surface55e65-wine-2));
  color:var(--surface55e65-cream);flex-shrink:0;
  box-shadow:0 4px 10px rgba(136,14,79,.45);
}
.surface55e65-dots{
  position:absolute;left:0;right:0;bottom:8px;z-index:3;
  display:flex;justify-content:center;gap:6px;
}
.surface55e65-dot{
  width:7px;height:7px;border-radius:50%;
  background:rgba(255,223,186,.34);
  transition:background .25s ease,width .25s ease;cursor:pointer;
}
.surface55e65-dot[data-active="true"]{
  background:var(--surface55e65-wine-2);width:18px;border-radius:4px;
}

/* ---------- Category head ---------- */
.surface55e65-cathead{
  display:flex;align-items:center;justify-content:space-between;gap:10px;
  margin-bottom:10px;
}
.surface55e65-cathead-left{display:flex;align-items:center;gap:9px;min-width:0;}
.surface55e65-catbadge{
  width:30px;height:30px;border-radius:9px;
  display:inline-flex;align-items:center;justify-content:center;
  background:linear-gradient(135deg,var(--surface55e65-wine),var(--surface55e65-wine-2));
  color:var(--surface55e65-cream);font-weight:800;font-size:13px;
  flex-shrink:0;box-shadow:0 4px 10px rgba(136,14,79,.40);
}
.surface55e65-cattitle{font-size:16.5px;font-weight:800;color:var(--surface55e65-cream);}
.surface55e65-catcount{font-size:11.5px;color:var(--surface55e65-faint);font-weight:600;}
.surface55e65-cathead-link{
  font-size:11.5px;font-weight:700;color:var(--surface55e65-cream-soft);
  padding:5px 10px;border-radius:var(--surface55e65-radius-pill);
  border:1px solid var(--surface55e65-line);
}
.surface55e65-cathead-link:hover{background:rgba(255,223,186,.08);color:var(--surface55e65-cream);}

/* ---------- Game grid ---------- */
.surface55e65-grid{
  display:grid;grid-template-columns:repeat(4,1fr);gap:9px;
}
.surface55e65-card{
  position:relative;cursor:pointer;text-align:center;
  background:linear-gradient(180deg,rgba(255,223,186,.06),rgba(255,223,186,.02));
  border:1px solid var(--surface55e65-line);
  border-radius:var(--surface55e65-radius-md);
  padding:6px 5px 8px;
  transition:transform .22s ease,box-shadow .22s ease,border-color .22s ease,background .22s ease;
  overflow:hidden;
}
.surface55e65-card:hover{
  transform:translateY(-2px);
  border-color:var(--surface55e65-line-strong);
  box-shadow:var(--surface55e65-shadow-card);
  background:linear-gradient(180deg,rgba(136,14,79,.18),rgba(255,223,186,.04));
}
.surface55e65-card-imgwrap{
  position:relative;width:100%;aspect-ratio:1/1;
  border-radius:var(--surface55e65-radius-sm);overflow:hidden;
  background:var(--surface55e65-ink-2);
}
.surface55e65-card-imgwrap img{width:100%;height:100%;object-fit:cover;}
.surface55e65-card-name{
  margin-top:5px;font-size:10.5px;line-height:1.22;font-weight:600;
  color:var(--surface55e65-cream);
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;
  min-height:26px;
}
.surface55e65-card-tag{
  position:absolute;top:4px;left:4px;z-index:2;
  font-size:9px;font-weight:700;letter-spacing:.3px;
  padding:2px 6px;border-radius:var(--surface55e65-radius-pill);
  background:linear-gradient(135deg,var(--surface55e65-wine),var(--surface55e65-wine-2));
  color:var(--surface55e65-cream);
}

/* ---------- Content tiles ---------- */
.surface55e65-tile{
  background:linear-gradient(180deg,rgba(255,223,186,.05),rgba(255,223,186,.02));
  border:1px solid var(--surface55e65-line);
  border-radius:var(--surface55e65-radius-md);
  padding:13px 14px;
  margin-top:10px;
}
.surface55e65-tile p{margin-top:0;}
.surface55e65-tile + .surface55e65-tile{margin-top:9px;}
.surface55e65-stack{display:flex;flex-direction:column;gap:9px;margin-top:10px;}
.surface55e65-rowtile{
  display:flex;gap:12px;align-items:flex-start;
  background:rgba(255,223,186,.04);
  border:1px solid var(--surface55e65-line);
  border-radius:var(--surface55e65-radius-md);
  padding:11px 12px;
}
.surface55e65-rowtile-num{
  flex-shrink:0;width:26px;height:26px;border-radius:50%;
  display:inline-flex;align-items:center;justify-content:center;
  font-weight:800;font-size:13px;color:var(--surface55e65-cream);
  background:linear-gradient(135deg,var(--surface55e65-wine),var(--surface55e65-wine-2));
}
.surface55e65-rowtile-body h3{margin-bottom:3px;color:var(--surface55e65-cream);}
.surface55e65-rowtile-body p{margin-top:0;font-size:13px;}

/* ---------- Inline metric grid ---------- */
.surface55e65-metric{
  display:grid;grid-template-columns:repeat(2,1fr);gap:9px;margin-top:10px;
}
.surface55e65-metric-cell{
  background:rgba(255,223,186,.04);
  border:1px solid var(--surface55e65-line);
  border-radius:var(--surface55e65-radius-md);
  padding:11px 12px;
}
.surface55e65-metric-cell .k{font-size:11px;color:var(--surface55e65-faint);font-weight:700;letter-spacing:.4px;}
.surface55e65-metric-cell .v{font-size:15px;color:var(--surface55e65-cream);font-weight:800;margin-top:3px;}
.surface55e65-metric-cell .d{font-size:11.5px;color:var(--surface55e65-mute);margin-top:3px;}

/* ---------- CTA strip ---------- */
.surface55e65-cta{
  margin-top:12px;
  background:linear-gradient(135deg,rgba(136,14,79,.32),rgba(34,46,61,.40));
  border:1px solid rgba(136,14,79,.45);
  border-radius:var(--surface55e65-radius-md);
  padding:14px;
  display:flex;flex-direction:column;gap:10px;
}
.surface55e65-cta-row{display:flex;gap:8px;flex-wrap:wrap;}
.surface55e65-cta-row .surface55e65-btn{flex:1 1 auto;}
.surface55e65-seg{
  display:inline-flex;border:1px solid var(--surface55e65-line-strong);
  border-radius:var(--surface55e65-radius-pill);overflow:hidden;
}
.surface55e65-seg button{
  padding:9px 14px;font-size:12.5px;font-weight:700;color:var(--surface55e65-cream);
}
.surface55e65-seg button[data-active="true"]{
  background:linear-gradient(135deg,var(--surface55e65-wine),var(--surface55e65-wine-2));
  color:var(--surface55e65-cream);
}

/* ---------- Takeaways ---------- */
.surface55e65-takeaways{
  margin-top:10px;display:flex;flex-direction:column;gap:7px;
}
.surface55e65-takeaway{
  display:flex;gap:10px;align-items:flex-start;
  padding:10px 12px;
  background:rgba(255,223,186,.04);
  border-left:3px solid var(--surface55e65-wine-2);
  border-radius:0 var(--surface55e65-radius-sm) var(--surface55e65-radius-sm) 0;
  font-size:13px;color:var(--surface55e65-mute);
}
.surface55e65-takeaway b{color:var(--surface55e65-cream);}

/* ---------- App download block ---------- */
.surface55e65-app{
  margin-top:10px;
  background:linear-gradient(135deg,rgba(34,46,61,.85),rgba(136,14,79,.20));
  border:1px solid var(--surface55e65-line);
  border-radius:var(--surface55e65-radius-md);
  padding:14px;display:flex;flex-direction:column;gap:11px;
}
.surface55e65-app-row{display:flex;gap:11px;align-items:center;}
.surface55e65-app-shot{
  flex:0 0 92px;width:92px;height:120px;border-radius:var(--surface55e65-radius-sm);
  object-fit:cover;border:1px solid var(--surface55e65-line);
}
.surface55e65-app-text{min-width:0;}
.surface55e65-app-text h3{margin-bottom:4px;}
.surface55e65-app-text p{font-size:12.5px;margin-top:0;}
.surface55e65-app-btns{display:flex;gap:8px;flex-wrap:wrap;}
.surface55e65-app-btns .surface55e65-btn{flex:1 1 auto;}

/* ---------- Extended footer (home only) ---------- */
.surface55e65-extended{
  margin-top:24px;
  border-top:1px solid var(--surface55e65-line);
  padding-top:16px;
}
.surface55e65-extended-grid{
  display:grid;grid-template-columns:repeat(2,1fr);gap:9px;margin-top:10px;
}
.surface55e65-ext-card{
  background:rgba(255,223,186,.04);
  border:1px solid var(--surface55e65-line);
  border-radius:var(--surface55e65-radius-md);
  padding:11px 12px;
  transition:background .22s ease,border-color .22s ease;
}
.surface55e65-ext-card:hover{background:rgba(136,14,79,.18);border-color:var(--surface55e65-line-strong);}
.surface55e65-ext-card .t{font-size:13px;font-weight:800;color:var(--surface55e65-cream);}
.surface55e65-ext-card .d{font-size:11.5px;color:var(--surface55e65-mute);margin-top:3px;}
.surface55e65-ext-promos{
  display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-top:10px;
}
.surface55e65-ext-promo{
  text-align:center;padding:11px 6px;border-radius:var(--surface55e65-radius-md);
  background:linear-gradient(135deg,var(--surface55e65-wine),var(--surface55e65-wine-2));
  color:var(--surface55e65-cream);font-size:11.5px;font-weight:700;
  border:1px solid rgba(255,223,186,.18);
  transition:transform .2s ease,box-shadow .2s ease;
}
.surface55e65-ext-promo:hover{transform:translateY(-1px);box-shadow:0 6px 14px rgba(136,14,79,.5);}
.surface55e65-ext-promo .ic{display:block;font-size:15px;margin-bottom:3px;}
.surface55e65-brand-block{
  background:rgba(255,223,186,.04);
  border:1px solid var(--surface55e65-line);
  border-radius:var(--surface55e65-radius-md);
  padding:12px 13px;margin-top:10px;
}
.surface55e65-brand-block p{margin-top:6px;font-size:12.8px;}
.surface55e65-disclaimer{
  margin-top:10px;font-size:11.2px;color:var(--surface55e65-faint);line-height:1.55;
}

/* ---------- Footer ---------- */
.surface55e65-foot{
  margin-top:24px;padding:14px;text-align:center;
  border-top:1px solid var(--surface55e65-line);
}
.surface55e65-foot-copy{font-size:12px;color:var(--surface55e65-faint);}
.surface55e65-foot-links{
  display:flex;flex-wrap:wrap;justify-content:center;gap:6px 10px;margin-top:8px;
}
.surface55e65-foot-links a{font-size:11.5px;color:var(--surface55e65-mute);}
.surface55e65-foot-links a:hover{color:var(--surface55e65-cream);}

/* ---------- Bottom nav rail ---------- */
.surface55e65-rail{
  position:fixed;left:50%;transform:translateX(-50%);
  bottom:8px;z-index:60;
  width:calc(100% - 16px);max-width:414px;
  display:flex;justify-content:space-around;align-items:stretch;
  background:linear-gradient(180deg,rgba(22,32,43,.98),rgba(22,32,43,.94));
  backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);
  border:1px solid var(--surface55e65-line);
  border-radius:var(--surface55e65-radius-lg);
  padding:6px;box-shadow:var(--surface55e65-shadow);
}
.surface55e65-rail-item{
  flex:1 1 0;display:flex;flex-direction:column;align-items:center;justify-content:center;
  gap:3px;padding:6px 2px;
  border-radius:var(--surface55e65-radius-md);
  color:var(--surface55e65-mute);
  transition:color .25s ease,transform .25s ease,background .25s ease;
  min-height:44px;
}
.surface55e65-rail-item:hover{color:var(--surface55e65-cream);}
.surface55e65-rail-item[data-active="true"]{
  color:var(--surface55e65-cream);
  background:linear-gradient(180deg,rgba(136,14,79,.30),rgba(136,14,79,.10));
  transform:translateY(-2px);
  border:1px solid rgba(136,14,79,.45);
}
.surface55e65-rail-ico{
  width:30px;height:30px;border-radius:9px;
  display:inline-flex;align-items:center;justify-content:center;
  background:rgba(255,223,186,.06);
  border:1px solid var(--surface55e65-line);
}
.surface55e65-rail-item[data-active="true"] .surface55e65-rail-ico{
  background:linear-gradient(135deg,var(--surface55e65-wine),var(--surface55e65-wine-2));
  border-color:rgba(255,223,186,.18);
}
.surface55e65-rail-ico svg{width:16px;height:16px;}
.surface55e65-rail-label{font-size:10px;font-weight:700;letter-spacing:.2px;}

/* ---------- Utility ---------- */
.surface55e65-hidden{display:none !important;}
.surface55e65-mt0{margin-top:0;}

/* ---------- Responsive ---------- */
@media (min-width:360px){
  .surface55e65-grid{gap:10px;}
  .surface55e65-card{padding:7px 6px 9px;}
}
@media (min-width:430px){
  .surface55e65-canvas{max-width:430px;}
  .surface55e65-grid{grid-template-columns:repeat(5,1fr);}
  .surface55e65-main{padding-left:18px;padding-right:18px;}
  .surface55e65-extended-grid{grid-template-columns:repeat(3,1fr);}
  .surface55e65-ext-promos{grid-template-columns:repeat(6,1fr);}
}
@media (min-width:520px){
  /* keep phone canvas centered on wide screens */
  body{background:#0E1620;}
  .surface55e65-canvas{max-width:430px;margin:0 auto;min-height:100vh;}
}

/* Reduced motion */
@media (prefers-reduced-motion:reduce){
  *{transition-duration:.001ms !important;animation-duration:.001ms !important;scroll-behavior:auto !important;}
}
