/* ============================================================
   jiligames login - Core Stylesheet (basefiles)
   All custom classes use the dynamic prefix: wec6d-
   Palette: #1E1E1E (bg) | #880E4F | #F08080 | #E91E63 (accent)
   Mobile-first, max 430px friendly.
   ============================================================ */

:root {
  --wec6d-bg: #1E1E1E;
  --wec6d-bg-alt: #2a1420;
  --wec6d-primary: #880E4F;
  --wec6d-accent: #E91E63;
  --wec6d-light: #F08080;
  --wec6d-text: #fff5f8;
  --wec6d-text-muted: #f0c4cf;
  --wec6d-border: rgba(240, 128, 128, 0.25);
  --wec6d-radius: 1.2rem;
  --wec6d-header-h: 5.8rem;
  --wec6d-bottomnav-h: 6.2rem;
}

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

html {
  font-size: 62.5%; /* 1rem = 10px */
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  background: var(--wec6d-bg);
  color: var(--wec6d-text);
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-size: 1.6rem;
  line-height: 1.5rem;
  max-width: 430px;
  margin: 0 auto;
  overflow-x: hidden;
  min-height: 100vh;
}

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

/* ---------- Layout ---------- */
.wec6d-wrapper { width: 100%; padding: 0 1.4rem; }
.wec6d-container { padding-top: var(--wec6d-header-h); padding-bottom: 2rem; }
.wec6d-section { margin: 2.4rem 0; }
.wec6d-section h2 {
  font-size: 2rem; color: var(--wec6d-light); margin-bottom: 1.2rem;
  border-left: 4px solid var(--wec6d-accent); padding-left: 1rem; line-height: 2.4rem;
}
.wec6d-section h3 { font-size: 1.7rem; color: var(--wec6d-text); margin: 1.4rem 0 0.8rem; line-height: 2rem; }
.wec6d-section p { font-size: 1.5rem; color: var(--wec6d-text-muted); margin-bottom: 1rem; line-height: 2.4rem; }

