/* ==========================================================================
   bingo lucky - base styles
   Class prefix: w2a88-
   Palette: #9932CC | #4B0082 | #00FA9A | #008000 | #2C2C2C
   Mobile-first, max-width 430px viewport target.
   ========================================================================== */

:root {
  --w2a88-primary: #9932CC;
  --w2a88-primary-dark: #4B0082;
  --w2a88-accent: #00FA9A;
  --w2a88-accent-dark: #008000;
  --w2a88-bg: #2C2C2C;
  --w2a88-bg-deep: #1b1b1b;
  --w2a88-bg-card: #3a3340;
  --w2a88-text: #ffffff;
  --w2a88-text-muted: #cbb8dd;
  --w2a88-border: rgba(153, 50, 204, 0.35);
  --w2a88-radius: 14px;
  --w2a88-header-h: 60px;
  --w2a88-bottom-h: 62px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--w2a88-bg);
  color: var(--w2a88-text);
  line-height: 1.5;
  font-size: 1.5rem;
  overflow-x: hidden;
}

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

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

a:hover { text-decoration: underline; }

h1, h2, h3, h4 { margin: 0 0 0.6em; font-weight: 700; line-height: 1.25; }

p { margin: 0 0 1em; }

/* ---------- Layout primitives ---------- */
.w2a88-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 14px;
}

.w2a88-wrapper {
  max-width: 430px;
  margin: 0 auto;
  padding: 0 12px;
}

main { padding-bottom: calc(var(--w2a88-bottom-h) + 20px); }

/* ---------- Header ---------- */
.w2a88-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--w2a88-header-h);
  background: linear-gradient(90deg, var(--w2a88-primary-dark) 0%, var(--w2a88-primary) 100%);
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.35);
  transition: box-shadow .25s ease;
}

.w2a88-header-elevated { box-shadow: 0 4px 18px rgba(0,0,0,0.55); }

.w2a88-header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0 12px;
}

.w2a88-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.7rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: .3px;
}

.w2a88-brand img { width: 28px; height: 28px; border-radius: 6px; }

.w2a88-header-actions { display: flex; align-items: center; gap: 8px; }

.w2a88-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: none;
  border-radius: 999px;
  padding: 9px 16px;
  font-size: 1.3rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
  color: #fff;
  background: var(--w2a88-accent-dark);
  min-height: 36px;
}

.w2a88-btn:hover { transform: translateY(-1px); text-decoration: none; }

.w2a88-btn-primary {
  background: linear-gradient(135deg, var(--w2a88-accent) 0%, var(--w2a88-accent-dark) 100%);
  color: #08210f;
  box-shadow: 0 3px 10px rgba(0,250,154,0.35);
}

.w2a88-btn-ghost {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.35);
}

.w2a88-menu-toggle {
  background: rgba(255,255,255,0.12);
  border: none;
  color: #fff;
  width: 38px; height: 38px;
  border-radius: 10px;
  font-size: 1.8rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* ---------- Mobile slide menu ---------- */
.w2a88-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s ease;
  z-index: 9998;
}

.w2a88-overlay.w2a88-active { opacity: 1; visibility: visible; }

.w2a88-mobile-menu {
  position: fixed;
  top: 0; right: -85%;
  width: 80%;
  max-width: 320px;
  height: 100%;
  background: var(--w2a88-bg-deep);
  z-index: 9999;
  padding: 22px 18px;
  transform: translateX(0);
  transition: right .3s ease;
  overflow-y: auto;
}

.w2a88-mobile-menu.w2a88-menu-open { right: 0; }

.w2a88-mobile-menu h3 {
  color: var(--w2a88-accent);
  font-size: 1.4rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 18px;
}

.w2a88-mobile-menu a {
  display: block;
  padding: 11px 8px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  color: var(--w2a88-text);
  font-size: 1.45rem;
}

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

.w2a88-menu-close {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 2rem;
  float: right;
  cursor: pointer;
}

/* ---------- Hero carousel ---------- */
.w2a88-hero { margin-top: calc(var(--w2a88-header-h) + 12px); }

.w2a88-carousel {
  position: relative;
  border-radius: var(--w2a88-radius);
  overflow: hidden;
  background: #000;
  box-shadow: 0 6px 18px rgba(0,0,0,0.4);
}

