/* tk22 theme stylesheet - class prefix: v2f7- */
/* Mobile-first canvas for 320-430px viewports; centered on wider screens. */

:root {
  --v2f7-blue: #4169E1;
  --v2f7-dark: #34495E;
  --v2f7-light: #ECF0F1;
  --v2f7-sky: #87CEEB;
  --v2f7-gray: #808080;
  --v2f7-silver: #C0C0C0;
  --v2f7-bg: #0f1c2e;
  --v2f7-bg-2: #162a44;
  --v2f7-card: #1d3557;
  --v2f7-card-2: #234070;
  --v2f7-text: #ECF0F1;
  --v2f7-muted: #C0C0C0;
  --v2f7-accent: #87CEEB;
  --v2f7-gold: #ffd479;
  --v2f7-radius: 12px;
  --v2f7-shadow: 0 4px 16px rgba(0, 0, 0, 0.28);
  --v2f7-header-h: 58px;
  --v2f7-bottom-h: 64px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--v2f7-bg);
  color: var(--v2f7-text);
  font-family: "Hind Siliguri", "Noto Sans Bengali", "Shonar Bangla", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
}

body {
  max-width: 430px;
  margin: 0 auto;
  min-height: 100vh;
  position: relative;
  background:
    radial-gradient(1200px 400px at 50% -80px, rgba(65, 105, 225, 0.30), transparent 60%),
    linear-gradient(180deg, #0f1c2e 0%, #0a1526 100%);
  padding-bottom: calc(var(--v2f7-bottom-h) + 16px);
}

a { color: var(--v2f7-accent); text-decoration: none; }
a:focus-visible { outline: 2px solid var(--v2f7-sky); outline-offset: 2px; border-radius: 4px; }
img { max-width: 100%; display: block; }

/* ---------- Top navigation ---------- */
.v2f7-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--v2f7-header-h);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
  background: linear-gradient(90deg, #1a2f52 0%, #234070 100%);
  border-bottom: 1px solid rgba(135, 206, 235, 0.25);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.32);
}

.v2f7-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
}
.v2f7-brand img.v2f7-logo {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  object-fit: cover;
  border: 1px solid rgba(135, 206, 235, 0.45);
  background: var(--v2f7-light);
}
.v2f7-brand-name {
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.4px;
  color: #fff;
  line-height: 1.1;
}
.v2f7-brand-name span { color: var(--v2f7-sky); }
.v2f7-brand-tag {
  font-size: 11px;
  color: var(--v2f7-silver);
  letter-spacing: 0.3px;
}

.v2f7-header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}
.v2f7-btn {
  -webkit-appearance: none;
  appearance: none;
  border: none;
  border-radius: 999px;
  padding: 9px 14px;
  font-size: 13px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  min-height: 36px;
  min-width: 44px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.25s ease;
}
.v2f7-btn-login {
  background: transparent;
  color: var(--v2f7-light);
  border: 1px solid rgba(135, 206, 235, 0.55);
}
.v2f7-btn-register {
  background: linear-gradient(90deg, #ffd479, #ff9d3c);
  color: #2a1500;
  box-shadow: 0 3px 10px rgba(255, 157, 60, 0.35);
}
.v2f7-btn:active { transform: scale(0.96); }

.v2f7-menu-btn {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid rgba(135, 206, 235, 0.3);
  background: rgba(255, 255, 255, 0.06);
  color: var(--v2f7-light);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.v2f7-menu-btn svg { width: 20px; height: 20px; }

/* ---------- Expandable nav menu ---------- */
.v2f7-nav-menu {
  position: absolute;
  top: var(--v2f7-header-h);
  right: 0;
  left: 0;
  background: linear-gradient(180deg, #162a44 0%, #0f1c2e 100%);
  border-bottom: 1px solid rgba(135, 206, 235, 0.25);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0 14px;
  z-index: 49;
  box-shadow: var(--v2f7-shadow);
}
.v2f7-nav-menu.v2f7-nav-open {
  max-height: 560px;
  padding: 10px 14px 16px;
}
.v2f7-nav-menu a {
  display: block;
  padding: 11px 12px;
  border-radius: 10px;
  color: var(--v2f7-light);
  font-weight: 600;
  border-bottom: 1px dashed rgba(192, 192, 192, 0.18);
}
.v2f7-nav-menu a:last-child { border-bottom: none; }
.v2f7-nav-menu a:active { background: rgba(65, 105, 225, 0.25); }
.v2f7-nav-menu a small {
  display: block;
  color: var(--v2f7-silver);
  font-weight: 400;
  font-size: 11px;
}

/* ---------- Hero carousel ---------- */
.v2f7-hero {
  position: relative;
  margin: 12px 0 4px;
  padding: 0 12px;
}
.v2f7-slides {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--v2f7-shadow);
  aspect-ratio: 16 / 9;
  background: #000;
}
.v2f7-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.6s ease;
  cursor: pointer;
}
.v2f7-slide.v2f7-active { opacity: 1; }
.v2f7-slide img { width: 100%; height: 100%; object-fit: cover; }
.v2f7-slide-caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 24px 14px 12px;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,0.75));
  color: #fff;
  font-weight: 700;
  font-size: 15px;
}
.v2f7-slide-caption small {
  display: block;
  font-weight: 500;
  color: var(--v2f7-sky);
  font-size: 12px;
  margin-top: 2px;
}
.v2f7-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin: 8px 0 4px;
}
.v2f7-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(192, 192, 192, 0.4);
  border: none;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}
