/* 3win game - Core stylesheet
   Prefix: wdea9-
   All custom classes use the wdea9- prefix. Comments in English only.
   Mobile-first design, max-width 430px, root font 62.5% for rem sizing.
*/

:root {
  --wdea9-bg: #262626;
  --wdea9-bg2: #1d1d1d;
  --wdea9-bg3: #333333;
  --wdea9-text: #FAF0E6;
  --wdea9-primary: #CD853F;
  --wdea9-primary-dark: #a86a2e;
  --wdea9-primary-light: #e6b87a;
  --wdea9-muted: #c9bfae;
  --wdea9-border: rgba(205, 133, 63, 0.35);
  --wdea9-radius: 1.2rem;
  --wdea9-shadow: 0 0.4rem 1.2rem rgba(0, 0, 0, 0.45);
}

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

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

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

img { max-width: 100%; display: block; }

a { color: var(--wdea9-primary-light); text-decoration: none; }

.wdea9-container { width: 100%; padding: 0 1.2rem; }

.wdea9-wrapper { max-width: 430px; margin: 0 auto; }

/* ===== Header ===== */
.wdea9-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  max-width: 430px;
  margin: 0 auto;
  z-index: 1000;
  background: linear-gradient(135deg, #1d1d1d, #262626);
  border-bottom: 0.2rem solid var(--wdea9-primary);
  box-shadow: var(--wdea9-shadow);
}
.wdea9-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 1.2rem;
  min-height: 5.6rem;
}
.wdea9-logo {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  color: var(--wdea9-text);
  font-weight: 700;
  font-size: 1.7rem;
}
.wdea9-logo img { width: 3rem; height: 3rem; border-radius: 0.6rem; }
.wdea9-logo span { color: var(--wdea9-primary); }
.wdea9-header-actions { display: flex; align-items: center; gap: 0.6rem; }
.wdea9-menu-btn {
  background: transparent;
  border: 0.1rem solid var(--wdea9-border);
  color: var(--wdea9-text);
  width: 3.8rem; height: 3.8rem;
  border-radius: 0.8rem;
  font-size: 1.8rem;
  cursor: pointer;
}

/* ===== Buttons ===== */
.wdea9-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.8rem 1.4rem;
  border-radius: 2rem;
  font-weight: 700;
  font-size: 1.35rem;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  min-height: 4rem;
  text-align: center;
}
.wdea9-btn-primary {
  background: linear-gradient(135deg, var(--wdea9-primary), var(--wdea9-primary-dark));
  color: #1a1a1a;
  box-shadow: 0 0.3rem 0.8rem rgba(205,133,63,0.45);
}
.wdea9-btn-outline {
  background: transparent;
  border: 0.15rem solid var(--wdea9-primary);
  color: var(--wdea9-primary-light);
}
.wdea9-btn-block { width: 100%; }
.wdea9-btn:hover { transform: translateY(-0.1rem); }
.wdea9-btn:active, .wdea9-touch { transform: scale(0.96); }

/* ===== Mobile menu ===== */
.wdea9-mobile-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  background: var(--wdea9-bg2);
  border-bottom: 0.1rem solid var(--wdea9-border);
}
.wdea9-mobile-menu.wdea9-menu-open { max-height: 60rem; }
.wdea9-mobile-menu ul { list-style: none; padding: 0.6rem 1.2rem 1rem; }
.wdea9-mobile-menu li { margin: 0.2rem 0; }
.wdea9-mobile-menu a {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1rem 0.8rem;
  color: var(--wdea9-text);
  border-radius: 0.8rem;
  font-size: 1.45rem;
}
.wdea9-mobile-menu a:hover { background: var(--wdea9-bg3); color: var(--wdea9-primary-light); }
.wdea9-mobile-menu a i { color: var(--wdea9-primary); width: 2.2rem; text-align: center; }

/* ===== Main / sections ===== */
main { padding-top: 6.4rem; padding-bottom: 1rem; }
.wdea9-section { padding: 2rem 1.2rem; }
.wdea9-section-title {
  font-size: 1.9rem;
  font-weight: 800;
  margin-bottom: 1.2rem;
  color: var(--wdea9-text);
  border-left: 0.4rem solid var(--wdea9-primary);
  padding-left: 0.8rem;
}
.wdea9-section-title span { color: var(--wdea9-primary); }
.wdea9-lead { color: var(--wdea9-muted); font-size: 1.45rem; margin-bottom: 1.4rem; }

