/* ============================================================
   390009 Basefiles CSS - theme.css
   Prefix: w3b47-
   Palette: #212F3D | #8B008B | #98FB98 | #3CB371 | #32CD32
   Dark = background, Light = text/accent
   ============================================================ */

:root {
  --w3b47-bg: #212F3D;
  --w3b47-bg-2: #1a242f;
  --w3b47-bg-3: #2a3b4d;
  --w3b47-primary: #8B008B;
  --w3b47-accent: #32CD32;
  --w3b47-accent-2: #3CB371;
  --w3b47-light: #98FB98;
  --w3b47-text: #f0fff4;
  --w3b47-text-dim: rgba(240, 255, 244, 0.72);
  --w3b47-border: rgba(152, 251, 152, 0.18);
  --w3b47-shadow: 0 0.4rem 1.2rem rgba(0, 0, 0, 0.45);
  --w3b47-radius: 1.2rem;
  --w3b47-grad: linear-gradient(135deg, #8B008B 0%, #32CD32 100%);
  --w3b47-grad-2: linear-gradient(180deg, #212F3D 0%, #1a242f 100%);
}

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

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

body {
  font-family: "Segoe UI", Roboto, system-ui, -apple-system, sans-serif;
  background: var(--w3b47-bg);
  color: var(--w3b47-text);
  line-height: 1.5rem;
  font-size: 1.5rem;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: var(--w3b47-light); text-decoration: none; }
img { max-width: 100%; display: block; }

/* ---------- Container ---------- */
.w3b47-container {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1.2rem;
}
.w3b47-wrapper { width: 100%; max-width: 430px; margin: 0 auto; }

/* ---------- Header ---------- */
.w3b47-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: linear-gradient(180deg, rgba(33,47,61,0.98) 0%, rgba(33,47,61,0.92) 100%);
  border-bottom: 1px solid var(--w3b47-border);
  box-shadow: var(--w3b47-shadow);
}
.w3b47-header-inner {
  max-width: 430px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 0.8rem 1.2rem;
  height: 5.6rem;
}
.w3b47-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-width: 0;
}
.w3b47-logo-icon {
  width: 32px; height: 32px;
  border-radius: 0.8rem;
  background: var(--w3b47-grad);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 800; font-size: 1.6rem;
  box-shadow: 0 2px 8px rgba(139,0,139,0.45);
}
.w3b47-logo-text {
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--w3b47-light);
  letter-spacing: 0.5px;
}
.w3b47-logo-text span { color: var(--w3b47-accent); }

.w3b47-nav-actions { display: flex; align-items: center; gap: 0.6rem; }
.w3b47-menu-btn {
  background: transparent;
  border: 1px solid var(--w3b47-border);
  color: var(--w3b47-light);
  width: 38px; height: 38px;
  border-radius: 0.8rem;
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer;
  font-size: 2rem;
}

.w3b47-btn {
  display: inline-flex;
  align-items: center; justify-content: center;
  gap: 0.4rem;
  padding: 0.8rem 1.4rem;
  border-radius: 0.9rem;
  font-weight: 700;
  font-size: 1.4rem;
  cursor: pointer;
  border: none;
  transition: transform 0.15s ease, box-shadow 0.2s ease, filter 0.2s ease;
  min-height: 40px;
}
.w3b47-btn:active { transform: scale(0.96); }
.w3b47-btn-register {
  background: var(--w3b47-grad);
  color: #fff;
  box-shadow: 0 3px 10px rgba(139,0,139,0.4);
}
.w3b47-btn-register:hover { filter: brightness(1.08); }
.w3b47-btn-login {
  background: transparent;
  color: var(--w3b47-light);
  border: 1.5px solid var(--w3b47-accent-2);
}
.w3b47-btn-login:hover { background: rgba(60,179,113,0.15); }