.v2f7-dot.v2f7-active { background: var(--v2f7-sky); transform: scale(1.25); }

/* ---------- Quick action bar ---------- */
.v2f7-quick {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding: 10px 12px 4px;
}
.v2f7-quick a, .v2f7-quick button {
  background: linear-gradient(180deg, #234070, #1a2f52);
  border: 1px solid rgba(135, 206, 235, 0.25);
  border-radius: 12px;
  padding: 10px 6px;
  text-align: center;
  color: var(--v2f7-light);
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  min-height: 44px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
.v2f7-quick .v2f7-qi {
  font-size: 18px;
  line-height: 1;
}

/* ---------- Section / category chips ---------- */
.v2f7-section {
  padding: 12px 12px 4px;
}
.v2f7-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 14px 0 8px;
}
.v2f7-section-title h2 {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  position: relative;
  padding-left: 12px;
}
.v2f7-section-title h2::before {
  content: "";
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
  width: 4px; height: 18px;
  background: linear-gradient(180deg, var(--v2f7-sky), var(--v2f7-blue));
  border-radius: 2px;
}
.v2f7-section-title a { font-size: 12px; color: var(--v2f7-sky); }

.v2f7-cat-chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 0 10px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.v2f7-cat-chips::-webkit-scrollbar { display: none; }
.v2f7-cat-chip {
  flex: 0 0 auto;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--v2f7-light);
  border: 1px solid rgba(192, 192, 192, 0.25);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  font-family: inherit;
}
.v2f7-cat-chip.v2f7-cat-active {
  background: linear-gradient(90deg, var(--v2f7-blue), var(--v2f7-sky));
  color: #fff;
  border-color: transparent;
}

/* ---------- Game grid ---------- */
.v2f7-games {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding: 4px 0 8px;
}
@media (min-width: 360px) {
  .v2f7-games { gap: 10px; }
}
.v2f7-game {
  background: linear-gradient(180deg, #234070, #1a2f52);
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(135, 206, 235, 0.18);
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  display: block;
  text-align: center;
  padding: 0;
  font-family: inherit;
  color: inherit;
}
.v2f7-game:active { transform: scale(0.95); }
.v2f7-game img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: #0a1526;
}
.v2f7-game-name {
  font-size: 11px;
  line-height: 1.25;
  color: var(--v2f7-light);
  padding: 5px 4px 6px;
  font-weight: 600;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 30px;
}

/* ---------- Info / SEO blocks ---------- */
.v2f7-card {
  background: linear-gradient(180deg, rgba(35, 64, 112, 0.7), rgba(29, 53, 87, 0.7));
  border: 1px solid rgba(135, 206, 235, 0.18);
  border-radius: 14px;
  padding: 14px;
  margin: 10px 0;
  color: var(--v2f7-light);
}
.v2f7-card h3 {
  margin: 0 0 6px;
  font-size: 15px;
  color: #fff;
}
.v2f7-card p { margin: 0 0 8px; font-size: 13.5px; color: var(--v2f7-muted); }
.v2f7-card p a { color: var(--v2f7-sky); font-weight: 600; }

.v2f7-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 10px 0;
}
.v2f7-grid-2 .v2f7-mini {
  background: rgba(35, 64, 112, 0.6);
  border: 1px solid rgba(135, 206, 235, 0.18);
  border-radius: 12px;
  padding: 12px;
  text-align: center;
  color: var(--v2f7-light);
}
.v2f7-grid-2 .v2f7-mini strong { display: block; font-size: 16px; color: var(--v2f7-gold); }
.v2f7-grid-2 .v2f7-mini span { font-size: 12px; color: var(--v2f7-silver); }