.w2a88-slide {
  position: relative;
  display: none;
}

.w2a88-slide.w2a88-active { display: block; }

.w2a88-slide img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.w2a88-slide-caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 12px 14px;
  background: linear-gradient(transparent, rgba(0,0,0,0.85));
  font-size: 1.35rem;
  font-weight: 600;
}

.w2a88-slide-caption a { color: var(--w2a88-accent); }

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

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

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

/* ---------- Section / headings ---------- */
.w2a88-section {
  padding: 22px 0;
}

.w2a88-section-title {
  font-size: 1.9rem;
  color: #fff;
  border-left: 4px solid var(--w2a88-accent);
  padding-left: 10px;
  margin-bottom: 14px;
}

.w2a88-section-sub {
  color: var(--w2a88-text-muted);
  font-size: 1.35rem;
  margin-bottom: 16px;
}

/* ---------- Category chips ---------- */
.w2a88-cat-bar {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 8px;
  margin-bottom: 14px;
  -webkit-overflow-scrolling: touch;
}

.w2a88-cat-chip {
  flex: 0 0 auto;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  color: var(--w2a88-text);
  font-size: 1.25rem;
  font-weight: 600;
  border: 1px solid var(--w2a88-border);
  cursor: pointer;
}

.w2a88-cat-chip.w2a88-chip-active {
  background: var(--w2a88-primary);
  color: #fff;
  border-color: var(--w2a88-accent);
}

/* ---------- Game grid ---------- */
.w2a88-game-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.w2a88-game-card {
  background: var(--w2a88-bg-card);
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  transition: transform .15s ease, box-shadow .2s ease;
}

.w2a88-game-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.45);
}

.w2a88-game-card a { display: block; color: inherit; }
.w2a88-game-card a:hover { text-decoration: none; }

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

