/* =========================================================
 * 9a99999.click - shared stylesheet
 * Mobile-first gaming portal for Bangladesh (bn-BD)
 * All custom classes / variables use the w0b1c- prefix
 * Palette: #4169E1 | #0D1117 | #E0FFFF | #87CEEB
 * Canvas: 320-430px (kept centered on wider screens)
 * =======================================================*/

:root {
  --w0b1c-bg: #0D1117;
  --w0b1c-bg-2: #121a2b;
  --w0b1c-bg-3: #0a0f18;
  --w0b1c-primary: #4169E1;
  --w0b1c-primary-2: #2a4fc4;
  --w0b1c-accent: #87CEEB;
  --w0b1c-text: #E0FFFF;
  --w0b1c-muted: #8aa0c0;
  --w0b1c-border: rgba(135, 206, 235, 0.18);
  --w0b1c-card: rgba(135, 206, 235, 0.06);
  --w0b1c-radius: 14px;
  --w0b1c-radius-sm: 10px;
  --w0b1c-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
  --w0b1c-header-h: 56px;
  --w0b1c-bottom-h: 60px;
  --w0b1c-max: 440px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  padding: 0;
  font-family: "Hind Siliguri", "Noto Sans Bengali", "Segoe UI", system-ui, -apple-system, sans-serif;
  background: var(--w0b1c-bg);
  color: var(--w0b1c-text);
  font-size: 15px;
  line-height: 1.55;
  overflow-x: hidden;
  min-height: 100vh;
}

a {
  color: var(--w0b1c-accent);
  text-decoration: none;
}

a:hover, a:focus { text-decoration: underline; }

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

.w0b1c-shell {
  width: 100%;
  max-width: var(--w0b1c-max);
  margin: 0 auto;
  padding: 0;
  position: relative;
  min-height: 100vh;
  background:
    radial-gradient(120% 60% at 50% -10%, rgba(65,105,225,0.18), transparent 60%),
    linear-gradient(180deg, var(--w0b1c-bg-2) 0%, var(--w0b1c-bg) 38%, var(--w0b1c-bg-3) 100%);
  padding-top: var(--w0b1c-header-h);
  padding-bottom: calc(var(--w0b1c-bottom-h) + 16px);
}

/* ============ HEADER ============ */
.w0b1c-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--w0b1c-header-h);
  background: linear-gradient(180deg, rgba(13,17,23,0.96), rgba(13,17,23,0.88));
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--w0b1c-border);
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 10px;
}

.w0b1c-header__inner {
  width: 100%;
  max-width: var(--w0b1c-max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

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

.w0b1c-brand__logo {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid var(--w0b1c-border);
  background: #0a0f18;
  flex: 0 0 auto;
}

.w0b1c-brand__name {
  font-weight: 800;
  font-size: 17px;
  color: var(--w0b1c-text);
  letter-spacing: 0.3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.w0b1c-brand__name span { color: var(--w0b1c-primary); }

.w0b1c-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
}

.w0b1c-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: none;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
  font-family: inherit;
  min-width: 44px;
}

.w0b1c-btn:active { transform: scale(0.94); }

.w0b1c-btn--primary {
  background: linear-gradient(135deg, var(--w0b1c-primary), #5b7ff0);
  color: #fff;
  box-shadow: 0 4px 12px rgba(65,105,225,0.4);
}

.w0b1c-btn--ghost {
  background: transparent;
  color: var(--w0b1c-accent);
  border: 1px solid var(--w0b1c-border);
}

.w0b1c-icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--w0b1c-card);
  border: 1px solid var(--w0b1c-border);
  cursor: pointer;
  color: var(--w0b1c-accent);
  transition: transform 0.15s ease, background 0.2s ease;
}

.w0b1c-icon-btn:active { transform: scale(0.92); }

.w0b1c-icon-btn svg { width: 20px; height: 20px; }