.v2f7-steps {
  counter-reset: step;
  padding: 0;
  margin: 8px 0;
  list-style: none;
}
.v2f7-steps li {
  position: relative;
  padding: 8px 10px 8px 38px;
  margin-bottom: 8px;
  background: rgba(35, 64, 112, 0.55);
  border-radius: 10px;
  font-size: 13.5px;
  color: var(--v2f7-light);
}
.v2f7-steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 8px; top: 50%;
  transform: translateY(-50%);
  width: 22px; height: 22px;
  border-radius: 50%;
  background: linear-gradient(90deg, var(--v2f7-blue), var(--v2f7-sky));
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* ---------- Promo banner ---------- */
.v2f7-promo {
  display: block;
  margin: 14px 12px;
  padding: 16px;
  border-radius: 16px;
  background: linear-gradient(120deg, #4169E1, #87CEEB);
  color: #fff;
  text-align: center;
  box-shadow: var(--v2f7-shadow);
  border: none;
  cursor: pointer;
  font-family: inherit;
  width: calc(100% - 24px);
}
.v2f7-promo strong { font-size: 17px; display: block; }
.v2f7-promo span { font-size: 13px; opacity: 0.92; }

/* ---------- Extended footer (homepage only) ---------- */
.v2f7-ext-footer {
  padding: 16px 12px 12px;
  margin-top: 14px;
  border-top: 1px solid rgba(135, 206, 235, 0.18);
  background: rgba(15, 28, 46, 0.6);
}
.v2f7-ext-footer .v2f7-brand-intro {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.v2f7-ext-footer .v2f7-brand-intro img {
  width: 44px; height: 44px; border-radius: 10px; object-fit: cover;
}
.v2f7-ext-footer .v2f7-brand-intro p {
  margin: 0; font-size: 12.5px; color: var(--v2f7-muted);
}
.v2f7-ext-footer h4 {
  margin: 12px 0 6px;
  color: #fff;
  font-size: 14px;
}
.v2f7-ext-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 12px;
}
.v2f7-ext-grid a {
  color: var(--v2f7-muted);
  font-size: 12.5px;
  padding: 3px 0;
}
.v2f7-ext-grid a:hover { color: var(--v2f7-sky); }
.v2f7-ext-promos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 8px 0 4px;
}
.v2f7-ext-promos button {
  padding: 10px 8px;
  border-radius: 10px;
  border: 1px solid rgba(135, 206, 235, 0.35);
  background: linear-gradient(90deg, #4169E1, #234070);
  color: #fff;
  font-weight: 700;
  font-size: 12.5px;
  cursor: pointer;
  font-family: inherit;
  min-height: 44px;
}
.v2f7-ext-promos button:nth-child(2n) {
  background: linear-gradient(90deg, #ff9d3c, #ffd479);
  color: #2a1500;
}
.v2f7-disclaimer {
  font-size: 11px;
  color: var(--v2f7-gray);
  line-height: 1.5;
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px dashed rgba(192, 192, 192, 0.2);
}

/* ---------- Copyright ---------- */
.v2f7-copyright {
  padding: 10px 12px 14px;
  text-align: center;
  font-size: 11.5px;
  color: var(--v2f7-gray);
}

/* ---------- Mobile bottom navigation ---------- */
.v2f7-bottom {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  height: var(--v2f7-bottom-h);
  background: linear-gradient(180deg, #1a2f52, #0f1c2e);
  border-top: 1px solid rgba(135, 206, 235, 0.3);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  z-index: 60;
  box-shadow: 0 -3px 14px rgba(0, 0, 0, 0.35);
  padding-bottom: env(safe-area-inset-bottom, 0);
}
.v2f7-bottom button, .v2f7-bottom a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  background: transparent;
  border: none;
  color: var(--v2f7-silver);
  font-size: 10.5px;
  font-weight: 600;
  font-family: inherit;
  text-decoration: none;
  cursor: pointer;
  padding: 6px 2px;
  min-height: 44px;
  transition: color 0.25s ease, transform 0.2s ease;
}
.v2f7-bottom button:active, .v2f7-bottom a:active { transform: translateY(-1px); }
.v2f7-bottom .v2f7-bi { width: 22px; height: 22px; display: inline-flex; }
.v2f7-bottom .v2f7-bi svg { width: 100%; height: 100%; }
.v2f7-bottom .v2f7-active { color: var(--v2f7-sky); }
.v2f7-bottom .v2f7-active .v2f7-bi svg path,
.v2f7-bottom .v2f7-active .v2f7-bi svg circle,
.v2f7-bottom .v2f7-active .v2f7-bi svg polygon,
.v2f7-bottom .v2f7-active .v2f7-bi svg rect {
  fill: var(--v2f7-sky);
}
.v2f7-bottom-promo {
  color: var(--v2f7-gold) !important;
}

/* ---------- Misc helpers ---------- */
.v2f7-container { padding: 0 12px; }
.v2f7-h1 {
  font-size: 20px;
  font-weight: 800;
  margin: 10px 0 4px;
  color: #fff;
  line-height: 1.3;
}
.v2f7-subtitle {
  color: var(--v2f7-silver);
  font-size: 13px;
  margin: 0 0 6px;
}
.v2f7-faq {
  margin: 8px 0;
  padding: 12px;
  border-radius: 12px;
  background: rgba(35, 64, 112, 0.55);
  border: 1px solid rgba(135, 206, 235, 0.18);
}
.v2f7-faq h4 { margin: 0 0 6px; color: #fff; font-size: 14.5px; }
.v2f7-faq p { margin: 0; font-size: 13px; color: var(--v2f7-muted); }
.v2f7-faq p a { color: var(--v2f7-sky); font-weight: 600; }