/* ===== Hero / Carousel ===== */
.wdea9-carousel {
  position: relative;
  border-radius: var(--wdea9-radius);
  overflow: hidden;
  margin: 1rem 1.2rem;
  box-shadow: var(--wdea9-shadow);
}
.wdea9-slide {
  display: none;
  position: relative;
  cursor: pointer;
}
.wdea9-slide.wdea9-slide-active { display: block; }
.wdea9-slide img { width: 100%; height: 18rem; object-fit: cover; }
.wdea9-slide-cap {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.8));
  padding: 1.2rem;
  color: var(--wdea9-text);
  font-weight: 700;
  font-size: 1.4rem;
}
.wdea9-dots {
  position: absolute;
  bottom: 0.8rem;
  right: 1rem;
  display: flex;
  gap: 0.5rem;
}
.wdea9-dot {
  width: 0.8rem; height: 0.8rem;
  border-radius: 50%;
  background: rgba(250,240,230,0.5);
  border: none; cursor: pointer;
}
.wdea9-dot.wdea9-dot-active { background: var(--wdea9-primary); }

/* ===== Filter tabs ===== */
.wdea9-filter {
  display: flex;
  gap: 0.6rem;
  overflow-x: auto;
  padding: 0.6rem 1.2rem 1rem;
  -webkit-overflow-scrolling: touch;
}
.wdea9-filter-tab {
  flex: 0 0 auto;
  padding: 0.6rem 1.2rem;
  border-radius: 2rem;
  background: var(--wdea9-bg3);
  color: var(--wdea9-muted);
  font-size: 1.3rem;
  border: 0.1rem solid transparent;
  cursor: pointer;
  white-space: nowrap;
}
.wdea9-filter-tab.wdea9-filter-tab-active {
  background: var(--wdea9-primary);
  color: #1a1a1a;
  font-weight: 700;
}

/* ===== Game grid ===== */
.wdea9-game-section { margin-bottom: 1.5rem; }
.wdea9-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
  padding: 0 1.2rem;
}
.wdea9-game-card {
  background: var(--wdea9-bg3);
  border-radius: 0.8rem;
  overflow: hidden;
  border: 0.1rem solid var(--wdea9-border);
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease;
  text-align: center;
}
.wdea9-game-card:hover { transform: translateY(-0.2rem); border-color: var(--wdea9-primary); }
.wdea9-game-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}
.wdea9-game-card .wdea9-game-name {
  font-size: 1.05rem;
  padding: 0.4rem 0.3rem 0.5rem;
  color: var(--wdea9-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ===== Cards / features ===== */
.wdea9-card {
  background: var(--wdea9-bg2);
  border: 0.1rem solid var(--wdea9-border);
  border-radius: var(--wdea9-radius);
  padding: 1.4rem;
  margin-bottom: 1.2rem;
  box-shadow: var(--wdea9-shadow);
}
.wdea9-card h3 { color: var(--wdea9-primary-light); font-size: 1.6rem; margin-bottom: 0.6rem; }
.wdea9-card p { color: var(--wdea9-muted); font-size: 1.35rem; margin-bottom: 0.6rem; }
.wdea9-feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.8rem;
}
.wdea9-feature {
  background: var(--wdea9-bg3);
  border-radius: 0.8rem;
  padding: 1rem;
  text-align: center;
}
.wdea9-feature i { font-size: 2.2rem; color: var(--wdea9-primary); margin-bottom: 0.4rem; }
.wdea9-feature h4 { font-size: 1.3rem; color: var(--wdea9-text); margin-bottom: 0.3rem; }
.wdea9-feature p { font-size: 1.15rem; color: var(--wdea9-muted); }

/* ===== Testimonials ===== */
.wdea9-testimonial {
  background: var(--wdea9-bg2);
  border-left: 0.3rem solid var(--wdea9-primary);
  padding: 1rem 1.2rem;
  border-radius: 0.6rem;
  margin-bottom: 0.8rem;
}
.wdea9-testimonial p { font-style: italic; color: var(--wdea9-muted); font-size: 1.3rem; }
.wdea9-testimonial .wdea9-author { color: var(--wdea9-primary-light); font-size: 1.2rem; margin-top: 0.4rem; font-weight: 700; }

/* ===== Winners ===== */
.wdea9-winner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.7rem 1rem; background: var(--wdea9-bg2); border-radius: 0.6rem; margin-bottom: 0.5rem;
}
.wdea9-winner span:first-child { color: var(--wdea9-text); font-weight: 600; }
.wdea9-winner .wdea9-amount { color: var(--wdea9-primary); font-weight: 800; }