/* ---------- Mobile Menu ---------- */
.w3b47-mobile-menu {
  position: fixed;
  top: 0; right: -80%;
  width: 80%;
  max-width: 340px;
  height: 100vh;
  background: var(--w3b47-bg-2);
  z-index: 9999;
  padding: 2.4rem 1.6rem;
  overflow-y: auto;
  transition: right 0.25s ease;
  box-shadow: -4px 0 20px rgba(0,0,0,0.5);
}
.w3b47-mobile-menu.open { right: 0; }
.w3b47-menu-close {
  position: absolute; top: 1.2rem; right: 1.2rem;
  background: transparent; border: none; color: var(--w3b47-light);
  font-size: 2.6rem; cursor: pointer; line-height: 1;
}
.w3b47-menu-title {
  font-size: 1.7rem; font-weight: 800; color: var(--w3b47-accent);
  margin-bottom: 1.6rem; margin-top: 0.4rem;
}
.w3b47-menu-list { list-style: none; display: flex; flex-direction: column; gap: 0.4rem; }
.w3b47-menu-list a, .w3b47-menu-list .w3b47-menu-anchor {
  display: flex; align-items: center; gap: 0.9rem;
  padding: 1.1rem 1rem;
  border-radius: 0.8rem;
  color: var(--w3b47-text);
  font-size: 1.45rem;
  font-weight: 600;
  background: rgba(255,255,255,0.03);
  border: 1px solid transparent;
  cursor: pointer;
}
.w3b47-menu-list a:hover, .w3b47-menu-list .w3b47-menu-anchor:hover {
  background: rgba(60,179,113,0.16);
  border-color: var(--w3b47-border);
}
.w3b47-menu-list i { font-size: 1.8rem; color: var(--w3b47-accent); }
.w3b47-menu-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 9998;
}
.w3b47-menu-overlay.show { display: block; }
.w3b47-menuOverlay { display: none; }
.w3b47-menuOverlay.show { display: block; }

/* ---------- Main ---------- */
main { padding-top: 5.6rem; }
@media (max-width: 768px) { main { padding-bottom: 80px; } }

.w3b47-section {
  padding: 2.4rem 0;
}
.w3b47-section-title {
  font-size: 2rem;
  font-weight: 800;
  color: var(--w3b47-light);
  margin-bottom: 0.4rem;
  display: flex; align-items: center; gap: 0.6rem;
}
.w3b47-section-title i { color: var(--w3b47-accent); font-size: 2.2rem; }
.w3b47-section-sub {
  font-size: 1.35rem;
  color: var(--w3b47-text-dim);
  margin-bottom: 1.6rem;
}

/* ---------- Hero / Carousel ---------- */
.w3b47-hero { padding: 1.6rem 0 0.4rem; }
.w3b47-carousel {
  position: relative;
  border-radius: var(--w3b47-radius);
  overflow: hidden;
  box-shadow: var(--w3b47-shadow);
  border: 1px solid var(--w3b47-border);
}
.w3b47-carousel-track {
  display: flex;
  transition: transform 0.4s ease;
}
.w3b47-carousel-slide {
  min-width: 100%;
  position: relative;
  cursor: pointer;
}
.w3b47-carousel-slide img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}
.w3b47-carousel-cap {
  position: absolute;
  left: 1.2rem; bottom: 1.2rem; right: 1.2rem;
  background: linear-gradient(0deg, rgba(33,47,61,0.92), transparent);
  padding: 1rem;
  border-radius: 0.8rem;
}
.w3b47-carousel-cap h3 {
  font-size: 1.7rem; font-weight: 800; color: var(--w3b47-light);
  margin-bottom: 0.3rem;
}
.w3b47-carousel-cap p { font-size: 1.2rem; color: var(--w3b47-text-dim); }
.w3b47-carousel-dots {
  display: flex; justify-content: center; gap: 0.5rem;
  margin-top: 0.8rem;
}
.w3b47-carousel-dots span {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(240,255,244,0.3);
  cursor: pointer;
}
.w3b47-carousel-dots span.active {
  background: var(--w3b47-accent);
  width: 20px; border-radius: 4px;
}

/* ---------- Hero CTA ---------- */
.w3b47-hero-cta {
  display: flex; gap: 0.8rem; margin-top: 1.2rem;
}
.w3b47-hero-cta .w3b47-btn { flex: 1; }
.w3b47-cta-link {
  color: var(--w3b47-accent);
  font-weight: 700;
  cursor: pointer;
  font-size: 1.4rem;
}

/* ---------- Game Grid ---------- */
.w3b47-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
}
.w3b47-card {
  background: var(--w3b47-bg-3);
  border: 1px solid var(--w3b47-border);
  border-radius: 0.9rem;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}
.w3b47-card:active { transform: scale(0.97); }
.w3b47-card:hover { box-shadow: 0 4px 14px rgba(50,205,50,0.25); }
.w3b47-card-img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  background: #0e1620;
}
.w3b47-card-name {
  padding: 0.5rem 0.4rem;
  font-size: 1.1rem;
  color: var(--w3b47-light);
  text-align: center;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.w3b47-block-title {
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--w3b47-accent);
  margin-bottom: 1rem;
  padding-left: 0.4rem;
  border-left: 4px solid var(--w3b47-primary);
  padding-left: 0.8rem;
  display: flex; align-items: center; gap: 0.5rem;
}
.w3b47-block-title i { font-size: 2rem; }

