/* ============================================================
 * 789bingo - Core Stylesheet
 * Prefix: wceba-  (classes), --wceba-* (vars)
 * Palette: #262626 (bg) | #98FB98 | #7CFC00 | #90EE90
 * Mobile-first, max-width 430px container.
 * All comments in English.
 * ============================================================ */

:root {
  --wceba-bg: #262626;
  --wceba-bg-2: #1c1c1c;
  --wceba-bg-3: #303030;
  --wceba-text: #98FB98;
  --wceba-primary: #7CFC00;
  --wceba-secondary: #90EE90;
  --wceba-accent: #98FB98;
  --wceba-muted: #9bd99b;
  --wceba-white: #ffffff;
  --wceba-radius: 14px;
  --wceba-radius-sm: 10px;
  --wceba-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
  --wceba-header-h: 56px;
  --wceba-bottomnav-h: 62px;
}

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

html {
  font-size: 62.5%; /* 1rem = 10px */
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--wceba-bg);
  color: var(--wceba-accent);
  line-height: 1.5rem;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--wceba-primary); text-decoration: none; }
a:hover { color: var(--wceba-white); }
img { max-width: 100%; display: block; }

/* ---------- Layout ---------- */
.wceba-wrapper {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  background: var(--wceba-bg);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

.wceba-container {
  width: 100%;
  padding: 0 1.4rem;
}

main.wceba-main {
  padding-top: calc(var(--wceba-header-h) + 0.8rem);
  padding-bottom: calc(var(--wceba-bottomnav-h) + 2rem);
}

@media (min-width: 769px) {
  main.wceba-main { padding-bottom: 2rem; }
}

/* ---------- Header ---------- */
.wceba-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: linear-gradient(180deg, #1a1a1a 0%, #262626 100%);
  border-bottom: 1px solid rgba(124, 252, 0, 0.18);
}

.wceba-header-inner {
  max-width: 430px;
  margin: 0 auto;
  height: var(--wceba-header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.2rem;
}

.wceba-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--wceba-white);
  font-weight: 800;
  font-size: 1.8rem;
  letter-spacing: 0.3px;
}
.wceba-logo img { width: 28px; height: 28px; border-radius: 6px; }
.wceba-logo .wceba-brand-mark { color: var(--wceba-primary); }

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

.wceba-menu-btn {
  background: transparent;
  border: 0;
  color: var(--wceba-text);
  font-size: 2.2rem;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: 8px;
}
.wceba-menu-btn.wceba-is-active { background: rgba(124, 252, 0, 0.12); }

/* ---------- Buttons ---------- */
.wceba-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 38px;
  padding: 0 1.4rem;
  border-radius: 999px;
  font-size: 1.4rem;
  font-weight: 700;
  border: 0;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.wceba-btn:active { transform: scale(0.96); }
