/**
 * 786areacode - Core Stylesheet
 * All classes use wfde2- prefix for namespace isolation
 * Color palette: #C0C0C0 | #B0E0E6 | #1E90FF | #34495E | #00BFFF
 * Dark = background (#34495E), Light = text (#C0C0C0, #B0E0E6)
 */

/* === CSS Variables === */
:root {
  --wfde2-primary: #1E90FF;
  --wfde2-secondary: #00BFFF;
  --wfde2-accent: #B0E0E6;
  --wfde2-bg: #34495E;
  --wfde2-bg-dark: #2c3e50;
  --wfde2-bg-darker: #1a252f;
  --wfde2-text: #C0C0C0;
  --wfde2-text-light: #B0E0E6;
  --wfde2-text-white: #ffffff;
  --wfde2-highlight: #00BFFF;
  --wfde2-border: rgba(30, 144, 255, 0.3);
  --wfde2-radius: 1.2rem;
  --wfde2-radius-sm: 0.8rem;
  --wfde2-shadow: 0 0.4rem 1.2rem rgba(0, 0, 0, 0.3);
  --wfde2-transition: all 0.3s ease;
}

/* === Reset & Base === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 62.5%; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: var(--wfde2-bg);
  color: var(--wfde2-text);
  line-height: 1.5rem;
  font-size: 1.4rem;
  max-width: 430px;
  margin: 0 auto;
  overflow-x: hidden;
}
a { text-decoration: none; color: var(--wfde2-primary); }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

/* === Header === */
.wfde2-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: var(--wfde2-bg-darker);
  border-bottom: 0.2rem solid var(--wfde2-border);
  max-width: 430px; margin: 0 auto;
  height: 5.6rem;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 1.2rem;
}
.wfde2-header-left {
  display: flex; align-items: center; gap: 0.8rem;
}
.wfde2-header-logo {
  width: 3.2rem; height: 3.2rem; border-radius: 0.6rem;
}
.wfde2-header-name {
  font-size: 1.6rem; font-weight: 700; color: var(--wfde2-text-white);
  letter-spacing: 0.05rem;
}
.wfde2-header-right {
  display: flex; align-items: center; gap: 0.8rem;
}
.wfde2-btn-register {
  background: linear-gradient(135deg, var(--wfde2-primary), var(--wfde2-secondary));
  color: #fff; font-size: 1.2rem; font-weight: 700;
  padding: 0.6rem 1.4rem; border: none; border-radius: var(--wfde2-radius-sm);
  cursor: pointer; transition: var(--wfde2-transition);
  min-height: 3.6rem; min-width: 4.4rem;
}
.wfde2-btn-register:hover { transform: scale(1.05); box-shadow: 0 0 1rem rgba(30, 144, 255, 0.5); }
.wfde2-btn-login {
  background: transparent; border: 0.15rem solid var(--wfde2-primary);
  color: var(--wfde2-primary); font-size: 1.2rem; font-weight: 600;
  padding: 0.6rem 1.2rem; border-radius: var(--wfde2-radius-sm);
  cursor: pointer; transition: var(--wfde2-transition);
  min-height: 3.6rem; min-width: 4.4rem;
}
.wfde2-btn-login:hover { background: rgba(30, 144, 255, 0.15); }
.wfde2-menu-toggle {
  background: none; border: none; color: var(--wfde2-text);
  font-size: 2.4rem; cursor: pointer; padding: 0.4rem;
  min-width: 4.4rem; min-height: 4.4rem;
  display: flex; align-items: center; justify-content: center;
}

/* === Mobile Menu === */
.wfde2-mobile-menu {
  position: fixed; top: 0; right: -100%; width: 75%; max-width: 320px;
  height: 100vh; z-index: 9999;
  background: var(--wfde2-bg-darker);
  transition: right 0.35s ease;
  padding: 2rem; overflow-y: auto;
}
.wfde2-menu-active { right: 0; }
.wfde2-mobile-menu .wfde2-menu-close {
  background: none; border: none; color: var(--wfde2-text);
  font-size: 2.8rem; cursor: pointer; position: absolute;
  top: 1rem; right: 1.5rem;
}
.wfde2-mobile-menu ul { margin-top: 4rem; }
.wfde2-mobile-menu li { border-bottom: 0.1rem solid rgba(255,255,255,0.08); }
.wfde2-mobile-menu a {
  display: block; padding: 1.4rem 1rem; color: var(--wfde2-text-light);
  font-size: 1.5rem; transition: var(--wfde2-transition);
}
.wfde2-mobile-menu a:hover { color: var(--wfde2-primary); padding-left: 1.5rem; }
.wfde2-menu-overlay {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.6); z-index: 9998;
  opacity: 0; visibility: hidden; transition: all 0.3s ease;
}
.wfde2-overlay-active { opacity: 1; visibility: visible; }

