/* ============================================================
 * db333.cyou - theme stylesheet (basefiles)
 * Every custom class uses the "w9a9d-" prefix.
 * Code comments are written in English only.
 * Palette: #00FF7F | #ADFF2F | #ECF0F1 | #E0E0E0 | #2E4057
 * ============================================================ */

:root {
  --w9a9d-primary: #00FF7F;       /* Spring green - brand */
  --w9a9d-accent: #ADFF2F;        /* Green yellow - highlight */
  --w9a9d-text: #ECF0F1;          /* Light text */
  --w9a9d-muted: #E0E0E0;         /* Muted light text */
  --w9a9d-bg: #2E4057;            /* Deep teal background */
  --w9a9d-bg-dark: #243447;       /* Darker panel */
  --w9a9d-bg-darker: #1c2836;     /* Footer / nav background */
  --w9a9d-radius: 14px;
  --w9a9d-shadow: 0 8px 24px rgba(0, 0, 0, .35);
  --w9a9d-gradient: linear-gradient(135deg, #00FF7F 0%, #ADFF2F 100%);
  --w9a9d-header-h: 60px;
  --w9a9d-nav-h: 62px;
  font-size: 62.5%;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

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

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

.w9a9d-container {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1.2rem;
  position: relative;
}
@media (min-width: 769px) {
  .w9a9d-container { max-width: 720px; }
}

a { color: var(--w9a9d-accent); text-decoration: none; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { line-height: 1.3; font-weight: 700; }

/* ---------- Header ---------- */
.w9a9d-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--w9a9d-header-h);
  background: var(--w9a9d-bg-darker);
  border-bottom: 2px solid var(--w9a9d-primary);
  z-index: 1000;
  display: flex;
  align-items: center;
}
.w9a9d-header-inner {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .8rem;
}
.w9a9d-logo {
  display: flex;
  align-items: center;
  gap: .6rem;
  color: var(--w9a9d-text);
  font-weight: 800;
  font-size: 1.9rem;
}
.w9a9d-logo img { width: 32px; height: 32px; border-radius: 8px; }
.w9a9d-logo span { background: var(--w9a9d-gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }

.w9a9d-header-actions { display: flex; align-items: center; gap: .5rem; }
.w9a9d-menu-toggle {
  background: transparent;
  border: 1px solid var(--w9a9d-primary);
  color: var(--w9a9d-primary);
  width: 38px; height: 38px;
  border-radius: 10px;
  font-size: 1.8rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.w9a9d-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  padding: .7rem 1.2rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1.35rem;
  border: none;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, opacity .18s ease;
}
.w9a9d-btn:active { transform: scale(.95); }
.w9a9d-btn-primary { background: var(--w9a9d-gradient); color: #15301f; box-shadow: 0 4px 14px rgba(0, 255, 127, .35); }
.w9a9d-btn-ghost { background: transparent; color: var(--w9a9d-text); border: 1px solid var(--w9a9d-muted); }
.w9a9d-btn-block { width: 100%; padding: 1rem; font-size: 1.5rem; }

/* ---------- Main ---------- */
.w9a9d-main { padding-top: calc(var(--w9a9d-header-h) + 8px); }
@media (max-width: 768px) {
  .w9a9d-main { padding-bottom: calc(var(--w9a9d-nav-h) + 24px); }
}

/* ---------- Mobile menu drawer ---------- */
.w9a9d-menu-overlay {
  position: fixed; inset: 0;
  background: rgba(0, 0, 0, .55);
  opacity: 0; visibility: hidden;
  transition: opacity .25s ease;
  z-index: 9998;
}
.w9a9d-menu-overlay.w9a9d-overlay-show { opacity: 1; visibility: visible; }
.w9a9d-mobile-menu {
  position: fixed;
  top: 0; right: -86%;
  width: 80%; max-width: 320px;
  height: 100vh;
  background: var(--w9a9d-bg-dark);
  z-index: 9999;
  padding: 1.6rem 1.2rem;
  transition: right .28s ease;
  overflow-y: auto;
}
.w9a9d-mobile-menu.w9a9d-menu-open { right: 0; }
.w9a9d-menu-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.4rem; }
.w9a9d-menu-close { background: transparent; border: none; color: var(--w9a9d-text); font-size: 2rem; cursor: pointer; }
.w9a9d-menu-link {
  display: block;
  padding: .9rem .6rem;
  color: var(--w9a9d-text);
  font-size: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.w9a9d-menu-link:active { color: var(--w9a9d-accent); }

/* ---------- Hero carousel ---------- */
.w9a9d-hero { padding: .8rem 0 1.2rem; }
.w9a9d-carousel { position: relative; border-radius: var(--w9a9d-radius); overflow: hidden; box-shadow: var(--w9a9d-shadow); }
#w9a9d-hero-carousel { position: relative; height: 188px; }
.w9a9d-carousel-item {
  position: absolute; inset: 0;
  opacity: 0;
  transition: opacity var(--w9a9d-transition, .5s) ease;
}
.w9a9d-carousel-item.w9a9d-carousel-active { opacity: 1; }
.w9a9d-carousel-item img { width: 100%; height: 100%; object-fit: cover; cursor: pointer; }
.w9a9d-carousel-cta {
  position: absolute; left: 1rem; bottom: 1rem; right: 1rem;
  background: rgba(28, 40, 54, .82);
  border: 1px solid var(--w9a9d-primary);
  border-radius: 12px;
  padding: .6rem .9rem;
  display: flex; align-items: center; justify-content: space-between; gap: .6rem;
  color: var(--w9a9d-text); font-size: 1.3rem;
}
.w9a9d-carousel-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(0, 0, 0, .45); color: #fff;
  border: none; cursor: pointer; font-size: 1.4rem;
  display: flex; align-items: center; justify-content: center;
}
#w9a9d-carousel-prev { left: 8px; }
#w9a9d-carousel-next { right: 8px; }
.w9a9d-carousel-dots {
  position: absolute; bottom: 8px; left: 0; right: 0;
  display: flex; justify-content: center; gap: 6px;
}
.w9a9d-carousel-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255, 255, 255, .45); cursor: pointer; border: none;
}
.w9a9d-carousel-dot.w9a9d-dot-active { background: var(--w9a9d-primary); width: 18px; border-radius: 5px; }