.wceba-btn-register {
  background: linear-gradient(135deg, #7CFC00 0%, #90EE90 100%);
  color: #1a2a05;
  box-shadow: 0 4px 14px rgba(124, 252, 0, 0.35);
}
.wceba-btn-login {
  background: transparent;
  color: var(--wceba-text);
  border: 1.5px solid var(--wceba-primary);
}
.wceba-btn-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: linear-gradient(135deg, #7CFC00 0%, #98FB98 100%);
  color: #16210a;
  padding: 1.1rem 2.2rem;
  border-radius: 999px;
  font-weight: 800;
  font-size: 1.55rem;
  border: 0;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(124, 252, 0, 0.35);
}
.wceba-btn-cta:hover { color: #0c1503; transform: translateY(-1px); }

/* ---------- Mobile expandable menu ---------- */
.wceba-mobile-menu {
  position: fixed;
  top: var(--wceba-header-h);
  left: 0;
  right: 0;
  z-index: 9999;
  background: #1b1b1b;
  border-bottom: 1px solid rgba(124, 252, 0, 0.2);
  transform: translateY(-130%);
  transition: transform 0.28s ease;
  padding: 1rem 1.4rem 1.4rem;
  max-height: 70vh;
  overflow-y: auto;
}
.wceba-mobile-menu.wceba-is-open { transform: translateY(0); }
.wceba-mobile-menu a {
  display: block;
  padding: 1rem 0.6rem;
  color: var(--wceba-text);
  border-bottom: 1px dashed rgba(124, 252, 0, 0.12);
  font-size: 1.45rem;
  font-weight: 600;
}
.wceba-mobile-menu a:active { background: rgba(124, 252, 0, 0.08); }

/* ---------- Hero carousel ---------- */
.wceba-hero {
  position: relative;
  border-radius: var(--wceba-radius);
  overflow: hidden;
  margin: 1rem 0 1.4rem;
  box-shadow: var(--wceba-shadow);
}
.wceba-slide {
  display: none;
  position: relative;
}
.wceba-slide.wceba-active { display: block; }
.wceba-slide img { width: 100%; height: 200px; object-fit: cover; }
.wceba-slide-cap {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 1rem 1.2rem;
  background: linear-gradient(0deg, rgba(0,0,0,0.85), transparent);
  color: #fff;
}
.wceba-slide-cap h2 { margin: 0 0 0.3rem; font-size: 1.7rem; color: var(--wceba-primary); }
.wceba-slide-cap p { margin: 0; font-size: 1.25rem; color: var(--wceba-secondary); }

.wceba-dots {
  position: absolute;
  bottom: 8px;
  right: 12px;
  display: flex;
  gap: 6px;
}
.wceba-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  cursor: pointer;
  border: 0; padding: 0;
}
.wceba-dot.wceba-active { background: var(--wceba-primary); }

/* ---------- Section headings ---------- */
.wceba-section { margin: 1.6rem 0; }
.wceba-section-title {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--wceba-white);
  margin: 0 0 1rem;
  padding-left: 0.8rem;
  border-left: 4px solid var(--wceba-primary);
}
.wceba-section-title .material-icons,
.wceba-section-title i { color: var(--wceba-primary); font-size: 2rem; }

.wceba-h1 {
  font-size: 2rem;
  line-height: 1.35;
  color: var(--wceba-white);
  margin: 1.4rem 0 1rem;
  font-weight: 800;
}
.wceba-h1 .wceba-mark { color: var(--wceba-primary); }

.wceba-lead {
  color: var(--wceba-secondary);
  font-size: 1.35rem;
  margin: 0 0 1.2rem;
}

/* ---------- Filter chips ---------- */
.wceba-chips {
  display: flex;
  gap: 0.6rem;
  overflow-x: auto;
  padding: 0.3rem 0 0.8rem;
  -webkit-overflow-scrolling: touch;
}
.wceba-chip {
  flex: 0 0 auto;
  background: var(--wceba-bg-3);
  color: var(--wceba-text);
  border: 1px solid rgba(124,252,0,0.2);
  padding: 0.6rem 1.2rem;
  border-radius: 999px;
  font-size: 1.25rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}
.wceba-chip.wceba-active {
  background: linear-gradient(135deg, #7CFC00, #90EE90);
  color: #16210a;
  border-color: transparent;
}

/* ---------- Game grid ---------- */
.wceba-game-group { margin-bottom: 1.8rem; }
.wceba-game-group h3 {
  font-size: 1.5rem;
  color: var(--wceba-primary);
  margin: 0 0 0.8rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.wceba-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
}
.wceba-game-card {
  background: var(--wceba-bg-3);
  border-radius: var(--wceba-radius-sm);
  overflow: hidden;
  cursor: pointer;
  text-align: center;
  border: 1px solid rgba(124,252,0,0.08);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  opacity: 0.85;
}
.wceba-game-card:active { transform: scale(0.96); }
.wceba-game-card:hover { opacity: 1; box-shadow: var(--wceba-shadow); }
.wceba-game-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}
.wceba-game-card .wceba-game-name {
  display: block;
  font-size: 1.1rem;
  color: var(--wceba-text);
  padding: 0.4rem 0.3rem 0.5rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ---------- Cards ---------- */
.wceba-card {
  background: var(--wceba-bg-3);
  border-radius: var(--wceba-radius);
  padding: 1.4rem;
  margin-bottom: 1rem;
  border: 1px solid rgba(124,252,0,0.1);
  box-shadow: var(--wceba-shadow);
}
.wceba-card h3 {
  margin: 0 0 0.6rem;
  font-size: 1.45rem;
  color: var(--wceba-white);
}
.wceba-card p { margin: 0 0 0.6rem; font-size: 1.28rem; color: var(--wceba-secondary); }

/* ---------- Feature list ---------- */
.wceba-feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.8rem;
}
.wceba-feature {
  background: var(--wceba-bg-3);
  padding: 1.2rem 0.8rem;
  border-radius: var(--wceba-radius-sm);
  text-align: center;
  border: 1px solid rgba(124,252,0,0.1);
}
.wceba-feature .material-icons,
.wceba-feature i { font-size: 2.6rem; color: var(--wceba-primary); }
.wceba-feature strong { display: block; margin-top: 0.5rem; color: var(--wceba-white); font-size: 1.3rem; }
.wceba-feature span { font-size: 1.15rem; color: var(--wceba-muted); }

