/* ==========================================================================
   takabet app - basefiles stylesheet
   Class prefix: v204-  /  CSS custom props also prefixed v204-
   Layout target: 320-430px mobile canvas, centered on wider screens.
   Palette: #0E1621 (dark bg) / #F8F9FA (light text) / #FA8072 (accent).
   ========================================================================== */

:root {
  --v204-bg: #0E1621;
  --v204-bg-2: #131E2C;
  --v204-bg-3: #1A2636;
  --v204-line: #25344A;
  --v204-ink: #F8F9FA;
  --v204-ink-2: #C6CFDA;
  --v204-ink-3: #8B97A8;
  --v204-accent: #FA8072;
  --v204-accent-2: #FF9E8B;
  --v204-accent-deep: #E06355;
  --v204-gold: #F2C26A;
  --v204-ok: #5BD6A6;
  --v204-shadow: 0 6px 18px rgba(0, 0, 0, .35);
  --v204-r-sm: 8px;
  --v204-r-md: 12px;
  --v204-r-lg: 18px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--v204-bg);
  color: var(--v204-ink);
  font-family: "Hind Siliguri", "Noto Sans Bengali", "SolaimanLipi", system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  line-height: 1.55;
}

body {
  min-height: 100vh;
  /* desktop: keep mobile canvas centered */
  display: flex;
  justify-content: center;
}

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

a { color: var(--v204-ink); text-decoration: none; }

.v204-canvas {
  width: 100%;
  max-width: 430px;
  min-height: 100vh;
  background: var(--v204-bg);
  position: relative;
  padding-bottom: 76px; /* bottom nav clearance */
}

/* ---------------- Top navigation ---------------- */
.v204-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: linear-gradient(180deg, #0B111B 0%, #0E1621 100%);
  border-bottom: 1px solid var(--v204-line);
}

.v204-header-top {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
}

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

.v204-brand .v204-logo {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  object-fit: cover;
  background: var(--v204-bg-3);
  border: 1px solid var(--v204-line);
  flex-shrink: 0;
}

.v204-brand-name {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  min-width: 0;
}
.v204-brand-name strong {
  font-size: 16px;
  color: var(--v204-ink);
  letter-spacing: .2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.v204-brand-name span {
  font-size: 11px;
  color: var(--v204-accent);
  letter-spacing: .14em;
  text-transform: uppercase;
}

.v204-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.v204-btn {
  border: 0;
  border-radius: 999px;
  font-weight: 700;
  font-size: 13px;
  padding: 9px 16px;
  cursor: pointer;
  min-height: 38px;
  min-width: 64px;
  transition: transform .12s ease, background .2s ease;
  font-family: inherit;
}
.v204-btn:active { transform: translateY(1px) scale(.98); }
.v204-btn-login {
  background: transparent;
  color: var(--v204-ink);
  border: 1px solid var(--v204-line);
}
.v204-btn-register {
  background: linear-gradient(135deg, var(--v204-accent) 0%, var(--v204-accent-deep) 100%);
  color: #fff;
  box-shadow: 0 4px 12px rgba(250, 128, 114, .35);
}

/* Sub menu bar */
.v204-subnav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px 8px;
  gap: 8px;
}
.v204-subnav-links {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
  flex: 1;
}
.v204-subnav-links::-webkit-scrollbar { display: none; }
.v204-subnav-links a {
  font-size: 12px;
  color: var(--v204-ink-2);
  padding: 6px 10px;
  border-radius: 999px;
  white-space: nowrap;
  flex-shrink: 0;
}
.v204-subnav-links a:hover { color: var(--v204-ink); background: var(--v204-bg-3); }

.v204-menu-btn {
  background: var(--v204-bg-3);
  border: 1px solid var(--v204-line);
  color: var(--v204-ink);
  width: 34px;
  height: 34px;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}
.v204-menu-btn span {
  display: block;
  width: 16px;
  height: 2px;
  background: var(--v204-ink);
  position: relative;
}
.v204-menu-btn span::before,
.v204-menu-btn span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 16px;
  height: 2px;
  background: var(--v204-ink);
}
.v204-menu-btn span::before { top: -5px; }
.v204-menu-btn span::after { top: 5px; }