/* ============ SIDE DRAWER ============ */
.w0b1c-drawer {
  position: fixed;
  top: 0;
  right: -82%;
  width: 78%;
  max-width: 320px;
  height: 100%;
  background: linear-gradient(180deg, #0d1322, #0a0f18);
  z-index: 60;
  padding: 18px 16px calc(var(--w0b1c-bottom-h) + 20px);
  overflow-y: auto;
  transform: translateX(0);
  transition: right 0.28s ease;
  border-left: 1px solid var(--w0b1c-border);
  box-shadow: -8px 0 30px rgba(0,0,0,0.5);
}

.w0b1c-drawer--open { right: 0; }

.w0b1c-drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--w0b1c-border);
}

.w0b1c-drawer__title {
  font-size: 16px;
  font-weight: 800;
  color: var(--w0b1c-text);
}

.w0b1c-drawer__close {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid var(--w0b1c-border);
  background: transparent;
  color: var(--w0b1c-text);
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
}

.w0b1c-drawer__nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.w0b1c-drawer__nav a {
  display: block;
  padding: 11px 12px;
  border-radius: 10px;
  color: var(--w0b1c-text);
  font-weight: 600;
  font-size: 14px;
  border: 1px solid transparent;
  background: var(--w0b1c-card);
}

.w0b1c-drawer__nav a:hover {
  background: rgba(65,105,225,0.15);
  text-decoration: none;
}

.w0b1c-drawer__group {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--w0b1c-border);
}

.w0b1c-drawer__group-label {
  font-size: 11px;
  color: var(--w0b1c-muted);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin: 0 0 8px 4px;
}

.w0b1c-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 55;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.w0b1c-overlay--visible { opacity: 1; pointer-events: auto; }

/* ============ HERO / CAROUSEL ============ */
.w0b1c-hero {
  margin: 12px 0 6px;
  padding: 0 10px;
}

.w0b1c-carousel {
  position: relative;
  border-radius: var(--w0b1c-radius);
  overflow: hidden;
  box-shadow: var(--w0b1c-shadow);
  border: 1px solid var(--w0b1c-border);
  background: #0a0f18;
}

.w0b1c-carousel__viewport {
  overflow: hidden;
}

.w0b1c-carousel__track {
  display: flex;
  transition: transform 0.45s ease;
  width: 100%;
}

.w0b1c-carousel__slide {
  flex: 0 0 100%;
  position: relative;
  cursor: pointer;
}

.w0b1c-carousel__slide img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

.w0b1c-carousel__slide::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(13,17,23,0.7) 100%);
  pointer-events: none;
}

.w0b1c-carousel__caption {
  position: absolute;
  left: 14px;
  bottom: 12px;
  right: 14px;
  z-index: 2;
  color: #fff;
  pointer-events: none;
}

.w0b1c-carousel__caption b {
  display: block;
  font-size: 17px;
  font-weight: 800;
  text-shadow: 0 2px 6px rgba(0,0,0,0.6);
}

.w0b1c-carousel__caption span {
  font-size: 12px;
  opacity: 0.9;
}

.w0b1c-carousel__dots {
  display: flex;
  gap: 6px;
  justify-content: center;
  padding: 8px 0 4px;
}

.w0b1c-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(135,206,235,0.35);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
  border: none;
  padding: 0;
}

.w0b1c-dot--active {
  background: var(--w0b1c-primary);
  transform: scale(1.25);
}

/* ============ CTA STRIP ============ */
.w0b1c-cta {
  display: flex;
  gap: 8px;
  padding: 6px 10px 0;
}

.w0b1c-cta .w0b1c-btn { flex: 1; height: 40px; font-size: 14px; }

/* ============ SECTION ============ */
.w0b1c-section {
  margin: 16px 0 4px;
  padding: 0 10px;
}

.w0b1c-section__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  gap: 8px;
}