/* ---------- Section title ---------- */
.w9a9d-section { padding: 1.6rem 0; }
.w9a9d-section-title {
  font-size: 1.9rem;
  color: var(--w9a9d-text);
  margin-bottom: .6rem;
  display: flex; align-items: center; gap: .6rem;
}
.w9a9d-section-title i { color: var(--w9a9d-primary); font-size: 2.1rem; }
.w9a9d-section-title em { color: var(--w9a9d-accent); font-style: normal; }
.w9a9d-section-sub { color: var(--w9a9d-muted); font-size: 1.35rem; margin-bottom: 1rem; }

/* ---------- Filter chips ---------- */
.w9a9d-filters { display: flex; gap: .5rem; overflow-x: auto; padding: .4rem 0 1rem; -webkit-overflow-scrolling: touch; }
.w9a9d-filter-chip {
  flex: 0 0 auto;
  padding: .5rem 1.1rem;
  border-radius: 999px;
  background: var(--w9a9d-bg-dark);
  color: var(--w9a9d-muted);
  font-size: 1.25rem;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
}
.w9a9d-filter-chip.w9a9d-chip-active { background: var(--w9a9d-gradient); color: #15301f; font-weight: 700; }

/* ---------- Game grid ---------- */
.w9a9d-game-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .7rem;
}
.w9a9d-game-card {
  background: var(--w9a9d-bg-dark);
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, .06);
  transition: transform .18s ease, box-shadow .18s ease;
  position: relative;
}
.w9a9d-game-card:active { transform: scale(.96); }
.w9a9d-game-card img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.w9a9d-game-name {
  font-size: 1.15rem;
  padding: .35rem .4rem .55rem;
  text-align: center;
  color: var(--w9a9d-text);
  line-height: 1.25;
  min-height: 2.5em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.w9a9d-game-tag {
  position: absolute; top: 6px; left: 6px;
  background: var(--w9a9d-primary);
  color: #15301f;
  font-size: 1rem; font-weight: 700;
  padding: .15rem .45rem;
  border-radius: 6px;
}
.w9a9d-game-card .w9a9d-game-hover {
  position: absolute; inset: 0; background: rgba(0, 0, 0, .35);
  opacity: 0; transition: opacity .2s ease;
  display: flex; align-items: center; justify-content: center;
  color: var(--w9a9d-primary); font-size: 2.2rem;
}
.w9a9d-game-card:hover .w9a9d-game-hover { opacity: 1; }

/* ---------- Generic card / panel ---------- */
.w9a9d-card {
  background: var(--w9a9d-bg-dark);
  border-radius: var(--w9a9d-radius);
  padding: 1.2rem;
  box-shadow: var(--w9a9d-shadow);
  border: 1px solid rgba(0, 255, 127, .12);
}
.w9a9d-card h3 { color: var(--w9a9d-accent); font-size: 1.5rem; margin-bottom: .5rem; }
.w9a9d-card p { color: var(--w9a9d-muted); font-size: 1.3rem; }

.w9a9d-grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: .7rem; }
.w9a9d-feature {
  background: var(--w9a9d-bg-dark);
  border-radius: 12px;
  padding: 1rem;
  text-align: center;
  border: 1px solid rgba(173, 255, 47, .14);
}
.w9a9d-feature i { font-size: 2.6rem; color: var(--w9a9d-primary); }
.w9a9d-feature h4 { margin: .4rem 0 .2rem; font-size: 1.35rem; color: var(--w9a9d-text); }
.w9a9d-feature p { font-size: 1.2rem; color: var(--w9a9d-muted); }

