/* ============================================================
   xb66.click - shared styles (bn-BD)
   Prefix: v786- (all custom classes + CSS variables)
   Canvas: 320-430px mobile; desktop shows a centered phone canvas.
   Palette: #0D1117 (bg) | #F5F5F5 (text) | #FFEBCD (cream)
            #FA8072 (salmon) | #FF7F50 (coral accent)
   Direction: top=LOGO-led action bar; menu=side drawer;
              bottom=outlined functional bar; line icons + filled active;
              active=background support block; restrained glow feedback.
   ============================================================ */

:root {
  --v786-bg: #0D1117;
  --v786-bg-2: #131A24;
  --v786-bg-3: #1A2330;
  --v786-text: #F5F5F5;
  --v786-cream: #FFEBCD;
  --v786-salmon: #FA8072;
  --v786-coral: #FF7F50;
  --v786-muted: #9BA6B2;
  --v786-line: rgba(255, 235, 205, 0.14);
  --v786-line-strong: rgba(255, 235, 205, 0.28);
  --v786-shadow: 0 6px 22px rgba(0, 0, 0, 0.45);
  --v786-radius: 14px;
  --v786-radius-sm: 10px;
  --v786-header-h: 60px;
  --v786-bottom-h: 64px;
  --v786-max-w: 460px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--v786-bg);
  color: var(--v786-text);
  font-family: "Hind Siliguri", "Noto Sans Bengali", "Segoe UI", system-ui, -apple-system, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

a { color: var(--v786-cream); text-decoration: none; }
a:focus-visible { outline: 2px solid var(--v786-coral); outline-offset: 2px; }

/* Centered phone canvas on wider screens. */
.v786-shell {
  max-width: var(--v786-max-w);
  margin: 0 auto;
  min-height: 100vh;
  background: linear-gradient(180deg, var(--v786-bg) 0%, var(--v786-bg-2) 60%, var(--v786-bg) 100%);
  position: relative;
  box-shadow: var(--v786-shadow);
}

/* ===================== Header ===================== */
.v786-header {
  position: sticky;
  top: 0;
  z-index: 60;
  height: var(--v786-header-h);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
  background: rgba(13, 17, 23, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--v786-line);
}

.v786-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex: 1;
}

.v786-brand img.v786-logo {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid var(--v786-line-strong);
  flex-shrink: 0;
}

