/* ============================================================
 * 2899a.click - Theme stylesheet
 * Every custom class uses the dynamic prefix "w3f38-".
 * Palette: #1A1A1A (bg) | #FF5722 (primary) | #FFB3FF | #FFB3BA
 * Mobile-first layout, max-width 430px design target.
 * ============================================================ */

:root {
  --w3f38-bg: #1A1A1A;
  --w3f38-bg-2: #241016;
  --w3f38-bg-3: #2a1010;
  --w3f38-primary: #FF5722;
  --w3f38-primary-dark: #d8420f;
  --w3f38-pink: #FFB3FF;
  --w3f38-rose: #FFB3BA;
  --w3f38-text: #f7f5f8;
  --w3f38-muted: #b9b5bf;
  --w3f38-border: rgba(255, 87, 34, 0.25);
  --w3f38-shadow: 0 6px 20px rgba(0, 0, 0, 0.45);
  --w3f38-radius: 14px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  padding: 0;
  font-family: "Segoe UI", "Be Vietnam Pro", system-ui, -apple-system, Arial, sans-serif;
  background: linear-gradient(160deg, #1A1A1A 0%, #261016 55%, #2a1010 100%);
  color: var(--w3f38-text);
  line-height: 1.55;
  font-size: 15px;
  overflow-x: hidden;
}

a { color: var(--w3f38-rose); text-decoration: none; }
a:hover { color: var(--w3f38-primary); }
img { max-width: 100%; display: block; }

/* ---------------- Header ---------------- */
.w3f38-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(20, 10, 12, 0.96);
  border-bottom: 1px solid var(--w3f38-border);
  backdrop-filter: blur(8px);
}
.w3f38-header-inner {
  max-width: 430px;
  margin: 0 auto;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.w3f38-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 18px;
  color: var(--w3f38-text);
}
.w3f38-logo img { width: 30px; height: 30px; border-radius: 8px; }
.w3f38-logo .w3f38-logo-text {
  background: linear-gradient(90deg, var(--w3f38-primary), var(--w3f38-pink));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.w3f38-header-actions { display: flex; gap: 6px; align-items: center; }
.w3f38-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 14px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  border: none;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
  min-height: 38px;
}
.w3f38-btn:active { transform: scale(0.94); }
.w3f38-btn-primary {
  background: linear-gradient(90deg, var(--w3f38-primary), #ff7a48);
  color: #fff;
  box-shadow: 0 4px 14px rgba(255, 87, 34, 0.45);
}
.w3f38-btn-ghost {
  background: transparent;
  border: 1px solid var(--w3f38-border);
  color: var(--w3f38-text);
}
.w3f38-btn-pink {
  background: linear-gradient(90deg, var(--w3f38-pink), var(--w3f38-rose));
  color: #2a1010;
}
.w3f38-menu-btn {
  background: transparent;
  border: none;
  color: var(--w3f38-text);
  font-size: 22px;
  cursor: pointer;
  padding: 6px;
}

/* ---------------- Mobile slide menu ---------------- */
.w3f38-mobile-menu {
  position: fixed;
  top: 0; right: -100%;
  width: 80%; max-width: 320px;
  height: 100vh;
  background: #160a0d;
  z-index: 9999;
  padding: 70px 18px 30px;
  transition: right .28s ease;
  border-left: 1px solid var(--w3f38-border);
  overflow-y: auto;
}
.w3f38-mobile-menu.w3f38-menu-open { right: 0; }
.w3f38-mobile-menu a {
  display: block;
  padding: 12px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--w3f38-text);
  font-weight: 600;
  font-size: 15px;
}
.w3f38-mobile-menu a:hover { color: var(--w3f38-primary); padding-left: 16px; }
.w3f38-menu-close {
  position: absolute;
  top: 14px; right: 14px;
  background: transparent;
  border: none;
  color: var(--w3f38-text);
  font-size: 24px;
  cursor: pointer;
}
.w3f38-menu-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 9998;
}
.w3f38-menu-overlay.w3f38-menu-open { display: block; }