/* ---------- Info / Features ---------- */
.w3b47-info-box {
  background: var(--w3b47-bg-3);
  border: 1px solid var(--w3b47-border);
  border-radius: var(--w3b47-radius);
  padding: 1.6rem;
  margin-bottom: 1.2rem;
}
.w3b47-info-box h3 {
  font-size: 1.5rem; color: var(--w3b47-light);
  margin-bottom: 0.6rem; font-weight: 700;
}
.w3b47-info-box p {
  font-size: 1.32rem; color: var(--w3b47-text-dim);
  line-height: 1.5rem;
}
.w3b47-info-box .w3b47-cta-link { display: inline-block; margin-top: 0.6rem; }

.w3b47-feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
}
.w3b47-feature {
  background: var(--w3b47-bg-3);
  border: 1px solid var(--w3b47-border);
  border-radius: 1rem;
  padding: 1.2rem;
  text-align: center;
}
.w3b47-feature i {
  font-size: 2.6rem; color: var(--w3b47-accent);
  margin-bottom: 0.5rem;
}
.w3b47-feature h4 {
  font-size: 1.3rem; color: var(--w3b47-light); font-weight: 700;
  margin-bottom: 0.3rem;
}
.w3b47-feature p { font-size: 1.15rem; color: var(--w3b47-text-dim); }

/* ---------- Promotions ---------- */
.w3b47-promo {
  background: linear-gradient(135deg, rgba(139,0,139,0.4), rgba(50,205,50,0.25));
  border: 1px solid var(--w3b47-border);
  border-radius: var(--w3b47-radius);
  padding: 1.6rem;
  margin-bottom: 1rem;
}
.w3b47-promo h4 { font-size: 1.45rem; color: var(--w3b47-light); margin-bottom: 0.4rem; }
.w3b47-promo p { font-size: 1.28rem; color: var(--w3b47-text-dim); }

/* ---------- RTP / Winners / Tips compact cards ---------- */
.w3b47-rtp-grid, .w3b47-winner-grid, .w3b47-tip-grid, .w3b47-pay-grid, .w3b47-vip-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
}
.w3b47-rtp-card, .w3b47-winner-card, .w3b47-tip-card, .w3b47-pay-card, .w3b47-vip-card {
  background: var(--w3b47-bg-3);
  border: 1px solid var(--w3b47-border);
  border-radius: 1rem;
  padding: 1rem;
  text-align: center;
}
.w3b47-rtp-card .num { font-size: 2rem; font-weight: 800; color: var(--w3b47-accent); }
.w3b47-rtp-card .label { font-size: 1.15rem; color: var(--w3b47-text-dim); }
.w3b47-winner-card .amount { font-size: 1.7rem; font-weight: 800; color: var(--w3b47-light); }
.w3b47-winner-card .player { font-size: 1.15rem; color: var(--w3b47-text-dim); margin-top: 0.2rem; }
.w3b47-tip-card h4 { font-size: 1.35rem; color: var(--w3b47-light); margin-bottom: 0.3rem; }
.w3b47-tip-card p { font-size: 1.2rem; color: var(--w3b47-text-dim); }
.w3b47-pay-card i { font-size: 2.4rem; color: var(--w3b47-accent); margin-bottom: 0.3rem; }
.w3b47-pay-card span { display: block; font-size: 1.15rem; color: var(--w3b47-light); }
.w3b47-vip-card h4 { font-size: 1.45rem; color: var(--w3b47-light); margin-bottom: 0.3rem; }
.w3b47-vip-card p { font-size: 1.2rem; color: var(--w3b47-text-dim); }

/* ---------- FAQ ---------- */
.w3b47-faq-item {
  background: var(--w3b47-bg-3);
  border: 1px solid var(--w3b47-border);
  border-radius: 1rem;
  margin-bottom: 0.7rem;
  overflow: hidden;
  cursor: pointer;
}
.w3b47-faq-q {
  padding: 1.1rem 1.2rem;
  font-size: 1.32rem;
  font-weight: 700;
  color: var(--w3b47-light);
  display: flex; justify-content: space-between; align-items: center;
}
.w3b47-faq-q i { color: var(--w3b47-accent); font-size: 1.6rem; transition: transform 0.2s; }
.w3b47-faq-item.open .w3b47-faq-q i { transform: rotate(180deg); }
.w3b47-faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  padding: 0 1.2rem;
  color: var(--w3b47-text-dim);
  font-size: 1.25rem;
  line-height: 1.4rem;
}
.w3b47-faq-item.open .w3b47-faq-a {
  max-height: 320px;
  padding-bottom: 1.1rem;
}