/* === Main Content === */
.wfde2-main { padding-top: 6.4rem; }

/* === Carousel === */
.wfde2-carousel {
  position: relative; width: 100%; overflow: hidden;
  border-radius: 0 0 var(--wfde2-radius) var(--wfde2-radius);
}
.wfde2-carousel-track { position: relative; width: 100%; height: 22rem; }
.wfde2-carousel-slide {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  opacity: 0; transition: opacity 0.6s ease; cursor: pointer;
}
.wfde2-slide-active { opacity: 1; }
.wfde2-carousel-slide img { width: 100%; height: 100%; object-fit: cover; }
.wfde2-carousel-dots {
  position: absolute; bottom: 1rem; left: 50%; transform: translateX(-50%);
  display: flex; gap: 0.6rem;
}
.wfde2-carousel-dot {
  width: 0.8rem; height: 0.8rem; border-radius: 50%;
  background: rgba(255,255,255,0.4); cursor: pointer;
  transition: var(--wfde2-transition);
}
.wfde2-dot-active { background: var(--wfde2-primary); width: 2rem; border-radius: 0.4rem; }

/* === Sections === */
.wfde2-section { padding: 2rem 1.2rem; }
.wfde2-section-title {
  font-size: 1.8rem; font-weight: 700; color: var(--wfde2-text-white);
  margin-bottom: 1.2rem; padding-bottom: 0.8rem;
  border-bottom: 0.2rem solid var(--wfde2-primary);
  display: flex; align-items: center; gap: 0.6rem;
}
.wfde2-section-title i, .wfde2-section-title .material-icons {
  color: var(--wfde2-secondary); font-size: 2rem;
}

/* === Game Grid === */
.wfde2-game-category-title {
  font-size: 1.5rem; font-weight: 600; color: var(--wfde2-highlight);
  margin: 1.5rem 0 1rem; padding-left: 0.5rem;
  border-left: 0.3rem solid var(--wfde2-primary);
}
.wfde2-game-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
}
.wfde2-game-item {
  display: flex; flex-direction: column; align-items: center;
  cursor: pointer; transition: var(--wfde2-transition);
  border-radius: var(--wfde2-radius-sm); padding: 0.6rem;
  background: rgba(255,255,255,0.04);
}
.wfde2-game-item:hover { background: rgba(30, 144, 255, 0.12); transform: translateY(-0.2rem); }
.wfde2-game-item img {
  width: 5.8rem; height: 5.8rem; border-radius: 0.8rem;
  margin-bottom: 0.4rem; object-fit: cover;
}
.wfde2-game-name {
  font-size: 1rem; color: var(--wfde2-text-light); text-align: center;
  line-height: 1.2rem; max-width: 100%; overflow: hidden;
  text-overflow: ellipsis; white-space: nowrap;
}

/* === Promo Buttons === */
.wfde2-promo-btn {
  display: inline-block;
  background: linear-gradient(135deg, var(--wfde2-primary), var(--wfde2-secondary));
  color: #fff; font-weight: 700; font-size: 1.4rem;
  padding: 1rem 2.4rem; border-radius: var(--wfde2-radius);
  cursor: pointer; border: none; transition: var(--wfde2-transition);
  text-align: center; min-height: 4.4rem;
}
.wfde2-promo-btn:hover { transform: scale(1.05); box-shadow: 0 0 1.5rem rgba(0, 191, 255, 0.4); }
.wfde2-promo-text {
  color: var(--wfde2-primary); font-weight: 600;
  border-bottom: 0.1rem dashed var(--wfde2-primary);
  cursor: pointer; transition: var(--wfde2-transition);
}
.wfde2-promo-text:hover { color: var(--wfde2-secondary); }

/* === Cards === */
.wfde2-card {
  background: var(--wfde2-bg-dark); border-radius: var(--wfde2-radius);
  padding: 1.6rem; margin-bottom: 1.2rem; border: 0.1rem solid var(--wfde2-border);
}
.wfde2-card h3 { color: var(--wfde2-text-white); font-size: 1.5rem; margin-bottom: 0.8rem; }
.wfde2-card p { color: var(--wfde2-text); line-height: 1.8rem; margin-bottom: 0.8rem; }

/* === Info Box === */
.wfde2-info-box {
  background: linear-gradient(135deg, rgba(30, 144, 255, 0.15), rgba(0, 191, 255, 0.1));
  border: 0.15rem solid var(--wfde2-primary);
  border-radius: var(--wfde2-radius); padding: 1.6rem; margin: 1.2rem 0;
}
.wfde2-info-box h3 { color: var(--wfde2-primary); }

