/*!
 * 13bet - core stylesheet
 * Prefix: wa47b-
 * Palette: #006400 | #98FB98 | #7CFC00 | #262626
 * Mobile-first, max-width 430px wrapper.
 */
:root {
  --wa47b-primary: #006400;
  --wa47b-accent: #7CFC00;
  --wa47b-light: #98FB98;
  --wa47b-bg: #262626;
  --wa47b-bg2: #1c1c1c;
  --wa47b-card: #2f2f2f;
  --wa47b-text: #f3fff3;
  --wa47b-muted: #b6cbb6;
  --wa47b-border: rgba(124, 252, 0, 0.25);
  --wa47b-shadow: 0 6px 22px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html {
  font-size: 62.5%;
}

body {
  margin: 0;
  padding: 0;
  background: var(--wa47b-bg);
  color: var(--wa47b-text);
  font-family: "Be Vietnam Pro", "Segoe UI", Roboto, system-ui, sans-serif;
  font-size: 1.5rem;
  line-height: 1.5rem;
  overflow-x: hidden;
}

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

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

.wa47b-wrapper {
  max-width: 430px;
  margin: 0 auto;
  background: var(--wa47b-bg);
  min-height: 100vh;
  position: relative;
  box-shadow: var(--wa47b-shadow);
}

/* ============ Header ============ */
.wa47b-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  max-width: 430px;
  margin: 0 auto;
  background: linear-gradient(120deg, #004d00 0%, #006400 55%, #228b22 100%);
  border-bottom: 1px solid var(--wa47b-border);
  padding: 0.7rem 1rem;
}

.wa47b-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
}

.wa47b-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 800;
  font-size: 1.7rem;
  color: #fff;
}

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

.wa47b-logo span {
  background: linear-gradient(90deg, var(--wa47b-accent), #fff);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.wa47b-header-actions {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.wa47b-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: 0;
  border-radius: 999px;
  padding: 0.7rem 1.2rem;
  font-weight: 700;
  font-size: 1.3rem;
  cursor: pointer;
  transition: transform 0.15s ease, filter 0.2s ease;
  min-height: 38px;
}

.wa47b-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.08);
}

.wa47b-btn-primary {
  background: linear-gradient(90deg, var(--wa47b-accent), #4caf50);
  color: #0a2a0a;
}

.wa47b-btn-ghost {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.45);
}

.wa47b-menu-btn {
  background: transparent;
  border: 0;
  color: #fff;
  font-size: 1.8rem;
  cursor: pointer;
  padding: 0.4rem 0.6rem;
}

/* ============ Mobile menu ============ */
.wa47b-mobile-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.32s ease;
  background: var(--wa47b-bg2);
  border-top: 1px solid var(--wa47b-border);
}

.wa47b-mobile-menu.wa47b-menu-open {
  max-height: 480px;
}

.wa47b-mobile-menu ul {
  list-style: none;
  margin: 0;
  padding: 0.4rem 0.6rem 0.8rem;
}

.wa47b-mobile-menu li a {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 0.8rem;
  color: var(--wa47b-light);
  font-size: 1.4rem;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.08);
}

.wa47b-mobile-menu li a:hover {
  color: var(--wa47b-accent);
}

/* ============ Hero carousel ============ */
.wa47b-hero {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  margin: 0.9rem 0;
}

.wa47b-hero-track {
  display: flex;
  transition: transform 0.55s ease;
}

.wa47b-hero-slide {
  min-width: 100%;
  position: relative;
}

.wa47b-hero-slide img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 14px;
}

.wa47b-hero-dots {
  position: absolute;
  bottom: 8px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 6px;
}

.wa47b-hero-dots span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
}

.wa47b-hero-dots span.wa47b-on {
  background: var(--wa47b-accent);
}

/* ============ Section / Titles ============ */
.wa47b-section {
  padding: 1rem;
}

.wa47b-section h2 {
  font-size: 1.9rem;
  margin: 0.4rem 0 0.8rem;
  color: #fff;
  border-left: 4px solid var(--wa47b-accent);
  padding-left: 0.7rem;
  line-height: 1.5rem;
}

.wa47b-section h3 {
  font-size: 1.6rem;
  color: var(--wa47b-light);
  margin: 0.6rem 0;
}

.wa47b-section p {
  font-size: 1.4rem;
  color: var(--wa47b-muted);
  margin: 0.4rem 0 0.9rem;
  line-height: 2.3rem;
}

.wa47b-intro {
  background: linear-gradient(135deg, rgba(0, 100, 0, 0.45), rgba(124, 252, 0, 0.08));
  border: 1px solid var(--wa47b-border);
  border-radius: 14px;
  padding: 1rem 1.1rem;
}

/* ============ Game grid ============ */
.wa47b-cat-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--wa47b-accent);
  margin: 1rem 0 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.wa47b-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
}

.wa47b-card {
  background: var(--wa47b-card);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  overflow: hidden;
  text-align: center;
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.2s ease;
}

.wa47b-card:hover {
  transform: translateY(-2px);
  border-color: var(--wa47b-accent);
}

.wa47b-card img {
  width: 100%;
  height: 92px;
  object-fit: cover;
}

