/* ============================================================
   cm888.homes - core stylesheet (prefix: wa624)
   All custom classes use wa624- prefix.
   Mobile-first, max 430px viewport.
   Palette: #0097A7 | #3A3A3A | #00CED1 | #FFC0CB | #FF69B4
   ============================================================ */

:root {
  --wa624-primary: #0097A7;
  --wa624-bg: #3A3A3A;
  --wa624-accent: #00CED1;
  --wa624-pink: #FFC0CB;
  --wa624-hot: #FF69B4;
  --wa624-bg-dark: #1f1f1f;
  --wa624-bg-card: #2a2a2a;
  --wa624-text: #ffffff;
  --wa624-text-muted: #cfcfcf;
  --wa624-gold: #ffd700;
  --wa624-radius: 12px;
  --wa624-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}

* { 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(--wa624-bg-dark);
  color: var(--wa624-text);
  line-height: 1.5;
  max-width: 430px;
  margin: 0 auto;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

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

a { color: var(--wa624-accent); text-decoration: none; }

/* ============================================================
   Header
   ============================================================ */
.wa624-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: linear-gradient(135deg, #2a2a2a 0%, #0097A7 120%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 1rem;
  border-bottom: 2px solid var(--wa624-accent);
  box-shadow: var(--wa624-shadow);
}

.wa624-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.wa624-logo img { width: 28px; height: 28px; border-radius: 6px; }

.wa624-logo-text {
  font-size: 1.6rem;
  font-weight: 800;
  background: linear-gradient(90deg, var(--wa624-accent), var(--wa624-pink));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: 0.5px;
}

.wa624-header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.wa624-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: none;
  border-radius: 20px;
  padding: 0.6rem 1.1rem;
  font-size: 1.2rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  min-height: 38px;
}

.wa624-btn-register {
  background: linear-gradient(135deg, var(--wa624-hot), var(--wa624-pink));
  color: #1f1f1f;
  box-shadow: 0 2px 8px rgba(255, 105, 180, 0.45);
}

.wa624-btn-login {
  background: linear-gradient(135deg, var(--wa624-accent), var(--wa624-primary));
  color: #fff;
  box-shadow: 0 2px 8px rgba(0, 206, 209, 0.4);
}

.wa624-btn:active { transform: scale(0.95); }

.wa624-menu-btn {
  background: transparent;
  border: 1px solid var(--wa624-accent);
  color: var(--wa624-accent);
  border-radius: 8px;
  width: 38px;
  height: 38px;
  font-size: 1.4rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ============================================================
   Mobile dropdown menu
   ============================================================ */
.wa624-mobile-menu {
  display: none;
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  max-width: 430px;
  margin: 0 auto;
  background: rgba(31, 31, 31, 0.98);
  border-bottom: 2px solid var(--wa624-primary);
  padding: 0.8rem 1rem 1.2rem;
  z-index: 9999;
  max-height: 78vh;
  overflow-y: auto;
}

.wa624-menu-open { display: block; }

.wa624-mobile-menu a {
  display: block;
  padding: 0.85rem 1rem;
  color: var(--wa624-text);
  font-size: 1.3rem;
  border-bottom: 1px dashed rgba(255,255,255,0.08);
}

.wa624-mobile-menu a:hover,
.wa624-mobile-menu a:focus { color: var(--wa624-accent); background: rgba(0,231,231,0.08); }

.wa624-menu-title {
  font-size: 1.2rem;
  color: var(--wa624-pink);
  margin: 0.5rem 0 0.3rem;
  font-weight: 700;
}

/* ============================================================
   Main container
   ============================================================ */
.wa624-main {
  padding-bottom: 80px;
}

.wa624-section {
  padding: 1.6rem 1rem;
}

.wa624-section-title {
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--wa624-text);
}

.wa624-section-title .wa624-mark {
  color: var(--wa624-accent);
}

.wa624-section-title::before {
  content: "";
  width: 4px;
  height: 1.8rem;
  background: linear-gradient(180deg, var(--wa624-accent), var(--wa624-pink));
  border-radius: 4px;
}

/* ============================================================
   Carousel
   ============================================================ */