/* ---------------- Layout ---------------- */
.w3f38-wrapper {
  max-width: 430px;
  margin: 0 auto;
  padding: 0 12px;
}
main { padding-top: 64px; padding-bottom: 90px; }
.w3f38-section { padding: 22px 0; }
.w3f38-section-title {
  font-size: 20px;
  font-weight: 800;
  margin: 0 0 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.w3f38-section-title .w3f38-bar {
  width: 5px; height: 20px;
  background: linear-gradient(var(--w3f38-primary), var(--w3f38-pink));
  border-radius: 3px;
}
.w3f38-eyebrow {
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 11px;
  color: var(--w3f38-primary);
  font-weight: 700;
}

/* ---------------- Hero / Carousel ---------------- */
.w3f38-hero { padding: 16px 0 6px; }
.w3f38-carousel {
  position: relative;
  border-radius: var(--w3f38-radius);
  overflow: hidden;
  box-shadow: var(--w3f38-shadow);
}
.w3f38-slide {
  display: none;
  position: relative;
}
.w3f38-slide.w3f38-slide-active { display: block; }
.w3f38-slide img { width: 100%; height: 190px; object-fit: cover; }
.w3f38-slide-overlay {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 14px;
  background: linear-gradient(0deg, rgba(0,0,0,0.85), transparent);
  color: #fff;
}
.w3f38-slide-overlay h2 { margin: 0 0 4px; font-size: 17px; }
.w3f38-slide-overlay p { margin: 0; font-size: 12px; color: var(--w3f38-rose); }
.w3f38-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  padding: 8px 0;
}
.w3f38-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.35);
  cursor: pointer;
  border: none;
}
.w3f38-dot.w3f38-dot-active { background: var(--w3f38-primary); }

/* ---------------- H1 intro ---------------- */
.w3f38-h1 {
  font-size: 22px;
  line-height: 1.3;
  margin: 14px 0 8px;
  font-weight: 800;
}
.w3f38-intro { color: var(--w3f38-muted); font-size: 14px; }
.w3f38-intro strong { color: var(--w3f38-text); }

/* ---------------- Filter tabs ---------------- */
.w3f38-filter {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 6px 0 12px;
  scrollbar-width: none;
}
.w3f38-filter::-webkit-scrollbar { display: none; }
.w3f38-filter-tab {
  flex: 0 0 auto;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  color: var(--w3f38-muted);
  font-size: 12px;
  font-weight: 700;
  border: 1px solid transparent;
  cursor: pointer;
}
.w3f38-filter-tab-active {
  background: linear-gradient(90deg, var(--w3f38-primary), #ff7a48);
  color: #fff;
}

/* ---------------- Game grid ---------------- */
.w3f38-game-group { margin-bottom: 18px; }
.w3f38-group-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}
.w3f38-group-head h3 {
  font-size: 16px;
  margin: 0;
  font-weight: 700;
  display: flex; align-items: center; gap: 6px;
}
.w3f38-group-head .w3f38-more { font-size: 12px; color: var(--w3f38-primary); }
.w3f38-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.w3f38-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 12px;
  padding: 8px 6px;
  text-align: center;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease;
  overflow: hidden;
}
.w3f38-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(255,87,34,0.25);
  border-color: var(--w3f38-border);
}
.w3f38-card img {
  width: 100%; height: 64px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 6px;
}
.w3f38-card-name {
  font-size: 11px;
  font-weight: 600;
  color: var(--w3f38-text);
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.w3f38-card-tag {
  display: inline-block;
  font-size: 9px;
  padding: 2px 6px;
  border-radius: 6px;
  background: rgba(255,87,34,0.18);
  color: var(--w3f38-primary);
  margin-top: 4px;
}

/* ---------------- Promo banner ---------------- */
.w3f38-promo {
  background: linear-gradient(120deg, rgba(255,87,34,0.18), rgba(255,179,255,0.12));
  border: 1px solid var(--w3f38-border);
  border-radius: var(--w3f38-radius);
  padding: 16px;
  margin: 12px 0;
  text-align: center;
}
.w3f38-promo h3 { margin: 0 0 6px; font-size: 17px; color: #fff; }
.w3f38-promo p { margin: 0 0 10px; font-size: 12px; color: var(--w3f38-rose); }
.w3f38-promo .w3f38-btn { margin: 0 auto; }

/* ---------------- Feature / steps / lists ---------------- */
.w3f38-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.w3f38-feature {
  background: rgba(255,255,255,0.04);
  border-radius: 12px;
  padding: 12px;
  border: 1px solid rgba(255,255,255,0.05);
}
.w3f38-feature .w3f38-ic {
  font-size: 22px; color: var(--w3f38-primary);
  margin-bottom: 6px;
}
.w3f38-feature h4 { margin: 0 0 4px; font-size: 14px; }
.w3f38-feature p { margin: 0; font-size: 12px; color: var(--w3f38-muted); }

.w3f38-steps { counter-reset: step; padding: 0; list-style: none; margin: 0; }
.w3f38-steps li {
  position: relative;
  padding: 10px 10px 10px 42px;
  margin-bottom: 8px;
  background: rgba(255,255,255,0.03);
  border-radius: 10px;
  font-size: 13px;
}
.w3f38-steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 10px; top: 50%;
  transform: translateY(-50%);
  width: 24px; height: 24px;
  background: var(--w3f38-primary);
  color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 800;
}

/* ---------------- FAQ ---------------- */
.w3f38-faq-item {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 10px;
  margin-bottom: 8px;
  overflow: hidden;
}
.w3f38-faq-q {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 14px;
  cursor: pointer;
  font-weight: 700;
  font-size: 14px;
}
.w3f38-faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .25s ease;
  padding: 0 14px;
  color: var(--w3f38-muted);
  font-size: 13px;
}
.w3f38-faq-open .w3f38-faq-a { max-height: 320px; padding: 0 14px 12px; }
.w3f38-faq-toggle { color: var(--w3f38-primary); font-weight: 800; }