.w0b1c-section__title {
  font-size: 17px;
  font-weight: 800;
  color: var(--w0b1c-text);
  margin: 0;
  position: relative;
  padding-left: 12px;
}

.w0b1c-section__title::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 18px;
  background: linear-gradient(180deg, var(--w0b1c-primary), var(--w0b1c-accent));
  border-radius: 4px;
}

.w0b1c-section__more {
  font-size: 12px;
  color: var(--w0b1c-accent);
  font-weight: 600;
}

.w0b1c-section__sub {
  font-size: 12px;
  color: var(--w0b1c-muted);
  margin: 0 0 8px;
}

/* Category chips */
.w0b1c-cat-bar {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 4px 10px 8px;
  scrollbar-width: none;
}

.w0b1c-cat-bar::-webkit-scrollbar { display: none; }

.w0b1c-cat-chip {
  flex: 0 0 auto;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--w0b1c-card);
  border: 1px solid var(--w0b1c-border);
  color: var(--w0b1c-text);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s ease, transform 0.15s ease, color 0.2s ease;
}

.w0b1c-cat-chip:active { transform: scale(0.95); }

.w0b1c-cat-chip--active {
  background: linear-gradient(135deg, var(--w0b1c-primary), #5b7ff0);
  color: #fff;
  border-color: transparent;
}

/* ============ GAME GRID ============ */
.w0b1c-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

@media (min-width: 360px) {
  .w0b1c-game-grid { gap: 9px; }
}

@media (min-width: 400px) {
  .w0b1c-game-grid { grid-template-columns: repeat(5, 1fr); }
}

.w0b1c-game {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  cursor: pointer;
  background: var(--w0b1c-card);
  border: 1px solid var(--w0b1c-border);
  border-radius: var(--w0b1c-radius-sm);
  padding: 5px;
  transition: transform 0.15s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  overflow: hidden;
}

.w0b1c-game:hover, .w0b1c-game:focus {
  border-color: var(--w0b1c-primary);
  text-decoration: none;
}

.w0b1c-game:active { transform: scale(0.96); }

.w0b1c-game__img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 8px;
  background: #0a0f18;
  display: block;
}

.w0b1c-game__name {
  margin-top: 5px;
  font-size: 10.5px;
  line-height: 1.25;
  color: var(--w0b1c-text);
  font-weight: 600;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 26px;
  word-break: break-word;
}

.w0b1c-game__badge {
  display: inline-block;
  margin-top: 3px;
  font-size: 9px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 6px;
  background: rgba(65,105,225,0.25);
  color: var(--w0b1c-accent);
}

/* ============ CONTENT BLOCKS ============ */
.w0b1c-card {
  background: var(--w0b1c-card);
  border: 1px solid var(--w0b1c-border);
  border-radius: var(--w0b1c-radius);
  padding: 14px;
  margin: 0 10px;
}

.w0b1c-card + .w0b1c-card { margin-top: 10px; }

.w0b1c-card h2 {
  margin: 0 0 8px;
  font-size: 17px;
  color: var(--w0b1c-text);
  font-weight: 800;
}

.w0b1c-card h3 {
  margin: 12px 0 6px;
  font-size: 14px;
  color: var(--w0b1c-accent);
  font-weight: 700;
}

.w0b1c-card p {
  margin: 0 0 8px;
  font-size: 13.5px;
  color: var(--w0b1c-text);
  line-height: 1.7;
}

.w0b1c-card ul, .w0b1c-card ol {
  margin: 4px 0 8px;
  padding-left: 18px;
}

.w0b1c-card li {
  font-size: 13px;
  margin-bottom: 4px;
  line-height: 1.6;
}

/* Steps list */
.w0b1c-steps {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  counter-reset: step;
}

.w0b1c-steps li {
  position: relative;
  padding: 8px 8px 8px 38px;
  margin-bottom: 6px;
  background: rgba(135,206,235,0.05);
  border: 1px solid var(--w0b1c-border);
  border-radius: 10px;
  counter-increment: step;
  font-size: 13px;
}