.wa624-carousel {
  position: relative;
  border-radius: var(--wa624-radius);
  overflow: hidden;
  box-shadow: var(--wa624-shadow);
  margin: 1rem;
}

.wa624-slides { position: relative; width: 100%; aspect-ratio: 16 / 9; }

.wa624-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.6s ease;
  cursor: pointer;
}

.wa624-slide img { width: 100%; height: 100%; object-fit: cover; }

.wa624-slide-active { opacity: 1; }

.wa624-slide-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0.8rem 1rem;
  background: linear-gradient(0deg, rgba(0,0,0,0.85), rgba(0,0,0,0));
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--wa624-hot);
}

.wa624-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin: 0.8rem 0 0;
}

.wa624-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
  border: none;
  cursor: pointer;
}

.wa624-dot-active { background: var(--wa624-accent); }

/* ============================================================
   Category chips
   ============================================================ */
.wa624-cat-row {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding: 1rem;
  scrollbar-width: none;
}

.wa624-cat-row::-webkit-scrollbar { display: none; }

.wa624-cat-chip {
  flex: 0 0 auto;
  padding: 0.5rem 1rem;
  border-radius: 18px;
  background: var(--wa624-bg-card);
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--wa624-text);
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.wa624-cat-active {
  background: linear-gradient(135deg, var(--wa624-primary), var(--wa624-accent));
  border-color: var(--wa624-accent);
  color: #fff;
}

/* ============================================================
   Game grid (compact)
   ============================================================ */
.wa624-game-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.7rem;
  padding: 0 1rem;
}

.wa624-game-card {
  background: var(--wa624-bg-card);
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  border: 1px solid rgba(255,255,255,0.06);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  display: block;
}

.wa624-game-card:active { transform: scale(0.96); }

.wa624-game-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: #111;
}

.wa624-game-card-name {
  font-size: 1.05rem;
  padding: 0.4rem 0.5rem;
  color: var(--wa624-text);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 600;
}

.wa624-hot-badge {
  position: absolute;
  top: 4px;
  left: 4px;
  background: var(--wa624-hot);
  color: #1f1f1f;
  font-size: 0.9rem;
  padding: 0.1rem 0.4rem;
  border-radius: 6px;
  font-weight: 700;
}

/* ============================================================
   Promo CTA banner
   ============================================================ */
.wa624-cta {
  background: linear-gradient(135deg, var(--wa624-primary), var(--wa624-hot));
  border-radius: var(--wa624-radius);
  padding: 1.2rem;
  margin: 1rem;
  text-align: center;
  color: #fff;
  box-shadow: var(--wa624-shadow);
}

.wa624-cta h3 { font-size: 1.6rem; margin-bottom: 0.4rem; }
.wa624-cta p { font-size: 1.2rem; margin-bottom: 0.8rem; color: #fff; }

.wa624-cta-btn {
  display: inline-block;
  background: #fff;
  color: var(--wa624-primary);
  font-weight: 800;
  padding: 0.7rem 1.6rem;
  border-radius: 24px;
  font-size: 1.3rem;
  border: none;
  cursor: pointer;
}

/* ============================================================
   Info boxes (What is / How to Play / FAQ / Features ...)
   ============================================================ */
.wa624-info-box {
  background: var(--wa624-bg-card);
  border-radius: var(--wa624-radius);
  padding: 1.2rem;
  margin: 1rem;
  border-left: 4px solid var(--wa624-accent);
}

.wa624-info-box h2 { font-size: 1.5rem; margin-bottom: 0.6rem; color: var(--wa624-accent); }
.wa624-info-box h3 { font-size: 1.3rem; margin: 0.8rem 0 0.4rem; color: var(--wa624-pink); }
.wa624-info-box p { font-size: 1.2rem; color: var(--wa624-text-muted); margin-bottom: 0.6rem; line-height: 1.6; }
.wa624-info-box ul { padding-left: 1.4rem; }
.wa624-info-box li { font-size: 1.2rem; color: var(--wa624-text-muted); margin-bottom: 0.4rem; }

.wa624-faq-q {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--wa624-accent);
  margin: 0.8rem 0 0.3rem;
}