.wa47b-card-name {
  display: block;
  padding: 0.35rem 0.25rem;
  font-size: 1.15rem;
  color: var(--wa47b-light);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ============ Promo CTA bar ============ */
.wa47b-cta {
  background: linear-gradient(90deg, #006400, #228b22);
  border-radius: 14px;
  padding: 1.1rem;
  text-align: center;
  margin: 1rem;
  border: 1px solid var(--wa47b-border);
}

.wa47b-cta h3 {
  margin: 0 0 0.5rem;
  color: #fff;
  font-size: 1.7rem;
}

.wa47b-cta p {
  color: var(--wa47b-light);
  font-size: 1.3rem;
  margin: 0 0 0.8rem;
}

/* ============ Feature / FAQ / Testimonial ============ */
.wa47b-feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.6rem;
}

.wa47b-feature {
  background: var(--wa47b-card);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 0.9rem;
}

.wa47b-feature .material-icons,
.wa47b-feature i {
  color: var(--wa47b-accent);
  font-size: 22px;
}

.wa47b-feature h4 {
  margin: 0.4rem 0 0.2rem;
  font-size: 1.4rem;
  color: #fff;
}

.wa47b-feature p {
  font-size: 1.2rem;
  color: var(--wa47b-muted);
  margin: 0;
  line-height: 1.9rem;
}

.wa47b-faq-item {
  border-bottom: 1px dashed rgba(255, 255, 255, 0.1);
  padding: 0.7rem 0;
}

.wa47b-faq-q {
  font-weight: 700;
  color: var(--wa47b-accent);
  font-size: 1.35rem;
}

.wa47b-faq-a {
  color: var(--wa47b-muted);
  font-size: 1.25rem;
  line-height: 2rem;
  margin-top: 0.25rem;
}

.wa47b-review {
  background: var(--wa47b-card);
  border-radius: 12px;
  padding: 0.9rem;
  margin-bottom: 0.6rem;
  border-left: 3px solid var(--wa47b-accent);
}

.wa47b-review .wa47b-stars {
  color: #ffd54f;
  font-size: 1.2rem;
}

.wa47b-review p {
  margin: 0.3rem 0;
  font-size: 1.25rem;
  color: var(--wa47b-light);
  line-height: 2rem;
}

/* ============ Winners / Payment ============ */
.wa47b-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.wa47b-list li {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0.7rem;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.08);
  font-size: 1.25rem;
}

.wa47b-list .wa47b-amt {
  color: var(--wa47b-accent);
  font-weight: 700;
}

.wa47b-pay {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.wa47b-pay span {
  background: var(--wa47b-card);
  border: 1px solid var(--wa47b-border);
  border-radius: 8px;
  padding: 0.5rem 0.7rem;
  font-size: 1.15rem;
  color: var(--wa47b-light);
}

/* ============ Reveal animation ============ */
.wa47b-reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.wa47b-reveal.wa47b-visible {
  opacity: 1;
  transform: none;
}

/* ============ Footer ============ */
.wa47b-footer {
  background: var(--wa47b-bg2);
  padding: 1.2rem 1rem 6rem;
  border-top: 1px solid var(--wa47b-border);
}

.wa47b-footer h4 {
  color: #fff;
  font-size: 1.4rem;
  margin: 0.5rem 0;
}

.wa47b-footer p {
  color: var(--wa47b-muted);
  font-size: 1.2rem;
  line-height: 1.9rem;
  margin: 0.2rem 0 0.6rem;
}

.wa47b-footer-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.4rem 0.8rem;
  margin: 0.7rem 0;
}

.wa47b-footer-links a {
  font-size: 1.2rem;
  color: var(--wa47b-light);
}

.wa47b-footer-promos {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0.7rem 0;
}

.wa47b-footer-promos .wa47b-btn {
  padding: 0.55rem 0.9rem;
  font-size: 1.2rem;
}

.wa47b-copy {
  font-size: 1.1rem;
  color: #6f8a6f;
  text-align: center;
  margin-top: 0.8rem;
}

/* ============ Bottom nav (mobile only) ============ */
.wa47b-bottomnav {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  width: 100%;
  max-width: 430px;
  height: 60px;
  background: linear-gradient(180deg, #014a01, #003200);
  border-top: 1px solid var(--wa47b-border);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
  padding-bottom: env(safe-area-inset-bottom, 0);
}

.wa47b-bottomnav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 0;
  color: var(--wa47b-light);
  min-width: 60px;
  min-height: 60px;
  font-size: 1.05rem;
  gap: 2px;
  cursor: pointer;
  transition: transform 0.15s ease, color 0.2s ease;
}

.wa47b-bottomnav-btn i,
.wa47b-bottomnav-btn .material-icons,
.wa47b-bottomnav-btn ion-icon {
  font-size: 24px;
}

.wa47b-bottomnav-btn:active {
  transform: scale(0.92);
  color: var(--wa47b-accent);
}

.wa47b-bottomnav-btn.wa47b-active {
  color: var(--wa47b-accent);
}

/* ============ Desktop layout ============ */
@media (min-width: 769px) {
  .wa47b-bottomnav {
    display: none;
  }

  .wa47b-wrapper {
    box-shadow: 0 0 35px rgba(0, 0, 0, 0.4);
  }
}

@media (max-width: 768px) {
  main {
    padding-bottom: 80px;
  }
}

/* Utility */
.wa47b-text-accent {
  color: var(--wa47b-accent);
  font-weight: 700;
}