.w0b1c-steps li::before {
  content: counter(step);
  position: absolute;
  left: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--w0b1c-primary), var(--w0b1c-accent));
  color: #fff;
  font-weight: 800;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* FAQ */
.w0b1c-faq {
  background: var(--w0b1c-card);
  border: 1px solid var(--w0b1c-border);
  border-radius: 10px;
  margin-bottom: 8px;
  overflow: hidden;
}

.w0b1c-faq__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  cursor: pointer;
  font-weight: 700;
  font-size: 13.5px;
  color: var(--w0b1c-text);
}

.w0b1c-faq__head::after {
  content: '+';
  font-size: 20px;
  color: var(--w0b1c-accent);
  font-weight: 700;
  transition: transform 0.2s ease;
}

.w0b1c-faq--open .w0b1c-faq__head::after {
  content: '−';
}

.w0b1c-faq__body {
  display: none;
  padding: 0 14px 12px;
  font-size: 13px;
  color: var(--w0b1c-muted);
  line-height: 1.65;
}

.w0b1c-faq--open .w0b1c-faq__body { display: block; }

/* Testimonial tiles */
.w0b1c-testi-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

@media (min-width: 380px) {
  .w0b1c-testi-grid { grid-template-columns: 1fr 1fr; }
}

.w0b1c-testi {
  background: rgba(135,206,235,0.05);
  border: 1px solid var(--w0b1c-border);
  border-radius: 10px;
  padding: 10px 12px;
}

.w0b1c-testi__name {
  font-weight: 700;
  font-size: 13px;
  color: var(--w0b1c-accent);
  margin-bottom: 4px;
}

.w0b1c-testi__txt {
  font-size: 12px;
  color: var(--w0b1c-text);
  line-height: 1.55;
}

.w0b1c-testi__stars { color: #ffc54d; font-size: 12px; letter-spacing: 1px; }

/* RTP table-ish */
.w0b1c-rtp-row {
  display: grid;
  grid-template-columns: 1.4fr 1fr auto;
  gap: 8px;
  align-items: center;
  padding: 8px 10px;
  background: var(--w0b1c-card);
  border: 1px solid var(--w0b1c-border);
  border-radius: 10px;
  margin-bottom: 6px;
}

.w0b1c-rtp-row b { font-size: 12.5px; color: var(--w0b1c-text); }
.w0b1c-rtp-row span { font-size: 11px; color: var(--w0b1c-muted); }
.w0b1c-rtp-row em {
  font-style: normal;
  font-weight: 800;
  font-size: 12px;
  color: #4ade80;
  background: rgba(74,222,128,0.12);
  padding: 3px 8px;
  border-radius: 6px;
}

/* ============ EXTENDED FOOTER ============ */
.w0b1c-extend {
  margin: 18px 0 0;
  padding: 16px 14px;
  background: linear-gradient(180deg, rgba(65,105,225,0.10), rgba(13,17,23,0.4));
  border-top: 1px solid var(--w0b1c-border);
}

.w0b1c-extend__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.w0b1c-extend__brand img {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid var(--w0b1c-border);
}

.w0b1c-extend__brand b {
  font-size: 16px;
  color: var(--w0b1c-text);
}

.w0b1c-extend__brand span {
  display: block;
  font-size: 11px;
  color: var(--w0b1c-muted);
  font-weight: 400;
}

.w0b1c-extend__group {
  margin-bottom: 12px;
}

.w0b1c-extend__label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--w0b1c-muted);
  margin: 0 0 6px;
}

.w0b1c-extend__links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.w0b1c-extend__links a {
  display: block;
  padding: 8px 10px;
  font-size: 12px;
  font-weight: 600;
  color: var(--w0b1c-text);
  background: var(--w0b1c-card);
  border: 1px solid var(--w0b1c-border);
  border-radius: 8px;
  text-align: center;
}