/* ===== Payment ===== */
.wdea9-pay { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.wdea9-pay span {
  background: var(--wdea9-bg3); padding: 0.6rem 1rem; border-radius: 0.6rem;
  font-size: 1.2rem; color: var(--wdea9-muted); border: 0.1rem solid var(--wdea9-border);
}

/* ===== FAQ ===== */
.wdea9-faq { border-bottom: 0.1rem solid var(--wdea9-border); padding: 0.8rem 0; }
.wdea9-faq h4 { color: var(--wdea9-primary-light); font-size: 1.35rem; margin-bottom: 0.3rem; }
.wdea9-faq p { color: var(--wdea9-muted); font-size: 1.3rem; }

/* ===== CTA banner ===== */
.wdea9-cta {
  background: linear-gradient(135deg, var(--wdea9-primary), var(--wdea9-primary-dark));
  color: #1a1a1a;
  border-radius: var(--wdea9-radius);
  padding: 1.6rem;
  text-align: center;
  margin: 1.5rem 1.2rem;
}
.wdea9-cta h3 { font-size: 1.8rem; margin-bottom: 0.4rem; }
.wdea9-cta p { font-size: 1.3rem; margin-bottom: 1rem; }
.wdea9-cta .wdea9-btn { background: #1a1a1a; color: var(--wdea9-primary-light); }

/* ===== Footer ===== */
.wdea9-footer {
  background: var(--wdea9-bg2);
  border-top: 0.2rem solid var(--wdea9-primary);
  padding: 2rem 1.2rem 9rem;
  margin-top: 2rem;
}
.wdea9-footer p { color: var(--wdea9-muted); font-size: 1.3rem; margin-bottom: 1rem; }
.wdea9-footer-links {
  display: flex; flex-wrap: wrap; gap: 0.5rem 1rem; margin-bottom: 1.2rem;
}
.wdea9-footer-links a {
  color: var(--wdea9-muted); font-size: 1.25rem; text-decoration: underline;
}
.wdea9-footer-links a:hover { color: var(--wdea9-primary-light); }
.wdea9-footer-promo { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 1rem 0; }
.wdea9-footer-promo .wdea9-btn { font-size: 1.2rem; padding: 0.6rem 1rem; min-height: 3.4rem; }
.wdea9-copyright { color: var(--wdea9-muted); font-size: 1.2rem; border-top: 0.1rem solid var(--wdea9-border); padding-top: 1rem; }

/* ===== Mobile bottom nav ===== */
.wdea9-bottomnav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  max-width: 430px;
  margin: 0 auto;
  height: 6rem;
  background: linear-gradient(180deg, #262626, #1a1a1a);
  border-top: 0.2rem solid var(--wdea9-primary);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
  box-shadow: 0 -0.3rem 1rem rgba(0,0,0,0.5);
}
.wdea9-navbtn {
  flex: 1;
  background: transparent;
  border: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  min-width: 6rem;
  min-height: 6rem;
  color: var(--wdea9-muted);
  cursor: pointer;
  position: relative;
  transition: color 0.15s ease, transform 0.15s ease;
}
.wdea9-navbtn i, .wdea9-navbtn .material-icons-outlined, .wdea9-navbtn .ionicon { font-size: 2.2rem; }
.wdea9-navbtn span { font-size: 1.05rem; }
.wdea9-navbtn:hover { color: var(--wdea9-primary-light); }
.wdea9-navbtn:active, .wdea9-navbtn.wdea9-touch { transform: scale(0.92); }
.wdea9-navbtn.wdea9-navbtn-active { color: var(--wdea9-primary); }
.wdea9-navbtn.wdea9-navbtn-active::before {
  content: ""; position: absolute; top: 0; left: 25%; right: 25%; height: 0.25rem;
  background: var(--wdea9-primary); border-radius: 0 0 0.3rem 0.3rem;
}
.wdea9-nav-badge {
  position: absolute; top: 0.6rem; right: 1.4rem;
  background: #d9534f; color: #fff; font-size: 0.9rem;
  border-radius: 50%; width: 1.6rem; height: 1.6rem;
  display: flex; align-items: center; justify-content: center;
}

/* ===== Desktop ===== */
@media (min-width: 769px) {
  .wdea9-bottomnav { display: none; }
  body { max-width: 430px; }
}

/* ===== Mobile padding clearance ===== */
@media (max-width: 768px) {
  main { padding-bottom: 8rem; }
}

/* ===== Utility ===== */
.wdea9-text-center { text-align: center; }
.wdea9-mt1 { margin-top: 1rem; }
.wdea9-mb1 { margin-bottom: 1rem; }
.wdea9-row { display: flex; align-items: center; gap: 0.8rem; flex-wrap: wrap; }
.wdea9-promo-text { color: var(--wdea9-primary-light); font-weight: 700; }