/* Expandable menu panel */
.v204-menu-panel {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--v204-bg-2);
  border-bottom: 1px solid var(--v204-line);
  padding: 12px 14px 16px;
  display: none;
  z-index: 55;
  box-shadow: var(--v204-shadow);
}
.v204-menu-panel.v204-menu-open { display: block; }
.v204-menu-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}
.v204-menu-grid a {
  display: block;
  padding: 10px 12px;
  border-radius: var(--v204-r-sm);
  background: var(--v204-bg-3);
  border: 1px solid var(--v204-line);
  font-size: 13px;
  color: var(--v204-ink);
}
.v204-menu-grid a:hover { border-color: var(--v204-accent); color: var(--v204-accent); }
.v204-menu-title {
  font-size: 11px;
  color: var(--v204-ink-3);
  text-transform: uppercase;
  letter-spacing: .14em;
  margin: 4px 2px 8px;
}

/* ---------------- Hero carousel ---------------- */
.v204-hero {
  position: relative;
  margin: 12px 0 0;
  padding: 0 12px;
}
.v204-carousel {
  position: relative;
  border-radius: var(--v204-r-lg);
  overflow: hidden;
  background: var(--v204-bg-2);
  aspect-ratio: 16 / 9;
  box-shadow: var(--v204-shadow);
}
.v204-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .6s ease;
  cursor: pointer;
}
.v204-slide img { width: 100%; height: 100%; object-fit: cover; }
.v204-slide .v204-slide-cap {
  position: absolute;
  left: 14px;
  bottom: 14px;
  right: 14px;
  background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,.7) 100%);
  color: #fff;
  padding: 24px 14px 12px;
  border-radius: 0 0 var(--v204-r-lg) var(--v204-r-lg);
  font-size: 13px;
}
.v204-slide .v204-slide-cap strong { display: block; font-size: 16px; color: var(--v204-accent-2); margin-bottom: 3px; }
.v204-slide.v204-slide-active { opacity: 1; }

.v204-hero-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin: 10px 0 4px;
}
.v204-hero-dots i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--v204-line);
}

/* ---------------- Sections ---------------- */
.v204-section {
  padding: 16px 12px 4px;
}
.v204-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.v204-section-head h2 {
  font-size: 17px;
  margin: 0;
  color: var(--v204-ink);
  position: relative;
  padding-left: 12px;
}
.v204-section-head h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  bottom: 4px;
  width: 4px;
  border-radius: 4px;
  background: linear-gradient(180deg, var(--v204-accent) 0%, var(--v204-accent-deep) 100%);
}
.v204-section-head a {
  font-size: 12px;
  color: var(--v204-accent);
}

/* ---------------- Game grid ---------------- */
.v204-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
@media (min-width: 360px) {
  .v204-grid { gap: 9px; }
}
.v204-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--v204-bg-2);
  border: 1px solid var(--v204-line);
  border-radius: var(--v204-r-md);
  padding: 6px;
  cursor: pointer;
  transition: transform .12s ease, border-color .2s ease;
  text-align: center;
}
.v204-card:active { transform: scale(.97); }
.v204-card:hover { border-color: var(--v204-accent); }
.v204-card-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: var(--v204-r-sm);
  object-fit: cover;
  background: var(--v204-bg-3);
}
.v204-card-name {
  font-size: 11px;
  color: var(--v204-ink-2);
  margin-top: 5px;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 28px;
}

/* Hot badge */
.v204-card.v204-card-hot::after {
  content: "হট";
  position: absolute;
}

/* Category chip row */
.v204-chips {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin: 0 12px 8px;
}
.v204-chip {
  font-size: 12px;
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--v204-bg-3);
  border: 1px solid var(--v204-line);
  color: var(--v204-ink-2);
}

/* Winner list */
.v204-winners {
  background: var(--v204-bg-2);
  border: 1px solid var(--v204-line);
  border-radius: var(--v204-r-md);
  padding: 8px 12px;
  font-size: 12.5px;
}
.v204-winners li {
  list-style: none;
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  border-bottom: 1px dashed var(--v204-line);
  color: var(--v204-ink-2);
}
.v204-winners li:last-child { border-bottom: 0; }
.v204-winners b { color: var(--v204-ok); }

