/* =========================================================
   karika.click - stylesheet (basefiles)
   All custom classes use prefix: w8984-
   Palette: #1B263B (bg) | #FDF5E6 (light text) | #87CEFA |
            #E0FFFF | #FF8C00 (accent) | #ADB5BD (muted)
   ========================================================= */

:root {
  --w8984-bg: #1B263B;
  --w8984-bg-2: #243349;
  --w8984-bg-3: #0f1a2c;
  --w8984-text: #FDF5E6;
  --w8984-soft: #E0FFFF;
  --w8984-blue: #87CEFA;
  --w8984-orange: #FF8C00;
  --w8984-muted: #ADB5BD;
  --w8984-radius: 12px;
}

* { box-sizing: border-box; }

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

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

a { color: var(--w8984-blue); text-decoration: none; }
a:hover { color: var(--w8984-orange); }
img { max-width: 100%; display: block; }

.w8984-wrap { width: 100%; max-width: 430px; margin: 0 auto; padding: 0 14px; }

/* ---------- Header ---------- */
.w8984-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: linear-gradient(135deg, #0f1a2c 0%, #1B263B 60%, #243349 100%);
  border-bottom: 1px solid rgba(135, 206, 250, 0.25);
  box-shadow: 0 2px 14px rgba(0,0,0,0.35);
}
.w8984-header-row {
  display: flex; align-items: center; justify-content: space-between;
  height: 60px; gap: 8px;
}
.w8984-brand { display: flex; align-items: center; gap: 8px; min-width: 0; }
.w8984-brand img { width: 34px; height: 34px; border-radius: 8px; }
.w8984-brand-name { font-weight: 800; font-size: 20px; color: var(--w8984-soft); letter-spacing: .5px; }
.w8984-brand-name b { color: var(--w8984-orange); }
.w8984-header-actions { display: flex; align-items: center; gap: 6px; }
.w8984-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 38px; padding: 0 14px; border-radius: 20px;
  font-weight: 700; font-size: 14px; cursor: pointer;
  border: none; transition: transform .15s ease, box-shadow .15s ease;
}
.w8984-btn:active { transform: scale(.96); }
.w8984-btn-login {
  background: transparent; color: var(--w8984-soft);
  border: 1.5px solid var(--w8984-blue);
}
.w8984-btn-reg {
  background: linear-gradient(135deg, #FF8C00, #FFB347);
  color: #1B263B;
  box-shadow: 0 4px 14px rgba(255,140,0,.45);
}
.w8984-menu-btn {
  background: transparent; border: none; color: var(--w8984-soft);
  font-size: 22px; padding: 8px; cursor: pointer; border-radius: 8px;
}
.w8984-menu-btn:hover { background: rgba(135,206,250,.12); }

/* ---------- Mobile expandable menu ---------- */
.w8984-mobile-menu {
  max-height: 0; overflow: hidden;
  background: var(--w8984-bg-3);
  transition: max-height .32s ease;
  border-top: 1px solid rgba(135,206,250,.15);
}
.w8984-mobile-menu.w8984-menu-open { max-height: 480px; }
.w8984-mobile-menu .w8984-wrap { padding-top: 8px; padding-bottom: 8px; }
.w8984-mobile-menu a {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 10px; color: var(--w8984-text);
  border-bottom: 1px solid rgba(173,181,189,.14);
  font-weight: 600;
}
.w8984-mobile-menu a:last-child { border-bottom: none; }
.w8984-mobile-menu a i { color: var(--w8984-orange); width: 22px; text-align: center; }

/* ---------- Hero ---------- */
.w8984-hero {
  position: relative; overflow: hidden;
  border-radius: var(--w8984-radius); margin: 14px 0;
  box-shadow: 0 8px 22px rgba(0,0,0,.4);
}
.w8984-hero-slide {
  position: relative; display: none;
  background: linear-gradient(120deg, #243349, #0f1a2c);
}
.w8984-hero-slide.w8984-hero-active { display: block; animation: w8984-fade .6s ease; }
@keyframes w8984-fade { from { opacity: 0; } to { opacity: 1; } }
.w8984-hero-slide img { width: 100%; height: 200px; object-fit: cover; opacity: .9; }
.w8984-hero-cap {
  position: absolute; left: 0; bottom: 0; right: 0;
  padding: 18px 16px 16px;
  background: linear-gradient(0deg, rgba(15,26,44,.95), transparent);
}
.w8984-hero-cap h2 { margin: 0 0 6px; font-size: 22px; color: var(--w8984-soft); }
.w8984-hero-cap p { margin: 0 0 10px; color: var(--w8984-muted); font-size: 13px; }
.w8984-hero-cta {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--w8984-orange); color: #1B263B;
  padding: 8px 18px; border-radius: 20px; font-weight: 800; font-size: 14px;
  cursor: pointer; border: none;
}
.w8984-hero-dots { position: absolute; bottom: 8px; right: 14px; display: flex; gap: 5px; }
.w8984-hero-dots span {
  width: 7px; height: 7px; border-radius: 50%; background: rgba(253,245,230,.4);
}
.w8984-hero-dots span:nth-child(1) { background: var(--w8984-orange); }

/* ---------- Trust bar ---------- */
.w8984-trust {
  display: flex; justify-content: space-around; align-items: center;
  gap: 6px; padding: 10px 0; margin: 6px 0 14px;
  background: var(--w8984-bg-2); border-radius: var(--w8984-radius);
}
.w8984-trust div { text-align: center; flex: 1; }
.w8984-trust b { display: block; color: var(--w8984-orange); font-size: 16px; }
.w8984-trust small { color: var(--w8984-muted); font-size: 11px; }

/* ---------- Section heading ---------- */
.w8984-sec { margin: 22px 0; }
.w8984-sec-h {
  display: flex; align-items: center; justify-content: space-between;
  margin: 0 0 12px;
}
.w8984-sec-h h2 { font-size: 18px; margin: 0; color: var(--w8984-soft); display: flex; align-items: center; gap: 8px; }
.w8984-sec-h h2 i { color: var(--w8984-orange); }
.w8984-sec-h a { font-size: 12px; }

/* ---------- Tabs ---------- */
.w8984-tabs {
  display: flex; gap: 6px; overflow-x: auto; padding-bottom: 8px;
  margin-bottom: 10px; scrollbar-width: none;
}
.w8984-tabs::-webkit-scrollbar { display: none; }
.w8984-tab-btn {
  flex: 0 0 auto; padding: 8px 16px; border-radius: 18px;
  background: var(--w8984-bg-2); color: var(--w8984-muted);
  font-size: 13px; font-weight: 700; border: 1px solid transparent;
  cursor: pointer; white-space: nowrap;
}
.w8984-tab-btn.w8984-tab-active {
  background: linear-gradient(135deg, #FF8C00, #FFB347);
  color: #1B263B; border-color: var(--w8984-orange);
}

/* ---------- Game grid ---------- */
.w8984-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;
}
.w8984-card {
  background: var(--w8984-bg-2); border-radius: var(--w8984-radius);
  overflow: hidden; cursor: pointer; position: relative;
  border: 1px solid rgba(135,206,250,.12);
  transition: transform .15s ease, box-shadow .15s ease;
}
.w8984-card:hover, .w8984-card:active {
  transform: translateY(-3px);
  box-shadow: 0 8px 18px rgba(255,140,0,.25);
  border-color: var(--w8984-orange);
}
.w8984-card img { width: 100%; height: 92px; object-fit: cover; }
.w8984-card-name {
  padding: 6px 6px 8px; font-size: 11.5px; font-weight: 600;
  text-align: center; color: var(--w8984-text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.w8984-card-badge {
  position: absolute; top: 5px; left: 5px;
  background: var(--w8984-orange); color: #1B263B;
  font-size: 9px; font-weight: 800; padding: 2px 6px; border-radius: 8px;
}
.w8984-card-play {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: rgba(15,26,44,.55); opacity: 0; transition: opacity .18s ease;
  color: var(--w8984-orange); font-size: 22px;
}
.w8984-card:hover .w8984-card-play, .w8984-card:active .w8984-card-play { opacity: 1; }

/* ---------- Promo CTA band ---------- */
.w8984-cta-band {
  background: linear-gradient(120deg, #FF8C00, #87CEFA);
  border-radius: var(--w8984-radius); padding: 18px;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  margin: 20px 0; color: #1B263B;
}
.w8984-cta-band h3 { margin: 0; font-size: 18px; }
.w8984-cta-band p { margin: 4px 0 0; font-size: 12px; }
.w8984-cta-band button {
  background: #1B263B; color: var(--w8984-orange);
  border: none; padding: 10px 18px; border-radius: 20px;
  font-weight: 800; cursor: pointer; white-space: nowrap;
}

/* ---------- Promo text link inline ---------- */
.w8984-link {
  color: var(--w8984-orange); font-weight: 800; cursor: pointer;
}
.w8984-link:hover { text-decoration: underline; }

/* ---------- SEO content ---------- */
.w8984-seo {
  background: var(--w8984-bg-2); border-radius: var(--w8984-radius);
  padding: 16px; margin: 18px 0; color: var(--w8984-text);
}
.w8984-seo h2 { color: var(--w8984-soft); font-size: 17px; margin: 0 0 10px; }
.w8984-seo h3 { color: var(--w8984-blue); font-size: 15px; margin: 14px 0 6px; }
.w8984-seo p { margin: 0 0 10px; font-size: 14px; color: var(--w8984-text); }

/* ---------- FAQ ---------- */
.w8984-faq-item {
  background: var(--w8984-bg-2); border-radius: 10px;
  margin-bottom: 8px; overflow: hidden; border: 1px solid rgba(135,206,250,.1);
}
.w8984-faq-q {
  padding: 12px 14px; cursor: pointer; font-weight: 700;
  display: flex; justify-content: space-between; align-items: center;
  color: var(--w8984-soft); font-size: 14px;
}
.w8984-faq-q i { color: var(--w8984-orange); transition: transform .25s ease; }
.w8984-faq-a {
  max-height: 0; overflow: hidden; padding: 0 14px;
  transition: max-height .3s ease, padding .3s ease;
  color: var(--w8984-muted); font-size: 13px;
}
.w8984-faq-item.w8984-faq-open .w8984-faq-a { max-height: 320px; padding: 0 14px 12px; }
.w8984-faq-item.w8984-faq-open .w8984-faq-q i { transform: rotate(45deg); }

/* ---------- Footer ---------- */
.w8984-footer {
  background: var(--w8984-bg-3); margin-top: 24px;
  padding: 22px 0 90px; border-top: 1px solid rgba(135,206,250,.18);
}
.w8984-footer h4 { color: var(--w8984-blue); margin: 14px 0 8px; font-size: 14px; }
.w8984-footer-links { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.w8984-footer-links a { font-size: 12.5px; color: var(--w8984-muted); }
.w8984-footer-copy { color: var(--w8984-muted); font-size: 11px; margin-top: 14px; line-height: 1.5; }

/* ---------- Mobile bottom nav ---------- */
.w8984-bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0;
  height: 62px; z-index: 1000;
  background: linear-gradient(180deg, #243349, #0f1a2c);
  border-top: 1px solid rgba(255,140,0,.4);
  display: flex; justify-content: space-around; align-items: stretch;
  box-shadow: 0 -4px 18px rgba(0,0,0,.45);
}
.w8984-bottom-nav a, .w8984-bottom-nav button {
  flex: 1; min-width: 60px; min-height: 60px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px; background: transparent; border: none;
  color: var(--w8984-muted); font-size: 10px; font-weight: 600;
  cursor: pointer; padding: 4px 0; transition: color .18s ease, transform .15s ease;
}
.w8984-bottom-nav a i, .w8984-bottom-nav button i,
.w8984-bottom-nav a span.material-symbols-outlined,
.w8984-bottom-nav button span.material-symbols-outlined {
  font-size: 22px; transition: transform .18s ease;
}
.w8984-bottom-nav a:hover, .w8984-bottom-nav button:hover { color: var(--w8984-soft); }
.w8984-bottom-nav a:hover i, .w8984-bottom-nav button:hover i,
.w8984-bottom-nav a:hover span.material-symbols-outlined,
.w8984-bottom-nav button:hover span.material-symbols-outlined { transform: translateY(-3px); }
.w8984-bottom-nav .w8984-nav-current { color: var(--w8984-orange); }
.w8984-bottom-nav .w8984-nav-promo {
  position: relative;
}
.w8984-bottom-nav .w8984-nav-promo i,
.w8984-bottom-nav .w8984-nav-promo span.material-symbols-outlined {
  background: linear-gradient(135deg, #FF8C00, #FFB347);
  color: #1B263B; border-radius: 50%; width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center; font-size: 20px;
  margin-top: -18px; box-shadow: 0 4px 12px rgba(255,140,0,.5);
}

/* ---------- Back to top ---------- */
.w8984-to-top {
  position: fixed; right: 14px; bottom: 76px; z-index: 999;
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--w8984-orange); color: #1B263B; border: none;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity .25s ease;
  box-shadow: 0 4px 14px rgba(0,0,0,.4); cursor: pointer;
}
.w8984-to-top.w8984-to-top-show { opacity: 1; pointer-events: auto; }

/* ---------- Desktop hide bottom nav ---------- */
@media (min-width: 769px) {
  .w8984-bottom-nav { display: none; }
  .w8984-footer { padding-bottom: 28px; }
}

/* ---------- Mobile bottom padding for main content ---------- */
@media (max-width: 768px) {
  main { padding-bottom: 80px; }
}

/* Max width constraint */
.w8984-shell { max-width: 430px; margin: 0 auto; }