.v786-brand-name {
  font-weight: 800;
  font-size: 19px;
  letter-spacing: 0.4px;
  color: var(--v786-cream);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.v786-brand-name span { color: var(--v786-coral); }

.v786-header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.v786-btn {
  -webkit-appearance: none;
  appearance: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-weight: 700;
  font-size: 13px;
  padding: 9px 14px;
  border-radius: 999px;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.12s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.v786-btn:active { transform: scale(0.96); }

.v786-btn-login {
  background: transparent;
  color: var(--v786-cream);
  border: 1px solid var(--v786-line-strong);
}
.v786-btn-register {
  background: linear-gradient(135deg, var(--v786-coral), var(--v786-salmon));
  color: #1a1206;
  box-shadow: 0 4px 14px rgba(255, 127, 80, 0.35);
}
.v786-btn-register:hover { box-shadow: 0 6px 18px rgba(255, 127, 80, 0.55); }

.v786-icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: transparent;
  border: 1px solid var(--v786-line);
  color: var(--v786-cream);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.v786-icon-btn svg { width: 20px; height: 20px; }

/* ===================== Side drawer ===================== */
.v786-scrim {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
  z-index: 80;
}
.v786-scrim-on { opacity: 1; pointer-events: auto; }

.v786-drawer {
  position: fixed;
  top: 0;
  right: -280px;
  width: 260px;
  height: 100vh;
  background: var(--v786-bg-2);
  border-left: 1px solid var(--v786-line-strong);
  z-index: 90;
  padding: 18px 16px calc(var(--v786-bottom-h) + 18px);
  overflow-y: auto;
  transition: right 0.26s ease;
  box-shadow: -8px 0 30px rgba(0, 0, 0, 0.5);
}
.v786-drawer-open { right: 0; }

.v786-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.v786-drawer-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--v786-cream);
  margin: 0;
}
.v786-drawer-close {
  width: 32px; height: 32px;
  border-radius: 8px;
  background: transparent;
  border: 1px solid var(--v786-line);
  color: var(--v786-cream);
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
}
.v786-drawer-nav { list-style: none; margin: 0; padding: 0; }
.v786-drawer-nav li { margin-bottom: 4px; }
.v786-drawer-nav a {
  display: block;
  padding: 11px 12px;
  border-radius: 10px;
  color: var(--v786-text);
  font-size: 14px;
  font-weight: 600;
  border: 1px solid transparent;
}
.v786-drawer-nav a:active { background: var(--v786-bg-3); }
.v786-drawer-nav a small {
  display: block;
  color: var(--v786-muted);
  font-weight: 500;
  font-size: 11px;
  margin-top: 2px;
}
.v786-drawer-cta {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.v786-drawer-cta .v786-btn { width: 100%; }

/* ===================== Hero / Carousel ===================== */
.v786-main { padding: 14px 12px calc(var(--v786-bottom-h) + 28px); }

.v786-hero {
  position: relative;
  border-radius: var(--v786-radius);
  overflow: hidden;
  height: 190px;
  background: var(--v786-bg-3);
  box-shadow: var(--v786-shadow);
  margin-bottom: 16px;
}
.v786-hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.6s ease;
}
.v786-hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.v786-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(13,17,23,0.85) 0%, rgba(13,17,23,0.35) 70%, rgba(13,17,23,0) 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 18px 16px;
  cursor: pointer;
}
.v786-hero-tag {
  font-size: 11px;
  color: var(--v786-cream);
  background: rgba(255, 127, 80, 0.85);
  padding: 3px 9px;
  border-radius: 999px;
  align-self: flex-start;
  margin-bottom: 8px;
  font-weight: 700;
}
.v786-hero-title {
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  margin: 0 0 6px;
  line-height: 1.25;
  max-width: 80%;
}
.v786-hero-sub {
  font-size: 12px;
  color: var(--v786-cream);
  margin: 0 0 12px;
  max-width: 78%;
}
.v786-hero-cta {
  -webkit-appearance: none;
  appearance: none;
  border: none;
  cursor: pointer;
  background: linear-gradient(135deg, var(--v786-coral), var(--v786-salmon));
  color: #1a1206;
  font-weight: 700;
  font-size: 13px;
  padding: 8px 16px;
  border-radius: 999px;
  align-self: flex-start;
}
.v786-hero-active { opacity: 1; }
.v786-hero-dots {
  position: absolute;
  bottom: 10px;
  right: 14px;
  display: flex;
  gap: 6px;
  z-index: 2;
}
.v786-hero-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: rgba(255, 235, 205, 0.4);
  cursor: pointer;
  transition: background 0.2s ease, width 0.2s ease;
}
.v786-dot-active {
  background: var(--v786-coral);
  width: 18px;
  border-radius: 999px;
}

/* ===================== Quick stats ===================== */
.v786-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 18px;
}
.v786-stat {
  background: var(--v786-bg-2);
  border: 1px solid var(--v786-line);
  border-radius: var(--v786-radius-sm);
  padding: 10px 6px;
  text-align: center;
}
.v786-stat-num {
  font-size: 17px;
  font-weight: 800;
  color: var(--v786-coral);
  line-height: 1.1;
}
.v786-stat-label {
  font-size: 11px;
  color: var(--v786-muted);
  margin-top: 2px;
}

/* ===================== Section heading ===================== */
.v786-section { margin-bottom: 22px; }
.v786-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 0 10px;
}
.v786-section-title {
  font-size: 17px;
  font-weight: 800;
  color: var(--v786-cream);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}
.v786-section-title::before {
  content: "";
  width: 4px;
  height: 18px;
  background: linear-gradient(180deg, var(--v786-coral), var(--v786-salmon));
  border-radius: 4px;
}
.v786-section-more {
  font-size: 12px;
  color: var(--v786-salmon);
  font-weight: 600;
}