.w0b1c-extend__links a:hover {
  background: rgba(65,105,225,0.15);
  text-decoration: none;
}

.w0b1c-extend__promo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-bottom: 10px;
}

.w0b1c-extend__promo button {
  height: 38px;
  border-radius: 8px;
  border: none;
  font-weight: 700;
  font-size: 12.5px;
  cursor: pointer;
  font-family: inherit;
  background: linear-gradient(135deg, var(--w0b1c-primary), #5b7ff0);
  color: #fff;
  transition: transform 0.15s ease;
}

.w0b1c-extend__promo button:active { transform: scale(0.96); }

.w0b1c-extend__promo button.alt {
  background: transparent;
  color: var(--w0b1c-accent);
  border: 1px solid var(--w0b1c-border);
}

.w0b1c-extend__disclaimer {
  font-size: 11px;
  color: var(--w0b1c-muted);
  line-height: 1.55;
  padding-top: 10px;
  border-top: 1px dashed var(--w0b1c-border);
}

/* ============ FOOTER BAR ============ */
.w0b1c-footer {
  background: var(--w0b1c-bg-3);
  padding: 14px 12px calc(var(--w0b1c-bottom-h) + 12px);
  text-align: center;
  border-top: 1px solid var(--w0b1c-border);
}

.w0b1c-footer__copy {
  font-size: 11.5px;
  color: var(--w0b1c-muted);
  line-height: 1.5;
}

.w0b1c-footer__copy a { color: var(--w0b1c-accent); }

/* ============ MOBILE BOTTOM NAV ============ */
.w0b1c-bottomnav {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  width: 100%;
  max-width: var(--w0b1c-max);
  height: var(--w0b1c-bottom-h);
  background: linear-gradient(180deg, rgba(13,17,23,0.96), rgba(10,15,24,1));
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid var(--w0b1c-border);
  z-index: 50;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  padding: 4px 4px calc(env(safe-area-inset-bottom, 0px) + 4px);
}

.w0b1c-bottomnav__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  color: var(--w0b1c-muted);
  font-size: 10px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 10px;
  margin: 0 2px;
  padding: 4px 0;
  cursor: pointer;
  background: transparent;
  border: none;
  font-family: inherit;
  transition: transform 0.15s ease, color 0.2s ease;
  position: relative;
}

.w0b1c-bottomnav__item:active { transform: scale(0.92); }

.w0b1c-bottomnav__item svg { width: 22px; height: 22px; }

.w0b1c-bottomnav__item span { line-height: 1.1; }

.w0b1c-bottomnav__item.is-active {
  color: var(--w0b1c-text);
}

.w0b1c-bottomnav__item.is-active::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%);
  width: 22px;
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--w0b1c-primary), var(--w0b1c-accent));
}

.w0b1c-bottomnav__item.is-promo {
  color: var(--w0b1c-accent);
}

.w0b1c-bottomnav__item.is-promo svg { filter: drop-shadow(0 0 4px rgba(135,206,235,0.4)); }

/* ============ MISC ============ */
.w0b1c-note {
  font-size: 11.5px;
  color: var(--w0b1c-muted);
  line-height: 1.55;
}

.w0b1c-divider {
  height: 1px;
  background: var(--w0b1c-border);
  margin: 14px 10px;
  border: none;
}

.w0b1c-pill {
  display: inline-block;
  padding: 3px 9px;
  font-size: 11px;
  font-weight: 700;
  border-radius: 999px;
  background: rgba(65,105,225,0.2);
  color: var(--w0b1c-accent);
  border: 1px solid var(--w0b1c-border);
}

@media (min-width: 600px) {
  body { background: #05080d; }
  .w0b1c-shell {
    box-shadow: 0 0 40px rgba(0,0,0,0.6);
  }
}