/* === Footer === */
.wfde2-footer {
  background: var(--wfde2-bg-darker); padding: 2rem 1.2rem;
  border-top: 0.2rem solid var(--wfde2-border); text-align: center;
}
.wfde2-footer-brand { color: var(--wfde2-text-light); font-size: 1.3rem; margin-bottom: 1.2rem; line-height: 1.8rem; }
.wfde2-footer-links { display: flex; flex-wrap: wrap; gap: 0.8rem; justify-content: center; margin-bottom: 1.2rem; }
.wfde2-footer-links a {
  color: var(--wfde2-primary); font-size: 1.2rem; padding: 0.4rem 0.8rem;
  background: rgba(30, 144, 255, 0.1); border-radius: var(--wfde2-radius-sm);
  transition: var(--wfde2-transition);
}
.wfde2-footer-links a:hover { background: rgba(30, 144, 255, 0.25); }
.wfde2-footer-copy { color: var(--wfde2-text); font-size: 1.1rem; margin-top: 1rem; }

/* === Bottom Navigation === */
.wfde2-bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 1000;
  background: var(--wfde2-bg-darker);
  border-top: 0.15rem solid var(--wfde2-border);
  max-width: 430px; margin: 0 auto;
  display: flex; justify-content: space-around; align-items: center;
  height: 6rem; padding: 0 0.4rem;
}
.wfde2-bottom-nav-btn {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-width: 6rem; min-height: 5rem; background: none; border: none;
  color: var(--wfde2-text); cursor: pointer; transition: var(--wfde2-transition);
  padding: 0.4rem; border-radius: var(--wfde2-radius-sm);
}
.wfde2-bottom-nav-btn i, .wfde2-bottom-nav-btn .material-icons {
  font-size: 2.2rem; margin-bottom: 0.2rem; transition: var(--wfde2-transition);
}
.wfde2-bottom-nav-btn span {
  font-size: 1rem; color: var(--wfde2-text); line-height: 1.2rem;
}
.wfde2-bottom-nav-btn:hover, .wfde2-bottom-nav-btn:active {
  color: var(--wfde2-primary);
}
.wfde2-bottom-nav-btn:hover i, .wfde2-bottom-nav-btn:active .material-icons {
  color: var(--wfde2-secondary); transform: scale(1.15);
}
.wfde2-bottom-nav-btn.wfde2-nav-active {
  color: var(--wfde2-primary);
}
.wfde2-bottom-nav-btn.wfde2-nav-active i,
.wfde2-bottom-nav-btn.wfde2-nav-active .material-icons {
  color: var(--wfde2-secondary);
}

/* === Responsive === */
@media (max-width: 768px) {
  .wfde2-main { padding-bottom: 8rem; }
  .wfde2-footer { padding-bottom: 8rem; }
}
@media (min-width: 769px) {
  .wfde2-bottom-nav { display: none; }
}
@media (min-width: 431px) {
  body { border-left: 0.1rem solid var(--wfde2-border); border-right: 0.1rem solid var(--wfde2-border); }
}

/* === Utility Classes === */
.wfde2-text-center { text-align: center; }
.wfde2-mt-1 { margin-top: 1rem; }
.wfde2-mb-1 { margin-bottom: 1rem; }
.wfde2-mt-2 { margin-top: 2rem; }
.wfde2-mb-2 { margin-bottom: 2rem; }
.wfde2-hidden { display: none !important; }
.wfde2-flex-center { display: flex; align-items: center; justify-content: center; }

/* === FAQ Accordion === */
.wfde2-faq-item { border-bottom: 0.1rem solid rgba(255,255,255,0.08); padding: 1.2rem 0; }
.wfde2-faq-q {
  font-size: 1.4rem; font-weight: 600; color: var(--wfde2-text-white);
  cursor: pointer; padding-right: 2rem; position: relative;
}
.wfde2-faq-a {
  font-size: 1.3rem; color: var(--wfde2-text); line-height: 1.8rem;
  margin-top: 0.8rem; padding-left: 1rem;
  border-left: 0.2rem solid var(--wfde2-primary);
}

/* === Testimonial === */
.wfde2-testimonial {
  background: var(--wfde2-bg-dark); border-radius: var(--wfde2-radius);
  padding: 1.4rem; margin-bottom: 1rem;
  border-left: 0.3rem solid var(--wfde2-primary);
}
.wfde2-testimonial-name { font-weight: 700; color: var(--wfde2-primary); font-size: 1.3rem; }
.wfde2-testimonial-text { color: var(--wfde2-text); font-size: 1.3rem; margin-top: 0.6rem; line-height: 1.6rem; }

/* === Winners List === */
.wfde2-winner-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.8rem 1rem; background: rgba(255,255,255,0.03);
  border-radius: var(--wfde2-radius-sm); margin-bottom: 0.6rem;
}
.wfde2-winner-name { color: var(--wfde2-text-light); font-size: 1.3rem; }
.wfde2-winner-amount { color: var(--wfde2-secondary); font-weight: 700; font-size: 1.4rem; }