/* ===================== Game grid ===================== */
.v786-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.v786-game-card {
  background: var(--v786-bg-2);
  border: 1px solid var(--v786-line);
  border-radius: var(--v786-radius-sm);
  overflow: hidden;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  transition: transform 0.14s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  text-align: center;
}
.v786-game-card:hover {
  border-color: var(--v786-line-strong);
  box-shadow: 0 4px 14px rgba(255, 127, 80, 0.15);
}
.v786-card-press { transform: scale(0.95); }
.v786-game-thumb {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: var(--v786-bg-3);
}
.v786-game-name {
  font-size: 11px;
  font-weight: 600;
  color: var(--v786-cream);
  padding: 5px 4px;
  line-height: 1.25;
  min-height: 30px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ===================== Info / promo blocks ===================== */
.v786-info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.v786-info-card {
  background: var(--v786-bg-2);
  border: 1px solid var(--v786-line);
  border-radius: var(--v786-radius);
  padding: 14px 12px;
}
.v786-info-card h3 {
  margin: 0 0 6px;
  font-size: 14px;
  color: var(--v786-cream);
  display: flex;
  align-items: center;
  gap: 6px;
}
.v786-info-card p {
  margin: 0;
  font-size: 12.5px;
  color: var(--v786-muted);
  line-height: 1.55;
}
.v786-info-card a { color: var(--v786-salmon); font-weight: 600; }

.v786-promo-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(135deg, rgba(255,127,80,0.18), rgba(250,128,114,0.10));
  border: 1px solid var(--v786-line-strong);
  border-radius: var(--v786-radius);
  padding: 14px;
  margin-bottom: 18px;
}
.v786-promo-banner .v786-promo-text { flex: 1; }
.v786-promo-banner h3 { margin: 0 0 4px; font-size: 15px; color: var(--v786-cream); }
.v786-promo-banner p { margin: 0; font-size: 12px; color: var(--v786-muted); }

/* ===================== SEO content ===================== */
.v786-seo {
  background: var(--v786-bg-2);
  border: 1px solid var(--v786-line);
  border-radius: var(--v786-radius);
  padding: 16px 14px;
  margin-top: 4px;
}
.v786-seo h2 {
  font-size: 16px;
  color: var(--v786-cream);
  margin: 16px 0 8px;
  font-weight: 800;
}
.v786-seo h2:first-child { margin-top: 0; }
.v786-seo h3 {
  font-size: 14px;
  color: var(--v786-salmon);
  margin: 12px 0 6px;
  font-weight: 700;
}
.v786-seo p {
  font-size: 13px;
  color: var(--v786-text);
  margin: 0 0 10px;
  line-height: 1.7;
}
.v786-seo ul { margin: 0 0 10px; padding-left: 18px; }
.v786-seo li { font-size: 13px; color: var(--v786-text); margin-bottom: 4px; }
.v786-seo a { color: var(--v786-coral); font-weight: 600; border-bottom: 1px dashed rgba(255,127,80,0.4); }

/* ===================== Extended footer ===================== */
.v786-ext-footer {
  margin-top: 20px;
  border-top: 1px solid var(--v786-line);
  padding-top: 18px;
}
.v786-ext-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.v786-ext-col h4 {
  font-size: 13px;
  color: var(--v786-cream);
  margin: 0 0 8px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.v786-ext-col ul { list-style: none; margin: 0; padding: 0; }
.v786-ext-col li { margin-bottom: 6px; }
.v786-ext-col a {
  font-size: 12.5px;
  color: var(--v786-muted);
}
.v786-ext-col a:active { color: var(--v786-coral); }
.v786-brand-intro {
  grid-column: 1 / -1;
  font-size: 12.5px;
  color: var(--v786-muted);
  line-height: 1.6;
  margin-bottom: 4px;
}
.v786-brand-intro img { width: 30px; height: 30px; border-radius: 8px; float: left; margin-right: 8px; }
.v786-promo-actions {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-top: 4px;
}
.v786-promo-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--v786-bg-3);
  border: 1px solid var(--v786-line);
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 12px;
  color: var(--v786-cream);
  cursor: pointer;
  font-weight: 600;
  text-align: left;
}
.v786-promo-pill .v786-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--v786-coral);
  flex-shrink: 0;
  box-shadow: 0 0 8px rgba(255, 127, 80, 0.7);
}
.v786-disclaimer {
  grid-column: 1 / -1;
  font-size: 11px;
  color: var(--v786-muted);
  background: rgba(13, 17, 23, 0.6);
  border: 1px solid var(--v786-line);
  border-radius: 10px;
  padding: 10px;
  line-height: 1.55;
}

