/* cm8888.cfd core stylesheet - all classes use vc3f- prefix */
/* Palette: #9932CC primary | #E6E6FA light | #1E1E1E bg | #B8860B gold | #FAFAD2 soft */

:root {
  --vc3f-primary: #9932CC;
  --vc3f-primary-dark: #6b1f96;
  --vc3f-light: #E6E6FA;
  --vc3f-bg: #1E1E1E;
  --vc3f-bg-2: #2a2230;
  --vc3f-gold: #B8860B;
  --vc3f-soft: #FAFAD2;
  --vc3f-text: #f3f0fa;
  --vc3f-text-dim: #b9b2c9;
  --vc3f-border: rgba(153, 50, 204, 0.35);
  --vc3f-radius: 14px;
  --vc3f-header-h: 56px;
  --vc3f-bottomnav-h: 60px;
}

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

html { font-size: 62.5%; }

body {
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  background: var(--vc3f-bg);
  color: var(--vc3f-text);
  line-height: 1.5rem;
  -webkit-font-smoothing: antialiased;
  max-width: 430px;
  margin: 0 auto;
  position: relative;
}

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

.vc3f-container { width: 100%; padding: 0 1.2rem; }
.vc3f-wrapper { max-width: 430px; margin: 0 auto; padding-bottom: 80px; }

/* ---------- Header ---------- */
.vc3f-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--vc3f-header-h);
  background: linear-gradient(90deg, var(--vc3f-bg-2), #1a1424);
  border-bottom: 1px solid var(--vc3f-border);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 1rem; max-width: 430px; margin: 0 auto;
}
.vc3f-logo { display: flex; align-items: center; gap: 0.6rem; }
.vc3f-logo img { width: 28px; height: 28px; border-radius: 6px; }
.vc3f-logo .vc3f-brand { font-size: 1.5rem; font-weight: 800; color: var(--vc3f-soft); letter-spacing: 0.5px; }
.vc3f-logo .vc3f-brand span { color: var(--vc3f-primary); }