.w2a88-game-name {
  padding: 6px 8px;
  font-size: 1.15rem;
  font-weight: 600;
  text-align: center;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.w2a88-cat-heading {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.7rem;
  color: var(--w2a88-accent);
  margin: 22px 0 10px;
}

/* ---------- Feature cards ---------- */
.w2a88-card {
  background: var(--w2a88-bg-card);
  border-radius: var(--w2a88-radius);
  padding: 16px;
  margin-bottom: 12px;
  border: 1px solid var(--w2a88-border);
}

.w2a88-card h3 { color: var(--w2a88-accent); font-size: 1.55rem; }

.w2a88-card p { color: var(--w2a88-text-muted); font-size: 1.3rem; margin-bottom: 0; }

/* ---------- Testimonials ---------- */
.w2a88-testimonials {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.w2a88-testimonial {
  background: linear-gradient(135deg, rgba(153,50,204,0.18), rgba(75,0,130,0.18));
  border-left: 3px solid var(--w2a88-accent);
  padding: 14px;
  border-radius: 10px;
}

.w2a88-testimonial .w2a88-stars { color: #ffd54a; margin-bottom: 6px; }

.w2a88-testimonial cite {
  display: block;
  margin-top: 6px;
  color: var(--w2a88-text-muted);
  font-style: normal;
  font-size: 1.2rem;
}

/* ---------- Winners ticker ---------- */
.w2a88-winners {
  background: rgba(0,250,154,0.08);
  border: 1px solid rgba(0,250,154,0.3);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 1.25rem;
}

.w2a88-winner-row {
  display: flex;
  justify-content: space-between;
  padding: 4px 0;
  border-bottom: 1px dashed rgba(255,255,255,0.1);
}

.w2a88-winner-row:last-child { border-bottom: none; }
.w2a88-winner-amount { color: var(--w2a88-accent); font-weight: 700; }

/* ---------- Payment grid ---------- */
.w2a88-pay-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  text-align: center;
}

.w2a88-pay-item {
  background: rgba(255,255,255,0.06);
  border-radius: 8px;
  padding: 12px 6px;
  font-size: 1.15rem;
  color: var(--w2a88-text-muted);
}

.w2a88-pay-item i { font-size: 2.2rem; color: var(--w2a88-accent); display: block; margin-bottom: 4px; }

/* ---------- CTA block ---------- */
.w2a88-cta {
  background: linear-gradient(135deg, var(--w2a88-primary) 0%, var(--w2a88-primary-dark) 100%);
  border-radius: var(--w2a88-radius);
  padding: 22px 16px;
  text-align: center;
  margin: 16px 0;
}

.w2a88-cta h2 { color: #fff; font-size: 1.9rem; }
.w2a88-cta p { color: rgba(255,255,255,0.85); font-size: 1.3rem; }

.w2a88-cta .w2a88-btn { font-size: 1.5rem; padding: 12px 26px; }

/* ---------- FAQ ---------- */
.w2a88-faq-item {
  background: var(--w2a88-bg-card);
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 10px;
  border: 1px solid var(--w2a88-border);
}

.w2a88-faq-item h4 { color: var(--w2a88-accent); font-size: 1.35rem; margin-bottom: 6px; }
.w2a88-faq-item p { color: var(--w2a88-text-muted); font-size: 1.25rem; margin: 0; }

/* ---------- Footer ---------- */
.w2a88-footer {
  background: var(--w2a88-bg-deep);
  padding: 26px 14px;
  margin-top: 24px;
  border-top: 3px solid var(--w2a88-primary);
}

.w2a88-footer-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.w2a88-footer h4 {
  color: var(--w2a88-accent);
  font-size: 1.35rem;
  margin-bottom: 8px;
}

.w2a88-footer a {
  display: block;
  color: var(--w2a88-text-muted);
  padding: 4px 0;
  font-size: 1.2rem;
}

.w2a88-footer p { color: var(--w2a88-text-muted); font-size: 1.2rem; }

.w2a88-footer-promos {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 16px;
}

.w2a88-footer-promos .w2a88-btn { padding: 8px 14px; font-size: 1.2rem; }

.w2a88-copyright {
  text-align: center;
  font-size: 1.15rem;
  color: var(--w2a88-text-muted);
  padding-top: 10px;
  border-top: 1px solid rgba(255,255,255,0.08);
}

/* ---------- Bottom navigation ---------- */
.w2a88-bottom-nav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: var(--w2a88-bottom-h);
  background: linear-gradient(180deg, var(--w2a88-primary) 0%, var(--w2a88-primary-dark) 100%);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
  box-shadow: 0 -3px 14px rgba(0,0,0,0.5);
}

.w2a88-bottom-nav-btn {
  flex: 1;
  min-width: 60px;
  min-height: 60px;
  background: transparent;
  border: none;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  cursor: pointer;
  font-size: 1.05rem;
  font-weight: 600;
  transition: transform .15s ease, color .2s ease;
}

.w2a88-bottom-nav-btn i,
.w2a88-bottom-nav-btn .material-icons {
  font-size: 22px;
}

.w2a88-bottom-nav-btn:hover { transform: scale(1.08); color: var(--w2a88-accent); }

.w2a88-bottom-nav-btn.w2a88-nav-current { color: var(--w2a88-accent); }

/* ---------- Back to top ---------- */
.w2a88-totop {
  position: fixed;
  right: 12px;
  bottom: calc(var(--w2a88-bottom-h) + 12px);
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--w2a88-accent-dark);
  color: #fff;
  border: none;
  font-size: 1.6rem;
  cursor: pointer;
  z-index: 999;
  box-shadow: 0 3px 10px rgba(0,0,0,0.4);
}

/* ---------- Responsive ---------- */
@media (max-width: 430px) {
  .w2a88-game-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .w2a88-game-card img { height: 84px; }
  .w2a88-slide img { height: 180px; }
  .w2a88-footer-cols { grid-template-columns: 1fr; }
}

@media (max-width: 360px) {
  .w2a88-game-grid { grid-template-columns: repeat(2, 1fr); }
  .w2a88-brand { font-size: 1.5rem; }
}

@media (min-width: 769px) {
  .w2a88-bottom-nav { display: none; }
  .w2a88-totop { display: none; }
  main { padding-bottom: 30px; }
  .w2a88-wrapper { max-width: 960px; }
  .w2a88-game-grid { grid-template-columns: repeat(5, 1fr); }
  .w2a88-testimonials { grid-template-columns: repeat(2, 1fr); }
  .w2a88-pay-grid { grid-template-columns: repeat(6, 1fr); }
  .w2a88-footer-cols { grid-template-columns: repeat(4, 1fr); }
}