/* ===================== Copyright ===================== */
.v786-copyright {
  text-align: center;
  font-size: 11px;
  color: var(--v786-muted);
  padding: 14px 12px calc(var(--v786-bottom-h) + 14px);
  border-top: 1px solid var(--v786-line);
  margin-top: 16px;
}

/* ===================== Bottom navigation ===================== */
.v786-bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 70;
  max-width: var(--v786-max-w);
  margin: 0 auto;
  height: var(--v786-bottom-h);
  background: rgba(13, 17, 23, 0.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid var(--v786-line-strong);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: stretch;
  padding-bottom: env(safe-area-inset-bottom, 0);
}
.v786-bottom-nav button,
.v786-bottom-nav a.v786-nav-item {
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  border: none;
  color: var(--v786-muted);
  font-family: inherit;
  font-size: 10px;
  font-weight: 600;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 6px 2px 4px;
  cursor: pointer;
  position: relative;
  min-height: 48px;
  text-decoration: none;
}
.v786-bottom-nav svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.v786-nav-item.v786-active {
  color: var(--v786-cream);
}
.v786-nav-item.v786-active::before {
  content: "";
  position: absolute;
  top: 4px;
  width: 38px;
  height: 26px;
  border-radius: 999px;
  background: rgba(255, 127, 80, 0.18);
}
.v786-nav-item.v786-active svg {
  fill: var(--v786-coral);
  stroke: var(--v786-coral);
  filter: drop-shadow(0 0 6px rgba(255, 127, 80, 0.55));
}
.v786-nav-item.v786-active .v786-nav-label { color: var(--v786-coral); }
.v786-nav-label { position: relative; z-index: 1; }

/* ===================== Utility ===================== */
.v786-skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--v786-coral);
  color: #1a1206;
  padding: 8px 12px;
  z-index: 100;
}
.v786-skip-link:focus { left: 8px; top: 8px; }

/* ===================== Mobile breakpoint ===================== */
@media (max-width: 430px) {
  :root {
    --v786-header-h: 56px;
    --v786-bottom-h: 62px;
  }
  html, body { font-size: 14px; }
  .v786-header { padding: 0 10px; gap: 8px; }
  .v786-brand img.v786-logo { width: 32px; height: 32px; }
  .v786-brand-name { font-size: 17px; }
  .v786-btn { font-size: 12px; padding: 8px 12px; min-height: 36px; }
  .v786-icon-btn { width: 36px; height: 36px; }
  .v786-main { padding: 12px 10px calc(var(--v786-bottom-h) + 22px); }
  .v786-hero { height: 168px; margin-bottom: 14px; }
  .v786-hero-title { font-size: 18px; }
  .v786-hero-sub { font-size: 11px; }
  .v786-hero-overlay { padding: 14px 12px; }
  .v786-stats { gap: 6px; margin-bottom: 14px; }
  .v786-stat-num { font-size: 15px; }
  .v786-stat-label { font-size: 10px; }
  .v786-section { margin-bottom: 18px; }
  .v786-section-title { font-size: 15px; }
  .v786-game-grid { grid-template-columns: repeat(4, 1fr); gap: 6px; }
  .v786-game-name { font-size: 10px; min-height: 28px; padding: 4px 3px; }
  .v786-info-grid { gap: 8px; }
  .v786-info-card { padding: 12px 10px; }
  .v786-info-card h3 { font-size: 13px; }
  .v786-info-card p { font-size: 12px; }
  .v786-ext-grid { gap: 12px; }
  .v786-ext-col h4 { font-size: 12px; }
  .v786-ext-col a { font-size: 11.5px; }
  .v786-seo { padding: 14px 12px; }
  .v786-seo h2 { font-size: 15px; }
  .v786-seo p, .v786-seo li { font-size: 12.5px; }
  .v786-promo-banner { padding: 12px; }
  .v786-promo-banner h3 { font-size: 14px; }
  .v786-bottom-nav button,
  .v786-bottom-nav a.v786-nav-item { font-size: 9.5px; padding: 5px 2px 4px; }
  .v786-bottom-nav svg { width: 20px; height: 20px; }
}

@media (min-width: 600px) {
  /* Keep the phone canvas visible on wider screens; no desktop layout. */
  .v786-shell { border-left: 1px solid var(--v786-line); border-right: 1px solid var(--v786-line); }
}