.vc3f-header-actions { display: flex; align-items: center; gap: 0.5rem; }
.vc3f-btn {
  border: none; border-radius: 999px; padding: 0.7rem 1.3rem;
  font-size: 1.25rem; font-weight: 700; cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease; min-height: 36px;
}
.vc3f-btn:active { transform: scale(0.96); }
.vc3f-btn-register { background: linear-gradient(90deg, var(--vc3f-gold), #e0a82e); color: #1a1206; }
.vc3f-btn-login { background: transparent; color: var(--vc3f-soft); border: 1.5px solid var(--vc3f-primary); }
.vc3f-menu-toggle {
  background: transparent; border: none; color: var(--vc3f-soft);
  font-size: 2.2rem; cursor: pointer; padding: 0 0.4rem; min-width: 44px; min-height: 44px;
}

/* ---------- Mobile menu (expandable) ---------- */
.vc3f-mobile-menu {
  position: fixed; top: var(--vc3f-header-h); left: 0; right: 0; z-index: 9999;
  background: var(--vc3f-bg-2);
  border-bottom: 1px solid var(--vc3f-border);
  max-height: 0; overflow: hidden; transition: max-height 0.3s ease;
  max-width: 430px; margin: 0 auto;
}
.vc3f-mobile-menu.vc3f-menu-open { max-height: 520px; }
.vc3f-mobile-menu a {
  display: block; padding: 1.2rem 1.5rem; border-bottom: 1px solid rgba(153,50,204,0.18);
  font-size: 1.3rem; color: var(--vc3f-light);
}
.vc3f-mobile-menu a:active { background: rgba(153,50,204,0.18); }
.vc3f-mobile-menu a i { color: var(--vc3f-primary); margin-right: 0.8rem; width: 20px; }

/* ---------- Hero / Carousel ---------- */
.vc3f-hero { margin-top: var(--vc3f-header-h); padding: 1rem 1.2rem 0; }
.vc3f-carousel { position: relative; border-radius: var(--vc3f-radius); overflow: hidden; aspect-ratio: 16/9; background: #120e18; }
.vc3f-slide {
  position: absolute; inset: 0; opacity: 0; transition: opacity 0.6s ease;
  cursor: pointer;
}
.vc3f-slide.vc3f-slide-active { opacity: 1; }
.vc3f-slide img { width: 100%; height: 100%; object-fit: cover; }
.vc3f-slide-overlay {
  position: absolute; left: 1rem; bottom: 1rem; right: 1rem; z-index: 2;
  background: linear-gradient(transparent, rgba(0,0,0,0.6));
  padding-top: 2rem; color: var(--vc3f-soft);
}
.vc3f-slide-overlay h2 { font-size: 1.6rem; font-weight: 800; }
.vc3f-slide-overlay p { font-size: 1.15rem; color: var(--vc3f-light); }
.vc3f-dots { position: absolute; bottom: 0.6rem; left: 0; right: 0; text-align: center; z-index: 3; }
.vc3f-dot { display: inline-block; width: 8px; height: 8px; margin: 0 3px; border-radius: 50%; background: rgba(255,255,255,0.4); cursor: pointer; }
.vc3f-dot.vc3f-dot-active { background: var(--vc3f-gold); }

/* ---------- Section ---------- */
.vc3f-section { padding: 1.5rem 1.2rem; }
.vc3f-section h2 { font-size: 1.7rem; font-weight: 800; color: var(--vc3f-soft); margin-bottom: 0.4rem; }
.vc3f-section h2 span { color: var(--vc3f-primary); }
.vc3f-section h3 { font-size: 1.4rem; color: var(--vc3f-gold); margin: 1rem 0 0.4rem; }
.vc3f-section p { font-size: 1.25rem; color: var(--vc3f-text-dim); margin-bottom: 0.6rem; }
.vc3f-section a { color: var(--vc3f-soft); }
.vc3f-section ul, .vc3f-section ol { margin: 0.6rem 0 0.8rem 1.8rem; color: var(--vc3f-text-dim); font-size: 1.22rem; }
.vc3f-section li { margin-bottom: 0.45rem; }
.vc3f-kpi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.7rem; padding: 0.5rem 1.2rem 1rem; }
.vc3f-kpi { background: var(--vc3f-bg-2); border: 1px solid var(--vc3f-border); border-radius: 12px; padding: 0.9rem; text-align: center; }
.vc3f-kpi strong { display: block; color: var(--vc3f-gold); font-size: 1.7rem; margin-bottom: 0.2rem; }
.vc3f-kpi span { color: var(--vc3f-light); font-size: 1rem; }
.vc3f-text-link { color: var(--vc3f-gold); font-weight: 700; text-decoration: underline; }
.vc3f-mini-banner { margin: 1rem 1.2rem; border-radius: 14px; overflow: hidden; border: 1px solid var(--vc3f-border); }
.vc3f-note { background: rgba(153,50,204,0.16); border-left: 3px solid var(--vc3f-gold); border-radius: 8px; padding: 0.9rem; }

/* H1 main title */
.vc3f-h1 { font-size: 2rem; font-weight: 800; color: var(--vc3f-soft); padding: 1rem 1.2rem; }
.vc3f-h1 span { color: var(--vc3f-gold); }

/* ---------- Filter chips ---------- */
.vc3f-chips { display: flex; gap: 0.5rem; overflow-x: auto; padding: 0.5rem 1.2rem 0; }
.vc3f-chip {
  flex: 0 0 auto; padding: 0.5rem 1.1rem; border-radius: 999px;
  background: var(--vc3f-bg-2); color: var(--vc3f-light);
  font-size: 1.15rem; border: 1px solid var(--vc3f-border); cursor: pointer; white-space: nowrap;
}
.vc3f-chip.vc3f-chip-active { background: var(--vc3f-primary); color: #fff; border-color: var(--vc3f-primary); }

/* ---------- Game grid ---------- */
.vc3f-game-group { padding: 0.5rem 1.2rem 1rem; }
.vc3f-game-group h3 { font-size: 1.4rem; color: var(--vc3f-gold); margin: 1rem 0 0.6rem; display: flex; align-items: center; gap: 0.5rem; }
.vc3f-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.6rem; }
.vc3f-card {
  background: var(--vc3f-bg-2); border: 1px solid var(--vc3f-border); border-radius: 10px;
  padding: 0.4rem; text-align: center; cursor: pointer; transition: transform 0.15s ease, border-color 0.15s;
}
.vc3f-card:active { transform: scale(0.95); border-color: var(--vc3f-primary); }
.vc3f-card img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; }
.vc3f-card .vc3f-card-name {
  font-size: 1rem; color: var(--vc3f-light); margin-top: 0.3rem; line-height: 1.2rem;
  height: 2.4rem; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}

/* ---------- Feature / promo cards ---------- */
.vc3f-feature { display: grid; grid-template-columns: 1fr 1fr; gap: 0.7rem; padding: 0.5rem 1.2rem 1rem; }
.vc3f-feature-card {
  background: linear-gradient(135deg, var(--vc3f-bg-2), #20162a);
  border: 1px solid var(--vc3f-border); border-radius: 12px; padding: 1rem;
}
.vc3f-feature-card i { font-size: 2.4rem; color: var(--vc3f-gold); margin-bottom: 0.4rem; }
.vc3f-feature-card h3 { font-size: 1.3rem; color: var(--vc3f-soft); margin-bottom: 0.3rem; }
.vc3f-feature-card p { font-size: 1.1rem; color: var(--vc3f-text-dim); }

/* Inline promo text link */
.vc3f-promo-link { color: var(--vc3f-gold); font-weight: 700; cursor: pointer; }
.vc3f-promo-link:hover { text-decoration: underline; }

/* Big CTA */
.vc3f-cta {
  display: block; margin: 1rem 1.2rem; padding: 1.2rem; text-align: center;
  background: linear-gradient(90deg, var(--vc3f-primary), var(--vc3f-primary-dark));
  color: #fff; border-radius: 12px; font-size: 1.4rem; font-weight: 800;
}

/* ---------- Testimonials ---------- */
.vc3f-testimonials { display: grid; grid-template-columns: 1fr; gap: 0.7rem; padding: 0.5rem 1.2rem 1rem; }
.vc3f-testimonial { background: var(--vc3f-bg-2); border-left: 3px solid var(--vc3f-gold); border-radius: 8px; padding: 0.9rem; }
.vc3f-testimonial .vc3f-stars { color: var(--vc3f-gold); font-size: 1.1rem; }
.vc3f-testimonial p { font-size: 1.2rem; color: var(--vc3f-light); }
.vc3f-testimonial .vc3f-author { font-size: 1.05rem; color: var(--vc3f-text-dim); margin-top: 0.3rem; }

/* ---------- Payment ---------- */
.vc3f-payments { display: flex; flex-wrap: wrap; gap: 0.5rem; padding: 0.5rem 1.2rem 1rem; }
.vc3f-pay {
  flex: 0 0 auto; background: var(--vc3f-bg-2); border: 1px solid var(--vc3f-border);
  border-radius: 8px; padding: 0.6rem 1rem; font-size: 1.1rem; color: var(--vc3f-light);
  display: flex; align-items: center; gap: 0.4rem;
}
.vc3f-pay i { color: var(--vc3f-gold); }

/* ---------- Winners ---------- */
.vc3f-winners { padding: 0.5rem 1.2rem 1rem; }
.vc3f-winner {
  display: flex; justify-content: space-between; padding: 0.6rem 0.8rem;
  border-bottom: 1px solid rgba(153,50,204,0.18); font-size: 1.15rem;
}
.vc3f-winner .vc3f-wname { color: var(--vc3f-light); }
.vc3f-winner .vc3f-wamt { color: var(--vc3f-gold); font-weight: 700; }

/* ---------- Footer ---------- */
.vc3f-footer {
  background: #15101c; border-top: 1px solid var(--vc3f-border);
  padding: 1.5rem 1.2rem 2rem; margin-top: 1rem;
}
.vc3f-footer p { font-size: 1.15rem; color: var(--vc3f-text-dim); margin-bottom: 0.8rem; }
.vc3f-footer-links { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1rem; }
.vc3f-footer-links a {
  background: var(--vc3f-bg-2); border: 1px solid var(--vc3f-border);
  border-radius: 8px; padding: 0.5rem 0.9rem; font-size: 1.1rem; color: var(--vc3f-light);
}
.vc3f-footer-links a:hover { color: var(--vc3f-gold); border-color: var(--vc3f-gold); }
.vc3f-footer-promo { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0.6rem 0 1rem; }
.vc3f-footer-promo button {
  background: linear-gradient(90deg, var(--vc3f-gold), #e0a82e); color: #1a1206;
  border: none; border-radius: 999px; padding: 0.6rem 1.1rem; font-size: 1.15rem; font-weight: 700; cursor: pointer;
}
.vc3f-copyright { font-size: 1.05rem; color: var(--vc3f-text-dim); border-top: 1px solid rgba(153,50,204,0.18); padding-top: 0.8rem; }

/* ---------- Mobile bottom nav ---------- */
.vc3f-bottomnav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 1000;
  height: var(--vc3f-bottomnav-h); max-width: 430px; margin: 0 auto;
  background: linear-gradient(180deg, #1a1424, #100b16);
  border-top: 1px solid var(--vc3f-border);
  display: flex; justify-content: space-around; align-items: center;
}
.vc3f-bottomnav-btn {
  flex: 1; min-width: 60px; min-height: 60px; background: transparent; border: none;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  color: var(--vc3f-text-dim); cursor: pointer; transition: color 0.15s ease, transform 0.15s ease;
}
.vc3f-bottomnav-btn:active { transform: scale(0.92); }
.vc3f-bottomnav-btn .vc3f-bn-icon { font-size: 2.2rem; line-height: 1; }
.vc3f-bottomnav-btn .vc3f-bn-label { font-size: 1rem; line-height: 1; }
.vc3f-bottomnav-btn.vc3f-bottomnav-active { color: var(--vc3f-gold); }
.vc3f-bottomnav-btn.vc3f-bn-promo { color: var(--vc3f-primary); }
.vc3f-bottomnav-btn.vc3f-bn-promo .vc3f-bn-icon { color: var(--vc3f-gold); }

/* Desktop: hide bottom nav */
@media (min-width: 769px) {
  .vc3f-bottomnav { display: none; }
  body { max-width: none; }
  .vc3f-wrapper { max-width: 900px; }
}
/* Mobile: bottom padding clearance handled via .vc3f-wrapper padding-bottom */
@media (max-width: 768px) {
  .vc3f-wrapper { padding-bottom: 80px; }
}