/* ---------- Promo banner ---------- */
.w9a9d-promo {
  background: var(--w9a9d-gradient);
  color: #15301f;
  border-radius: var(--w9a9d-radius);
  padding: 1.2rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  box-shadow: var(--w9a9d-shadow);
}
.w9a9d-promo h3 { font-size: 1.6rem; color: #15301f; }
.w9a9d-promo p { font-size: 1.25rem; color: #1f3d28; }
.w9a9d-promo-btn { background: var(--w9a9d-bg-darker); color: var(--w9a9d-accent); padding: .7rem 1.2rem; border-radius: 999px; font-weight: 700; border: none; cursor: pointer; font-size: 1.3rem; }

/* ---------- Testimonials ---------- */
.w9a9d-testimonial { background: var(--w9a9d-bg-dark); border-radius: 12px; padding: 1rem; border-left: 3px solid var(--w9a9d-accent); }
.w9a9d-testimonial p { font-size: 1.25rem; color: var(--w9a9d-muted); margin-bottom: .5rem; }
.w9a9d-testimonial cite { color: var(--w9a9d-primary); font-style: normal; font-size: 1.2rem; }

/* ---------- Winners ticker ---------- */
.w9a9d-winners { display: grid; grid-template-columns: repeat(2, 1fr); gap: .5rem; }
.w9a9d-winner { background: var(--w9a9d-bg-dark); border-radius: 10px; padding: .6rem .8rem; font-size: 1.2rem; display: flex; justify-content: space-between; align-items: center; }
.w9a9d-winner b { color: var(--w9a9d-accent); }

/* ---------- FAQ ---------- */
.w9a9d-faq-item { background: var(--w9a9d-bg-dark); border-radius: 10px; padding: .9rem 1rem; margin-bottom: .6rem; border: 1px solid rgba(255,255,255,.06); }
.w9a9d-faq-item h4 { color: var(--w9a9d-primary); font-size: 1.35rem; margin-bottom: .3rem; }
.w9a9d-faq-item p { color: var(--w9a9d-muted); font-size: 1.25rem; }

/* ---------- Payment grid ---------- */
.w9a9d-pay-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; }
.w9a9d-pay-item { background: #fff; color: var(--w9a9d-bg); border-radius: 10px; padding: .8rem .4rem; text-align: center; font-weight: 700; font-size: 1.2rem; }

/* ---------- Reveal animation ---------- */
.w9a9d-reveal { opacity: 0; transform: translateY(20px); transition: opacity .55s ease, transform .55s ease; }
.w9a9d-reveal.w9a9d-revealed { opacity: 1; transform: translateY(0); }

/* ---------- Back-to-top ---------- */
#w9a9d-back-top {
  position: fixed; right: 14px; bottom: calc(var(--w9a9d-nav-h) + 14px);
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--w9a9d-bg-darker); color: var(--w9a9d-primary);
  border: 1px solid var(--w9a9d-primary);
  opacity: 0; visibility: hidden; transition: opacity .25s ease;
  z-index: 999; cursor: pointer; font-size: 1.6rem;
  display: flex; align-items: center; justify-content: center;
}
#w9a9d-back-top.w9a9d-back-show { opacity: 1; visibility: visible; }
@media (min-width: 769px) { #w9a9d-back-top { bottom: 20px; } }

/* ---------- Footer ---------- */
.w9a9d-footer {
  background: var(--w9a9d-bg-darker);
  border-top: 2px solid var(--w9a9d-primary);
  padding: 1.6rem 0 2rem;
  margin-top: 1.4rem;
}
.w9a9d-footer p { color: var(--w9a9d-muted); font-size: 1.25rem; margin-bottom: .8rem; }
.w9a9d-footer-links { display: flex; flex-wrap: wrap; gap: .5rem .9rem; margin: .8rem 0; }
.w9a9d-footer-links a { color: var(--w9a9d-muted); font-size: 1.2rem; text-decoration: underline; }
.w9a9d-footer-copy { color: var(--w9a9d-muted); font-size: 1.15rem; border-top: 1px solid rgba(255,255,255,.08); padding-top: .8rem; margin-top: .8rem; }

/* ---------- Mobile bottom navigation ---------- */
.w9a9d-bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0;
  height: var(--w9a9d-nav-h);
  background: var(--w9a9d-bg-darker);
  border-top: 2px solid var(--w9a9d-primary);
  display: flex; justify-content: space-around; align-items: center;
  z-index: 1000;
  box-shadow: 0 -4px 18px rgba(0,0,0,.35);
}
.w9a9d-nav-btn {
  flex: 1;
  min-width: 60px; min-height: var(--w9a9d-nav-h);
  background: transparent; border: none;
  color: var(--w9a9d-muted);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px;
  cursor: pointer;
  position: relative;
  font-family: inherit;
}
.w9a9d-nav-btn i, .w9a9d-nav-btn .material-icons-outlined, .w9a9d-nav-btn .material-icons {
  font-size: 2.2rem;
}
.w9a9d-nav-btn span { font-size: 1.05rem; }
.w9a9d-nav-btn:active { color: var(--w9a9d-accent); transform: scale(.92); }
.w9a9d-nav-btn.w9a9d-nav-active { color: var(--w9a9d-primary); }
.w9a9d-nav-btn.w9a9d-nav-active::before {
  content: ""; position: absolute; top: 0; left: 30%; right: 30%; height: 3px;
  background: var(--w9a9d-gradient); border-radius: 0 0 4px 4px;
}
.w9a9d-nav-promo { color: var(--w9a9d-accent); }

/* Hide bottom nav on desktop, show desktop top nav instead */
@media (min-width: 769px) {
  .w9a9d-bottom-nav { display: none; }
  .w9a9d-desktop-nav { display: flex !important; gap: 1rem; align-items: center; }
}
.w9a9d-desktop-nav { display: none; }
.w9a9d-desktop-nav a { color: var(--w9a9d-text); font-size: 1.25rem; }

/* Utility helpers */
.w9a9d-text-center { text-align: center; }
.w9a9d-mt-1 { margin-top: .6rem; } .w9a9d-mt-2 { margin-top: 1.2rem; }
.w9a9d-hidden { display: none !important; }
.w9a9d-bn { word-break: break-word; }
