/* wk777 core stylesheet - basefiles version
   All custom classes use the wa380- prefix.
   Color palette: #191970 (navy) | #ADD8E6 (light blue) | #2D2D2D (charcoal) | #FAFAFA (off-white)
   Mobile-first, root font 62.5% (1rem = 10px). */

:root {
  --wa380-primary: #191970;
  --wa380-accent: #ADD8E6;
  --wa380-dark: #2D2D2D;
  --wa380-light: #FAFAFA;
  --wa380-gold: #F4C95D;
  --wa380-red: #E13B3B;
  --wa380-mid: #2A2F5A;
  --wa380-radius: 1.4rem;
  --wa380-shadow: 0 0.4rem 1.2rem rgba(0,0,0,0.28);
}

* { 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(--wa380-dark);
  color: var(--wa380-light);
  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(--wa380-accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ===== Header ===== */
.wa380-header {
  position: fixed; top: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 430px; z-index: 1000;
  background: linear-gradient(135deg, var(--wa380-primary), var(--wa380-mid));
  border-bottom: 0.2rem solid var(--wa380-gold);
  box-shadow: var(--wa380-shadow);
}
.wa380-header-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.8rem 1rem; gap: 0.6rem;
}
.wa380-brand { display: flex; align-items: center; gap: 0.7rem; min-width: 0; }
.wa380-logo {
  width: 3rem; height: 3rem; border-radius: 0.8rem; object-fit: cover;
  border: 0.15rem solid var(--wa380-gold);
}
.wa380-brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.wa380-brand-name {
  font-size: 1.7rem; font-weight: 800; color: var(--wa380-light);
  letter-spacing: 0.05rem;
}
.wa380-brand-name span { color: var(--wa380-gold); }
.wa380-brand-tag { font-size: 1rem; color: var(--wa380-accent); }
.wa380-head-actions { display: flex; align-items: center; gap: 0.5rem; }
.wa380-menu-btn {
  background: transparent; border: 0.1rem solid var(--wa380-accent);
  color: var(--wa380-light); border-radius: 0.7rem;
  width: 3.2rem; height: 3.2rem; font-size: 1.8rem;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; flex-shrink: 0;
}
.wa380-menu-btn.wa380-active { background: var(--wa380-accent); color: var(--wa380-primary); }
.wa380-btn {
  border: none; border-radius: 0.9rem; padding: 0.7rem 1.2rem;
  font-size: 1.3rem; font-weight: 700; cursor: pointer;
  min-height: 3.2rem; display: inline-flex; align-items: center; gap: 0.4rem;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.wa380-btn:active { transform: scale(0.95); }
.wa380-btn-register {
  background: linear-gradient(135deg, var(--wa380-gold), #E0A93A);
  color: var(--wa380-primary);
}
.wa380-btn-login {
  background: transparent; color: var(--wa380-light);
  border: 0.15rem solid var(--wa380-accent);
}

/* ===== Nav menu (expandable) ===== */
.wa380-nav {
  max-height: 0; overflow: hidden;
  background: var(--wa380-primary);
  transition: max-height 0.3s ease;
  border-top: 0.1rem solid rgba(173,216,230,0.15);
}
.wa380-nav.wa380-nav-open { max-height: 60rem; }
.wa380-nav-list {
  list-style: none; padding: 0.6rem 1rem 1rem;
  display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem;
}
.wa380-nav-list a {
  display: flex; align-items: center; gap: 0.6rem;
  padding: 0.9rem 1rem; border-radius: 0.8rem;
  background: rgba(173,216,230,0.08);
  color: var(--wa380-light); font-size: 1.3rem; font-weight: 600;
  text-decoration: none;
}
.wa380-nav-list a:hover { background: rgba(173,216,230,0.2); text-decoration: none; }
.wa380-nav-list i { color: var(--wa380-gold); font-size: 1.5rem; }

/* ===== Layout ===== */
.wa380-main { padding-top: 6.4rem; }
.wa380-container { padding: 0 1rem; }
.wa380-section { padding: 1.8rem 0; }
.wa380-section-title {
  font-size: 1.8rem; font-weight: 800; color: var(--wa380-light);
  margin-bottom: 0.4rem; display: flex; align-items: center; gap: 0.6rem;
}
.wa380-section-title .wa380-bar {
  width: 0.4rem; height: 1.8rem; background: var(--wa380-gold); border-radius: 0.3rem;
}
.wa380-section-sub { font-size: 1.25rem; color: var(--wa380-accent); margin-bottom: 1rem; }

/* ===== Hero / Carousel ===== */
.wa380-carousel {
  position: relative; border-radius: var(--wa380-radius); overflow: hidden;
  box-shadow: var(--wa380-shadow); margin-bottom: 1rem;
}
.wa380-viewport { position: relative; width: 100%; aspect-ratio: 16/9; }
.wa380-slide {
  position: absolute; inset: 0; opacity: 0; transition: opacity 0.6s ease;
  cursor: pointer;
}
.wa380-slide.wa380-active { opacity: 1; }
.wa380-slide img { width: 100%; height: 100%; object-fit: cover; }
.wa380-slide-overlay {
  position: absolute; left: 1rem; bottom: 1rem; right: 1rem;
  background: linear-gradient(transparent, rgba(0,0,0,0.75));
  padding-top: 2rem; border-radius: 0 0 1rem 1rem;
}
.wa380-slide-overlay h2 { font-size: 1.6rem; color: var(--wa380-light); font-weight: 800; }
.wa380-slide-overlay p { font-size: 1.15rem; color: var(--wa380-accent); }
.wa380-dots {
  position: absolute; bottom: 0.6rem; left: 50%; transform: translateX(-50%);
  display: flex; gap: 0.5rem; z-index: 3;
}
.wa380-dot {
  width: 0.7rem; height: 0.7rem; border-radius: 50%;
  background: rgba(255,255,255,0.45); border: none; cursor: pointer; padding: 0;
}
.wa380-dot.wa380-active { background: var(--wa380-gold); }

/* ===== Category chips ===== */
.wa380-chips { display: flex; gap: 0.6rem; overflow-x: auto; padding: 0.4rem 0 1rem; }
.wa380-chip {
  flex-shrink: 0; padding: 0.6rem 1.2rem; border-radius: 2rem;
  background: rgba(173,216,230,0.1); color: var(--wa380-light);
  font-size: 1.2rem; font-weight: 600; border: 0.1rem solid transparent;
  cursor: pointer; white-space: nowrap;
}
.wa380-chip.wa380-active { background: var(--wa380-gold); color: var(--wa380-primary); }

/* ===== Game grid ===== */
.wa380-game-section { margin-bottom: 1.6rem; }
.wa380-game-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.7rem;
}
.wa380-game-card {
  background: var(--wa380-mid); border-radius: 0.9rem; overflow: hidden;
  border: 0.1rem solid rgba(173,216,230,0.12);
  transition: transform 0.12s ease; cursor: pointer;
}
.wa380-game-card:active { transform: scale(0.96); }
.wa380-game-card img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.wa380-game-name {
  font-size: 1rem; color: var(--wa380-light); text-align: center;
  padding: 0.4rem 0.3rem; font-weight: 600; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis;
}
.wa380-game-cat-tag {
  display: inline-block; padding: 0.2rem 0.7rem; border-radius: 0.5rem;
  background: var(--wa380-primary); color: var(--wa380-accent);
  font-size: 1rem; font-weight: 700; text-transform: uppercase; margin-bottom: 0.6rem;
}

/* ===== Cards / panels ===== */
.wa380-card {
  background: linear-gradient(145deg, var(--wa380-mid), var(--wa380-primary));
  border-radius: var(--wa380-radius); padding: 1.4rem; margin-bottom: 1.2rem;
  box-shadow: var(--wa380-shadow); border: 0.1rem solid rgba(173,216,230,0.1);
}
.wa380-card h3 { font-size: 1.5rem; color: var(--wa380-gold); margin-bottom: 0.6rem; }
.wa380-card p { font-size: 1.2rem; color: var(--wa380-light); margin-bottom: 0.6rem; }
.wa380-card ul { list-style: none; padding-left: 0; }
.wa380-card ul li {
  font-size: 1.2rem; padding: 0.4rem 0; color: var(--wa380-light);
  display: flex; align-items: flex-start; gap: 0.5rem;
}
.wa380-card ul li i { color: var(--wa380-accent); margin-top: 0.2rem; }

.wa380-cta {
  display: inline-block; background: linear-gradient(135deg, var(--wa380-gold), #E0A93A);
  color: var(--wa380-primary); font-weight: 800; font-size: 1.3rem;
  padding: 0.9rem 1.6rem; border-radius: 1rem; cursor: pointer;
  text-decoration: none; min-height: 3.2rem;
}
.wa380-cta:hover { text-decoration: none; filter: brightness(1.05); }
.wa380-text-link { color: var(--wa380-gold); font-weight: 700; text-decoration: underline; }

/* ===== Feature / highlight grid ===== */
.wa380-feat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; }
.wa380-feat {
  background: var(--wa380-mid); border-radius: 1rem; padding: 1rem;
  text-align: center; border: 0.1rem solid rgba(173,216,230,0.12);
}
.wa380-feat i { font-size: 2.4rem; color: var(--wa380-gold); margin-bottom: 0.4rem; }
.wa380-feat h4 { font-size: 1.25rem; color: var(--wa380-light); margin-bottom: 0.3rem; }
.wa380-feat p { font-size: 1.05rem; color: var(--wa380-accent); }

/* ===== Testimonial ===== */
.wa380-testi {
  background: var(--wa380-mid); border-radius: 1rem; padding: 1rem;
  margin-bottom: 0.8rem; border-left: 0.3rem solid var(--wa380-gold);
}
.wa380-testi-stars { color: var(--wa380-gold); font-size: 1.2rem; margin-bottom: 0.3rem; }
.wa380-testi p { font-size: 1.15rem; color: var(--wa380-light); margin-bottom: 0.4rem; }
.wa380-testi cite { font-size: 1rem; color: var(--wa380-accent); font-style: normal; }

/* ===== Payment chips ===== */
.wa380-pay { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.wa380-pay span {
  background: var(--wa380-light); color: var(--wa380-primary);
  padding: 0.5rem 0.9rem; border-radius: 0.6rem; font-size: 1.1rem; font-weight: 700;
}

/* ===== Winners strip ===== */
.wa380-winners {
  background: var(--wa380-primary); border-radius: 1rem; padding: 0.8rem 1rem;
  margin-bottom: 1rem; overflow: hidden;
}
.wa380-winner-row {
  display: flex; justify-content: space-between; font-size: 1.15rem;
  padding: 0.3rem 0; border-bottom: 0.05rem solid rgba(173,216,230,0.1);
}
.wa380-winner-row:last-child { border-bottom: none; }
.wa380-winner-row b { color: var(--wa380-gold); }

/* ===== Reveal animation ===== */
.wa380-reveal { opacity: 0; transform: translateY(1.6rem); transition: opacity 0.5s ease, transform 0.5s ease; }
.wa380-reveal.wa380-visible { opacity: 1; transform: translateY(0); }

/* ===== FAQ ===== */
.wa380-faq details {
  background: var(--wa380-mid); border-radius: 0.8rem; padding: 0.9rem 1rem;
  margin-bottom: 0.6rem; border: 0.1rem solid rgba(173,216,230,0.1);
}
.wa380-faq summary { font-size: 1.25rem; font-weight: 700; color: var(--wa380-gold); cursor: pointer; }
.wa380-faq details p { font-size: 1.15rem; color: var(--wa380-light); margin-top: 0.6rem; }

/* ===== Footer ===== */
.wa380-footer {
  background: var(--wa380-primary); padding: 2rem 1rem 6.5rem;
  border-top: 0.2rem solid var(--wa380-gold);
}
.wa380-footer-brand { font-size: 1.5rem; font-weight: 800; color: var(--wa380-light); margin-bottom: 0.5rem; }
.wa380-footer-brand span { color: var(--wa380-gold); }
.wa380-footer-desc { font-size: 1.15rem; color: var(--wa380-accent); margin-bottom: 1rem; }
.wa380-footer-btns { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: 1rem; }
.wa380-footer-btns .wa380-cta { font-size: 1.2rem; padding: 0.7rem 1.2rem; }
.wa380-footer-links { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem 1rem; margin-bottom: 1rem; }
.wa380-footer-links a { font-size: 1.15rem; color: var(--wa380-light); }
.wa380-footer-copy { font-size: 1.05rem; color: var(--wa380-accent); text-align: center; padding-top: 0.8rem; border-top: 0.05rem solid rgba(173,216,230,0.15); }

/* ===== Mobile bottom nav ===== */
.wa380-bottom {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 430px; z-index: 1000;
  background: linear-gradient(180deg, var(--wa380-mid), var(--wa380-dark));
  border-top: 0.15rem solid var(--wa380-gold);
  display: flex; justify-content: space-around; align-items: stretch;
  height: 6rem; box-shadow: 0 -0.3rem 1rem rgba(0,0,0,0.4);
}
.wa380-bottom-btn {
  flex: 1; min-width: 60px; min-height: 60px;
  background: transparent; border: none; color: var(--wa380-light);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 0.2rem; cursor: pointer; text-decoration: none;
  font-size: 1rem; font-weight: 600; padding: 0.4rem 0.2rem;
  transition: color 0.15s ease, transform 0.15s ease;
  position: relative;
}
.wa380-bottom-btn:active { transform: scale(0.9); }
.wa380-bottom-btn i, .wa380-bottom-btn .material-icons-outlined,
.wa380-bottom-btn .ion { font-size: 2.2rem; line-height: 1; }
.wa380-bottom-btn.wa380-current { color: var(--wa380-gold); }
.wa380-bottom-btn.wa380-current::after {
  content: ''; position: absolute; top: 0; left: 30%; right: 30%;
  height: 0.25rem; background: var(--wa380-gold); border-radius: 0 0 0.3rem 0.3rem;
}
.wa380-bottom-btn.wa380-promo { color: var(--wa380-accent); }
.wa380-bottom-btn.wa380-promo i { color: var(--wa380-gold); }
.wa380-bottom-btn span { font-size: 1rem; }

/* ===== Desktop ===== */
@media (min-width: 769px) {
  body { max-width: 768px; }
  .wa380-bottom { display: none; }
  .wa380-footer { padding-bottom: 2rem; }
  .wa380-game-grid { grid-template-columns: repeat(6, 1fr); }
  .wa380-feat-grid { grid-template-columns: repeat(4, 1fr); }
}

/* Mobile bottom padding so content is not hidden behind fixed bottom nav */
@media (max-width: 768px) {
  .wa380-main { padding-bottom: 7rem; }
}