/* ---------- Header ---------- */
.wec6d-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: linear-gradient(90deg, var(--wec6d-bg-alt), var(--wec6d-primary));
  border-bottom: 1px solid var(--wec6d-border);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.8rem 1.2rem; max-width: 430px; margin: 0 auto; height: var(--wec6d-header-h);
}
.wec6d-logo { display: flex; align-items: center; gap: 0.8rem; flex: 1; min-width: 0; }
.wec6d-logo img { width: 3.2rem; height: 3.2rem; border-radius: 0.6rem; }
.wec6d-logo span { font-size: 1.5rem; font-weight: 700; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wec6d-header-actions { display: flex; align-items: center; gap: 0.6rem; }
.wec6d-btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.7rem 1.2rem; border-radius: 1rem; font-size: 1.3rem; font-weight: 700;
  cursor: pointer; border: none; min-height: 3.6rem; transition: transform .15s ease, opacity .15s ease;
}
.wec6d-btn:active { transform: scale(0.96); }
.wec6d-btn-login { background: transparent; color: var(--wec6d-light); border: 1px solid var(--wec6d-light); }
.wec6d-btn-register { background: var(--wec6d-accent); color: #fff; box-shadow: 0 2px 8px rgba(233,30,99,0.35); }

/* ---------- Hamburger / Mobile Menu ---------- */
.wec6d-menu-btn {
  background: transparent; border: 1px solid var(--wec6d-border);
  color: var(--wec6d-light); width: 3.6rem; height: 3.6rem; border-radius: 0.8rem;
  display: flex; align-items: center; justify-content: center; cursor: pointer;
}
.wec6d-mobile-menu {
  position: fixed; top: var(--wec6d-header-h); left: 0; right: 0; z-index: 9999;
  background: var(--wec6d-bg-alt); border-bottom: 1px solid var(--wec6d-border);
  max-width: 430px; margin: 0 auto; max-height: 0; overflow: hidden;
  transition: max-height .3s ease;
}
.wec6d-mobile-menu.wec6d-menu-open { max-height: 50rem; }
.wec6d-mobile-menu a {
  display: block; padding: 1.2rem 1.6rem; font-size: 1.4rem; color: var(--wec6d-text);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.wec6d-mobile-menu a:active { background: rgba(233,30,99,0.15); }

/* ---------- Hero Carousel ---------- */
.wec6d-carousel { position: relative; border-radius: var(--wec6d-radius); overflow: hidden; margin: 1.4rem 0; }
.wec6d-carousel-track { position: relative; }
.wec6d-carousel-slide {
  position: absolute; inset: 0; opacity: 0; transition: opacity .6s ease;
}
.wec6d-carousel-slide.wec6d-slide-active { opacity: 1; position: relative; }
.wec6d-carousel-slide img { width: 100%; height: auto; cursor: pointer; }
.wec6d-carousel-dots { display: flex; gap: 0.6rem; justify-content: center; padding: 0.6rem 0; }
.wec6d-carousel-dot { width: 0.9rem; height: 0.9rem; border-radius: 50%; background: rgba(255,255,255,0.3); cursor: pointer; }
.wec6d-carousel-dot.wec6d-dot-active { background: var(--wec6d-accent); }

/* ---------- Promo Links / Text links ---------- */
.wec6d-promo-text { color: var(--wec6d-accent); font-weight: 700; cursor: pointer; }
.wec6d-promo-text:hover { text-decoration: underline; }

/* ---------- Game Grid ---------- */
.wec6d-game-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.8rem;
}
.wec6d-game-card { cursor: pointer; text-align: center; transition: transform .15s ease; }
.wec6d-game-card:active { transform: scale(0.95); }
.wec6d-game-card img { width: 100%; aspect-ratio: 1/1; object-fit: cover; border-radius: 0.8rem; border: 1px solid var(--wec6d-border); }
.wec6d-game-card span { display: block; font-size: 1.2rem; color: var(--wec6d-text-muted); margin-top: 0.4rem; line-height: 1.6rem; }

/* ---------- Cards / Generic ---------- */
.wec6d-card {
  background: var(--wec6d-bg-alt); border-radius: var(--wec6d-radius);
  padding: 1.4rem; border: 1px solid var(--wec6d-border); margin-bottom: 1.2rem;
}
.wec6d-card-title { font-size: 1.6rem; color: var(--wec6d-light); margin-bottom: 0.6rem; font-weight: 700; }

/* ---------- Feature list ---------- */
.wec6d-feature-list { list-style: none; }
.wec6d-feature-list li { padding: 0.6rem 0 0.6rem 2.4rem; position: relative; font-size: 1.4rem; color: var(--wec6d-text-muted); line-height: 2rem; }
.wec6d-feature-list li::before { content: "\f005"; font-family: "Font Awesome 6 Free"; font-weight: 900; position: absolute; left: 0; top: 0.6rem; color: var(--wec6d-accent); font-size: 1.2rem; }

/* ---------- Payment row ---------- */
.wec6d-pay-row { display: flex; flex-wrap: wrap; gap: 0.8rem; }
.wec6d-pay-chip { background: rgba(255,255,255,0.06); border: 1px solid var(--wec6d-border); padding: 0.6rem 1rem; border-radius: 0.8rem; font-size: 1.2rem; color: var(--wec6d-text); }

/* ---------- Testimonials ---------- */
.wec6d-testimonial { background: var(--wec6d-bg-alt); border-left: 3px solid var(--wec6d-accent); padding: 1rem 1.2rem; border-radius: 0.6rem; margin-bottom: 0.8rem; }
.wec6d-testimonial p { font-size: 1.3rem; color: var(--wec6d-text-muted); }
.wec6d-testimonial .wec6d-author { display: block; font-size: 1.2rem; color: var(--wec6d-light); margin-top: 0.4rem; font-weight: 700; }

/* ---------- Footer ---------- */
.wec6d-footer {
  background: var(--wec6d-bg-alt); padding: 2rem 1.4rem; margin-top: 2rem;
  border-top: 1px solid var(--wec6d-border); text-align: center;
}
.wec6d-footer p { font-size: 1.3rem; color: var(--wec6d-text-muted); line-height: 2rem; margin-bottom: 1rem; }
.wec6d-footer-links { display: flex; flex-wrap: wrap; gap: 0.6rem; justify-content: center; margin-bottom: 1rem; }
.wec6d-footer-links a { font-size: 1.2rem; color: var(--wec6d-light); padding: 0.4rem 0.6rem; }
.wec6d-footer-copy { font-size: 1.1rem; color: var(--wec6d-text-muted); opacity: 0.7; }

/* ---------- Bottom Navigation ---------- */
.wec6d-bottomnav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 1000;
  max-width: 430px; margin: 0 auto; height: var(--wec6d-bottomnav-h);
  background: linear-gradient(90deg, var(--wec6d-bg-alt), var(--wec6d-primary));
  border-top: 1px solid var(--wec6d-border);
  display: flex; justify-content: space-around; align-items: center;
}
.wec6d-bottomnav-btn {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: transparent; border: none; min-width: 6rem; min-height: 6rem;
  color: var(--wec6d-text-muted); cursor: pointer; gap: 0.2rem; padding: 0.4rem;
  transition: color .15s ease, transform .15s ease;
}
.wec6d-bottomnav-btn .material-icons,
.wec6d-bottomnav-btn ion-icon,
.wec6d-bottomnav-btn i { font-size: 2.4rem; }
.wec6d-bottomnav-btn span { font-size: 1.1rem; }
.wec6d-bottomnav-btn:active { transform: scale(0.92); color: var(--wec6d-accent); }
.wec6d-bottomnav-btn.wec6d-nav-active { color: var(--wec6d-accent); }

/* ---------- Main padding to clear bottom nav ---------- */
main { display: block; }
@media (max-width: 768px) {
  main { padding-bottom: 7.2rem; }
}

/* ---------- Desktop: hide bottom nav ---------- */
@media (min-width: 769px) {
  .wec6d-bottomnav { display: none; }
}

/* ---------- 430px fine-tune ---------- */
@media (max-width: 430px) {
  body { font-size: 1.5rem; }
  .wec6d-game-grid { grid-template-columns: repeat(3, 1fr); gap: 0.6rem; }
  .wec6d-game-card span { font-size: 1.1rem; }
  .wec6d-section h2 { font-size: 1.8rem; }
  .wec6d-logo span { font-size: 1.35rem; }
  .wec6d-btn { padding: 0.6rem 0.9rem; font-size: 1.2rem; }
}