/* ---------- Steps ---------- */
.wceba-steps { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.wceba-steps li {
  position: relative;
  padding: 0.8rem 0.8rem 0.8rem 3.4rem;
  margin-bottom: 0.6rem;
  background: var(--wceba-bg-3);
  border-radius: var(--wceba-radius-sm);
  font-size: 1.28rem;
  color: var(--wceba-secondary);
  counter-increment: step;
}
.wceba-steps li::before {
  content: counter(step);
  position: absolute;
  left: 0.8rem;
  top: 50%;
  transform: translateY(-50%);
  width: 2.2rem;
  height: 2.2rem;
  background: linear-gradient(135deg, #7CFC00, #90EE90);
  color: #16210a;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.2rem;
}

/* ---------- RTP table ---------- */
.wceba-rtp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1.22rem;
  background: var(--wceba-bg-3);
  border-radius: var(--wceba-radius-sm);
  overflow: hidden;
}
.wceba-rtp-table th,
.wceba-rtp-table td {
  padding: 0.7rem 0.9rem;
  text-align: left;
  border-bottom: 1px solid rgba(124,252,0,0.08);
}
.wceba-rtp-table th { color: var(--wceba-primary); background: rgba(124,252,0,0.06); }
.wceba-rtp-table td { color: var(--wceba-secondary); }
.wceba-rtp-badge {
  display: inline-block;
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  background: rgba(124,252,0,0.18);
  color: var(--wceba-primary);
  font-weight: 700;
}

/* ---------- Testimonials ---------- */
.wceba-testi {
  background: var(--wceba-bg-3);
  border-radius: var(--wceba-radius-sm);
  padding: 1rem;
  margin-bottom: 0.7rem;
  border-left: 3px solid var(--wceba-primary);
}
.wceba-testi .wceba-stars { color: #ffd54f; font-size: 1.2rem; }
.wceba-testi p { margin: 0.4rem 0; font-size: 1.25rem; color: var(--wceba-secondary); }
.wceba-testi .wceba-author { font-size: 1.15rem; color: var(--wceba-text); font-weight: 700; }

/* ---------- Payment icons ---------- */
.wceba-pay-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.wceba-pay {
  flex: 0 0 auto;
  background: #f6f8f3;
  color: #262626;
  border-radius: 8px;
  padding: 0.5rem 0.9rem;
  font-weight: 700;
  font-size: 1.15rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

/* ---------- Winners ---------- */
.wceba-winners {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.6rem;
}
.wceba-winner {
  background: var(--wceba-bg-3);
  padding: 0.7rem;
  border-radius: var(--wceba-radius-sm);
  font-size: 1.18rem;
  border: 1px solid rgba(124,252,0,0.1);
}
.wceba-winner strong { color: var(--wceba-primary); display: block; }

/* ---------- FAQ ---------- */
.wceba-faq-item {
  background: var(--wceba-bg-3);
  border-radius: var(--wceba-radius-sm);
  padding: 0.9rem 1rem;
  margin-bottom: 0.6rem;
  border: 1px solid rgba(124,252,0,0.08);
}
.wceba-faq-item h4 { margin: 0 0 0.3rem; font-size: 1.32rem; color: var(--wceba-primary); }
.wceba-faq-item p { margin: 0; font-size: 1.22rem; color: var(--wceba-secondary); }

/* ---------- Inline promo link ---------- */
.wceba-promo-link {
  color: var(--wceba-primary);
  font-weight: 800;
  cursor: pointer;
}
.wceba-promo-link:hover { color: var(--wceba-white); text-decoration: underline; }

/* ---------- App CTA ---------- */
.wceba-app-cta {
  background: linear-gradient(135deg, rgba(124,252,0,0.15), rgba(144,238,144,0.05));
  border-radius: var(--wceba-radius);
  padding: 1.4rem;
  border: 1px solid rgba(124,252,0,0.25);
  text-align: center;
  margin: 1rem 0;
}
.wceba-app-cta h3 { margin: 0 0 0.4rem; color: var(--wceba-white); font-size: 1.5rem; }
.wceba-app-cta p { margin: 0 0 1rem; color: var(--wceba-secondary); font-size: 1.25rem; }

/* ---------- Footer ---------- */
.wceba-footer {
  background: var(--wceba-bg-2);
  border-top: 1px solid rgba(124,252,0,0.18);
  padding: 1.8rem 1.4rem calc(var(--wceba-bottomnav-h) + 1.6rem);
  color: var(--wceba-secondary);
  font-size: 1.2rem;
}
@media (min-width: 769px) {
  .wceba-footer { padding-bottom: 1.8rem; }
}
.wceba-footer h4 { color: var(--wceba-primary); margin: 0 0 0.6rem; font-size: 1.3rem; }
.wceba-footer p { color: var(--wceba-muted); margin: 0 0 0.8rem; }
.wceba-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  margin: 0.6rem 0 1rem;
}
.wceba-footer-links a { color: var(--wceba-text); font-size: 1.15rem; }
.wceba-footer-links a:hover { color: var(--wceba-primary); }
.wceba-footer-promos { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 0.6rem 0 1rem; }
.wceba-footer-copy { font-size: 1.1rem; color: var(--wceba-muted); border-top: 1px dashed rgba(124,252,0,0.12); padding-top: 0.8rem; }

/* ---------- Bottom nav (mobile only) ---------- */
.wceba-bottomnav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--wceba-bottomnav-h);
  background: linear-gradient(180deg, #232323 0%, #181818 100%);
  border-top: 2px solid var(--wceba-primary);
  display: flex;
  justify-content: space-around;
  align-items: stretch;
  z-index: 1000;
  box-shadow: 0 -4px 18px rgba(0, 0, 0, 0.45);
}
.wceba-navbtn {
  flex: 1;
  min-width: 60px;
  min-height: 60px;
  background: transparent;
  border: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  color: var(--wceba-secondary);
  cursor: pointer;
  padding: 4px 2px;
  position: relative;
  transition: color 0.18s ease, transform 0.18s ease;
}
.wceba-navbtn .material-icons,
.wceba-navbtn i,
.wceba-navbtn ion-icon { font-size: 22px; }
.wceba-navbtn span {
  font-size: 1.05rem;
  font-weight: 600;
}
.wceba-navbtn:active { transform: scale(0.92); }
.wceba-navbtn.wceba-current { color: var(--wceba-primary); }
.wceba-navbtn.wceba-current::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 28px;
  height: 3px;
  background: var(--wceba-primary);
  border-radius: 0 0 4px 4px;
}
.wceba-navbtn.wceba-promo {
  color: var(--wceba-primary);
}
.wceba-navbtn.wceba-promo span { color: var(--wceba-primary); }

@media (min-width: 769px) {
  .wceba-bottomnav { display: none; }
  .wceba-menu-btn { display: none; }
  .wceba-wrapper { max-width: 760px; }
  .wceba-grid { grid-template-columns: repeat(5, 1fr); }
  .wceba-feature-grid { grid-template-columns: repeat(4, 1fr); }
}

/* ---------- Reveal animation ---------- */
.wceba-reveal { opacity: 0; transform: translateY(12px); transition: opacity 0.5s ease, transform 0.5s ease; }
.wceba-reveal.wceba-inview { opacity: 1; transform: translateY(0); }

/* ---------- Helpers ---------- */
.wceba-text-center { text-align: center; }
.wceba-mt-1 { margin-top: 0.6rem; }
.wceba-mt-2 { margin-top: 1.2rem; }
.wceba-badge {
  display: inline-block;
  background: rgba(124,252,0,0.18);
  color: var(--wceba-primary);
  padding: 0.15rem 0.7rem;
  border-radius: 999px;
  font-size: 1.05rem;
  font-weight: 700;
}