/* ---------- Testimonials ---------- */
.w3b47-testimonial {
  background: var(--w3b47-bg-3);
  border: 1px solid var(--w3b47-border);
  border-left: 4px solid var(--w3b47-primary);
  border-radius: 0.8rem;
  padding: 1.2rem;
  margin-bottom: 0.8rem;
}
.w3b47-testimonial .who { font-size: 1.3rem; font-weight: 700; color: var(--w3b47-light); margin-bottom: 0.3rem; }
.w3b47-testimonial .stars { color: #FFD700; font-size: 1.2rem; margin-bottom: 0.3rem; }
.w3b47-testimonial p { font-size: 1.25rem; color: var(--w3b47-text-dim); }

/* ---------- App CTA ---------- */
.w3b47-app-cta {
  background: var(--w3b47-grad);
  border-radius: var(--w3b47-radius);
  padding: 1.8rem 1.4rem;
  text-align: center;
  margin-top: 0.6rem;
  box-shadow: 0 4px 16px rgba(139,0,139,0.4);
}
.w3b47-app-cta h3 { font-size: 1.7rem; color: #fff; margin-bottom: 0.4rem; font-weight: 800; }
.w3b47-app-cta p { font-size: 1.25rem; color: rgba(255,255,255,0.9); margin-bottom: 1rem; }
.w3b47-app-cta .w3b47-btn {
  background: #fff;
  color: var(--w3b47-primary);
  font-weight: 800;
}

/* ---------- Footer ---------- */
.w3b47-footer {
  background: var(--w3b47-bg-2);
  border-top: 1px solid var(--w3b47-border);
  padding: 2rem 1.2rem 2rem;
  margin-top: 1.6rem;
}
.w3b47-footer-desc {
  font-size: 1.25rem;
  color: var(--w3b47-text-dim);
  margin-bottom: 1.2rem;
  line-height: 1.4rem;
}
.w3b47-footer-links {
  display: flex; flex-wrap: wrap; gap: 0.6rem 1.2rem;
  margin-bottom: 1rem;
}
.w3b47-footer-links a, .w3b47-footer-links span {
  font-size: 1.22rem;
  color: var(--w3b47-light);
  cursor: pointer;
}
.w3b47-footer-buttons { display: flex; gap: 0.8rem; flex-wrap: wrap; margin: 1rem 0; }
.w3b47-footer-button {
  flex: 1 1 130px;
  text-align: center;
}
.w3b47-footer-copy {
  font-size: 1.15rem;
  color: var(--w3b47-text-dim);
  text-align: center;
  padding-top: 1rem;
  border-top: 1px solid var(--w3b47-border);
}

/* ---------- Bottom Nav ---------- */
.w3b47-bottom-nav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(180deg, rgba(26,36,47,0.98), rgba(20,28,37,1));
  border-top: 1px solid var(--w3b47-border);
  z-index: 1000;
  display: flex;
  justify-content: space-around;
  align-items: stretch;
  height: 60px;
  box-shadow: 0 -3px 12px rgba(0,0,0,0.4);
}
.w3b47-bottom-nav-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center; justify-content: center;
  gap: 0.15rem;
  background: transparent;
  border: none;
  color: var(--w3b47-text-dim);
  cursor: pointer;
  min-width: 60px;
  min-height: 60px;
  padding: 0.3rem;
  transition: color 0.2s ease, transform 0.15s ease;
}
.w3b47-bottom-nav-btn i,
.w3b47-bottom-nav-btn .material-icons {
  font-size: 22px;
  margin-bottom: 1px;
}
.w3b47-bottom-nav-btn span {
  font-size: 11px;
  font-weight: 600;
}
.w3b47-bottom-nav-btn:active { transform: scale(0.93); }
.w3b47-bottom-nav-btn.active { color: var(--w3b47-accent); }
.w3b47-bottom-nav-btn.promo i { color: var(--w3b47-light); }
.w3b47-bottom-nav-btn.promo.active i { color: var(--w3b47-accent); }

@media (min-width: 769px) {
  .w3b47-bottom-nav { display: none; }
  .w3b47-container, .w3b47-header-inner, .w3b47-footer { max-width: 960px; }
  .w3b47-grid { grid-template-columns: repeat(6, 1fr); }
  .w3b47-feature-grid, .w3b47-rtp-grid, .w3b47-winner-grid,
  .w3b47-tip-grid, .w3b47-pay-grid, .w3b47-vip-grid { grid-template-columns: repeat(4, 1fr); }
}

/* ---------- Utilities ---------- */
.w3b47-text-accent { color: var(--w3b47-accent); }
.w3b47-text-light { color: var(--w3b47-light); }
.w3b47-mt { margin-top: 1.2rem; }
.w3b47-mb { margin-bottom: 1.2rem; }
.w3b47-center { text-align: center; }
.w3b47-hide-desktop { }
@media (min-width: 769px) { .w3b47-hide-desktop { display: none; } }