/* ---------------- Testimonials ---------------- */
.w3f38-testi {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
.w3f38-testi-card {
  background: rgba(255,255,255,0.04);
  border-radius: 12px;
  padding: 12px;
  border-left: 3px solid var(--w3f38-primary);
}
.w3f38-testi-card .w3f38-stars { color: #ffc83d; font-size: 12px; margin-bottom: 4px; }
.w3f38-testi-card p { margin: 0 0 6px; font-size: 13px; }
.w3f38-testi-card .w3f38-author { font-size: 12px; color: var(--w3f38-rose); font-weight: 700; }

/* ---------------- Payment / winners / achievements ---------------- */
.w3f38-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.w3f38-chip {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.w3f38-winners {
  background: rgba(255,255,255,0.04);
  border-radius: 12px;
  padding: 12px;
}
.w3f38-winner {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  border-bottom: 1px dashed rgba(255,255,255,0.07);
  font-size: 13px;
}
.w3f38-winner:last-child { border-bottom: none; }
.w3f38-winner .w3f38-amt { color: var(--w3f38-primary); font-weight: 800; }

/* ---------------- SEO content ---------------- */
.w3f38-seo p { font-size: 13.5px; color: var(--w3f38-muted); margin: 0 0 10px; }
.w3f38-seo h2 { font-size: 18px; margin: 18px 0 8px; }
.w3f38-seo h3 { font-size: 15px; margin: 12px 0 6px; color: var(--w3f38-rose); }
.w3f38-seo ul { padding-left: 20px; color: var(--w3f38-muted); font-size: 13px; }
.w3f38-seo a { color: var(--w3f38-primary); font-weight: 700; }

/* ---------------- Footer ---------------- */
.w3f38-footer {
  background: #100709;
  border-top: 1px solid var(--w3f38-border);
  padding: 24px 12px 18px;
  margin-top: 20px;
}
.w3f38-footer-inner { max-width: 430px; margin: 0 auto; }
.w3f38-footer h4 { font-size: 14px; margin: 12px 0 8px; color: #fff; }
.w3f38-footer p { font-size: 12px; color: var(--w3f38-muted); margin: 0 0 8px; }
.w3f38-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0 14px;
}
.w3f38-footer-links a {
  font-size: 12px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.07);
  padding: 6px 10px;
  border-radius: 8px;
}
.w3f38-footer-promos {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin: 10px 0;
}
.w3f38-footer-promos .w3f38-btn { font-size: 12px; padding: 8px 10px; }
.w3f38-copy { text-align: center; font-size: 11px; color: var(--w3f38-muted); padding-top: 12px; border-top: 1px solid rgba(255,255,255,0.06); }

/* ---------------- Bottom nav ---------------- */
.w3f38-bottomnav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: 62px;
  background: rgba(15, 7, 9, 0.98);
  border-top: 1px solid var(--w3f38-border);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
  padding-bottom: env(safe-area-inset-bottom);
}
.w3f38-bottomnav-btn {
  flex: 1;
  background: none;
  border: none;
  color: var(--w3f38-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  font-size: 10px;
  cursor: pointer;
  min-height: 60px;
  transition: color .2s ease, transform .15s ease;
  padding: 4px 2px;
}
.w3f38-bottomnav-btn .w3f38-ic { font-size: 22px; }
.w3f38-bottomnav-btn:active { transform: scale(0.9); }
.w3f38-bottomnav-btn.w3f38-bottomnav-active { color: var(--w3f38-primary); }
.w3f38-bottomnav-btn.w3f38-bottomnav-active .w3f38-ic { color: var(--w3f38-primary); }

/* ---------------- Back to top ---------------- */
.w3f38-back-top {
  position: fixed;
  right: 14px; bottom: 78px;
  width: 42px; height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--w3f38-primary), #ff7a48);
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 18px;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: var(--w3f38-shadow);
  z-index: 900;
}
.w3f38-back-show { display: flex; }

/* ---------------- Desktop rules ---------------- */
@media (min-width: 769px) {
  .w3f38-bottomnav { display: none; }
  .w3f38-wrapper, .w3f38-footer-inner, .w3f38-header-inner { max-width: 720px; }
  main { padding-bottom: 40px; }
  .w3f38-grid { grid-template-columns: repeat(5, 1fr); }
  .w3f38-features { grid-template-columns: repeat(3, 1fr); }
  .w3f38-slide img { height: 280px; }
}
@media (max-width: 768px) {
  main { padding-bottom: 84px; }
}