/* Promo tiles */
.v204-promo-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 9px;
}
.v204-promo-tile {
  position: relative;
  background: linear-gradient(135deg, #1B2A40 0%, #0E1621 100%);
  border: 1px solid var(--v204-line);
  border-radius: var(--v204-r-md);
  padding: 12px;
  min-height: 96px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
}
.v204-promo-tile:hover { border-color: var(--v204-accent); }
.v204-promo-tile h3 { margin: 0 0 4px; font-size: 14px; color: var(--v204-accent-2); }
.v204-promo-tile p { margin: 0; font-size: 11.5px; color: var(--v204-ink-3); }
.v204-promo-tile strong { color: var(--v204-gold); }

/* Summary tiles */
.v204-summary {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}
.v204-summary-tile {
  background: var(--v204-bg-2);
  border: 1px solid var(--v204-line);
  border-radius: var(--v204-r-md);
  padding: 12px;
}
.v204-summary-tile .v204-ico {
  width: 30px; height: 30px;
  border-radius: 8px;
  background: rgba(250,128,114,.15);
  color: var(--v204-accent);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 700;
  margin-bottom: 6px;
}
.v204-summary-tile h3 { margin: 0 0 4px; font-size: 13px; color: var(--v204-ink); }
.v204-summary-tile p { margin: 0; font-size: 11.5px; color: var(--v204-ink-3); }

/* CTA band */
.v204-cta {
  margin: 16px 12px 6px;
  border-radius: var(--v204-r-lg);
  background: linear-gradient(135deg, #FA8072 0%, #E06355 100%);
  color: #fff;
  padding: 18px 16px;
  text-align: center;
  box-shadow: 0 8px 24px rgba(250,128,114,.32);
}
.v204-cta h2 { color: #fff; margin: 0 0 4px; font-size: 19px; }
.v204-cta p { margin: 0 0 12px; font-size: 13px; color: #fff; opacity: .92; }
.v204-cta .v204-btn-cta {
  background: #0E1621;
  color: #fff;
  border: 0;
  padding: 11px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  font-family: inherit;
}
.v204-cta .v204-btn-cta:active { transform: scale(.98); }

/* ---------------- Extended footer ---------------- */
.v204-xfooter {
  margin-top: 18px;
  padding: 16px 14px 6px;
  background: var(--v204-bg-2);
  border-top: 1px solid var(--v204-line);
}
.v204-xfooter h3 {
  font-size: 13px;
  color: var(--v204-accent);
  margin: 14px 0 8px;
  letter-spacing: .04em;
}
.v204-xfooter h3:first-child { margin-top: 0; }
.v204-xfooter p { font-size: 12.5px; color: var(--v204-ink-3); margin: 0 0 8px; line-height: 1.65; }
.v204-xfooter ul { padding: 0; margin: 0; list-style: none; }
.v204-xfooter ul li { margin: 0 0 6px; }
.v204-xfooter ul li a {
  font-size: 12.5px;
  color: var(--v204-ink-2);
}
.v204-xfooter ul li a:hover { color: var(--v204-accent); }

.v204-xfooter-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px 12px;
}

.v204-promo-links {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.v204-promo-links a {
  display: block;
  background: var(--v204-bg-3);
  border: 1px solid var(--v204-line);
  border-radius: var(--v204-r-sm);
  padding: 9px 12px;
  font-size: 12.5px;
  color: var(--v204-ink);
}
.v204-promo-links a:hover { border-color: var(--v204-accent); color: var(--v204-accent); }
.v204-promo-links a span { color: var(--v204-accent); float: right; }

.v204-disclaimer {
  background: rgba(250,128,114,.08);
  border: 1px solid var(--v204-line);
  border-radius: var(--v204-r-sm);
  padding: 10px 12px;
  font-size: 11.5px;
  color: var(--v204-ink-3);
  margin-top: 12px;
}

/* ---------------- Bottom nav ---------------- */
.v204-bottom-nav {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  width: 100%;
  max-width: 430px;
  background: linear-gradient(180deg, #0B111B 0%, #0E1621 100%);
  border-top: 1px solid var(--v204-line);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  padding: 6px 4px 8px;
  z-index: 70;
}
.v204-nav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  background: transparent;
  border: 0;
  color: var(--v204-ink-3);
  font-size: 10.5px;
  font-family: inherit;
  cursor: pointer;
  padding: 4px 2px;
  border-radius: 10px;
  position: relative;
  transition: color .2s ease;
  text-decoration: none;
}
.v204-nav-btn .v204-nav-ico {
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--v204-ink-3);
}
.v204-nav-btn .v204-nav-ico svg { width: 22px; height: 22px; display: block; }
.v204-nav-btn.v204-nav-active { color: var(--v204-accent); }
.v204-nav-btn.v204-nav-active .v204-nav-ico { color: var(--v204-accent); }
.v204-nav-btn.v204-nav-active::before {
  content: "";
  position: absolute;
  top: -6px;
  width: 26px;
  height: 3px;
  border-radius: 0 0 3px 3px;
  background: var(--v204-accent);
}
.v204-nav-btn:active { transform: scale(.92); }

/* Privacy/Responsive helpers */
.v204-hide { display: none !important; }

@media (min-width: 431px) {
  body { background: #060B12; padding: 14px 0; }
  .v204-canvas { border-left: 1px solid var(--v204-line); border-right: 1px solid var(--v204-line); }
}