.wa624-faq-a { font-size: 1.15rem; color: var(--wa624-text-muted); margin-bottom: 0.6rem; }

/* ============================================================
   Winners/testimonials/payment compact lists
   ============================================================ */
.wa624-list-row {
  display: flex;
  gap: 0.6rem;
  overflow-x: auto;
  padding: 0.5rem 1rem;
  scrollbar-width: none;
}
.wa624-list-row::-webkit-scrollbar { display: none; }

.wa624-pill-card {
  flex: 0 0 auto;
  width: 150px;
  background: var(--wa624-bg-card);
  border-radius: 10px;
  padding: 0.7rem;
  border: 1px solid rgba(255,255,255,0.08);
}

.wa624-pill-card .wa624-name { font-size: 1.1rem; font-weight: 700; color: var(--wa624-pink); }
.wa624-pill-card .wa624-meta { font-size: 1rem; color: var(--wa624-text-muted); margin-top: 0.2rem; }
.wa624-pill-card .wa624-amount { font-size: 1.2rem; color: var(--wa624-gold); font-weight: 800; margin-top: 0.3rem; }

/* ============================================================
   Footer
   ============================================================ */
.wa624-footer {
  background: #161616;
  padding: 1.4rem 1rem 2rem;
  border-top: 2px solid var(--wa624-primary);
  margin-top: 1.4rem;
}

.wa624-footer-brand {
  font-size: 1.3rem;
  color: var(--wa624-text-muted);
  margin-bottom: 0.8rem;
  line-height: 1.6;
}

.wa624-footer-promo {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.wa624-footer-link {
  background: linear-gradient(135deg, var(--wa624-primary), var(--wa624-hot));
  color: #fff;
  border: none;
  border-radius: 18px;
  padding: 0.5rem 1rem;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
}

.wa624-footer-sitelist {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1rem;
  margin-bottom: 0.8rem;
}

.wa624-footer-sitelist a {
  font-size: 1.1rem;
  color: var(--wa624-text-muted);
  text-decoration: underline;
}

.wa624-footer-copy {
  font-size: 1rem;
  color: #777;
  text-align: center;
  border-top: 1px dashed #333;
  padding-top: 0.8rem;
}

/* ============================================================
   Bottom mobile nav (fixed, 5 buttons)
   ============================================================ */
.wa624-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  max-width: 430px;
  margin: 0 auto;
  height: 62px;
  background: linear-gradient(180deg, #2a2a2a, #161616);
  border-top: 2px solid var(--wa624-accent);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
  box-shadow: 0 -4px 14px rgba(0,0,0,0.45);
}

.wa624-navbtn {
  flex: 1;
  min-width: 60px;
  min-height: 60px;
  background: transparent;
  border: none;
  color: var(--wa624-text-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  transition: transform 0.15s ease, color 0.15s ease;
}

.wa624-navbtn .wa624-nav-icon {
  font-size: 22px;
  line-height: 1;
}

.wa624-navbtn .wa624-nav-label { font-size: 1rem; }

.wa624-navbtn:active { transform: scale(0.9); }

.wa624-navbtn-active {
  color: var(--wa624-accent);
}

.wa624-navbtn-active .wa624-nav-icon {
  color: var(--wa624-hot);
  transform: translateY(-1px);
}

/* hide bottom nav on desktop */
@media (min-width: 769px) {
  .wa624-bottom-nav { display: none; }
  body { max-width: 430px; }
}

/* ensure main content clears bottom nav on mobile */
@media (max-width: 768px) {
  .wa624-main { padding-bottom: 80px; }
}

/* ============================================================
   Utility
   ============================================================ */
.wa624-text-link {
  color: var(--wa624-hot);
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;
  background: transparent;
  border: none;
  padding: 0;
}

.wa624-tag {
  display: inline-block;
  background: rgba(0, 206, 209, 0.15);
  color: var(--wa624-accent);
  border: 1px solid var(--wa624-accent);
  border-radius: 6px;
  padding: 0.1rem 0.5rem;
  font-size: 1rem;
  margin-right: 0.3rem;
}

.wa624-rating { color: var(--wa624-gold); font-size: 1.1rem; }