/* ===========================================================
   plus777 asia - layout-e02d.css
   Prefix: we02d-
   Palette: #DC143C | #FF7F50 | #1C2833 | #FFFFBA | #C9C9FF
   Mobile-first, max 430px container
   =========================================================== */

:root {
  --we02d-primary: #DC143C;
  --we02d-accent: #FF7F50;
  --we02d-bg: #1C2833;
  --we02d-bg-2: #22323f;
  --we02d-bg-3: #2b3e4d;
  --we02d-text: #FFFFBA;
  --we02d-muted: #C9C9FF;
  --we02d-white: #ffffff;
  --we02d-radius: 14px;
  --we02d-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
  --we02d-shadow-lg: 0 10px 30px rgba(220, 20, 60, 0.35);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 62.5%; scroll-behavior: smooth; }

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

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

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

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

/* ---------- Layout containers ---------- */
.we02d-wrapper { width: 100%; max-width: 430px; margin: 0 auto; position: relative; }

.we02d-container { padding: 1.6rem; }

.we02d-section { padding: 2.2rem 1.6rem; }

.we02d-section-alt { background: var(--we02d-bg-2); }

.we02d-divider { height: 1px; background: linear-gradient(90deg, transparent, var(--we02d-primary), transparent); margin: 1rem 0; opacity: 0.5; }

/* ---------- Header ---------- */
.we02d-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: linear-gradient(180deg, rgba(28,40,51,0.98), rgba(28,40,51,0.92));
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(220, 20, 60, 0.35);
}

.we02d-header-inner {
  max-width: 430px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.7rem 1rem;
  gap: 0.6rem;
}

.we02d-logo {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
}

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

.we02d-logo-text { font-size: 1.6rem; font-weight: 800; color: var(--we02d-text); letter-spacing: 0.3px; }
.we02d-logo-text b { color: var(--we02d-primary); }

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

.we02d-menu-btn {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.15);
  color: var(--we02d-text);
  width: 36px; height: 36px;
  border-radius: 8px;
  font-size: 1.6rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}

/* ---------- Buttons ---------- */
.we02d-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.7rem 1.1rem;
  border-radius: 10px;
  border: none;
  font-weight: 700;
  font-size: 1.3rem;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s;
  min-height: 40px;
  text-align: center;
}

.we02d-btn-primary { background: linear-gradient(135deg, var(--we02d-primary), #b10e30); color: #fff; box-shadow: var(--we02d-shadow-lg); }
.we02d-btn-primary:hover { transform: translateY(-2px); }

.we02d-btn-accent { background: linear-gradient(135deg, var(--we02d-accent), #e2673f); color: #1C2833; box-shadow: var(--we02d-shadow); }
.we02d-btn-accent:hover { transform: translateY(-2px); }

.we02d-btn-outline { background: transparent; color: var(--we02d-text); border: 1px solid var(--we02d-accent); }
.we02d-btn-outline:hover { background: rgba(255,127,80,0.12); }

.we02d-btn-block { display: flex; width: 100%; }

.we02d-link-text { color: var(--we02d-accent); font-weight: 700; }
.we02d-link-text:hover { text-decoration: underline; }

/* ---------- Mobile menu ---------- */
.we02d-mobile-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  background: var(--we02d-bg-2);
  border-top: 1px solid rgba(220,20,60,0.25);
}
.we02d-mobile-menu.we02d-menu-open { max-height: 520px; }
.we02d-mobile-menu-inner { max-width: 430px; margin: 0 auto; padding: 0.8rem 1rem 1rem; display: grid; gap: 0.4rem; }
.we02d-mobile-menu a {
  display: block;
  padding: 0.85rem 0.9rem;
  color: var(--we02d-text);
  font-size: 1.4rem;
  border-radius: 8px;
  border-left: 3px solid transparent;
}
.we02d-mobile-menu a:hover { background: rgba(255,127,80,0.1); border-left-color: var(--we02d-accent); }

/* ---------- Carousel ---------- */
.we02d-carousel { position: relative; overflow: hidden; border-radius: var(--we02d-radius); margin-top: 5.6rem; }
.we02d-slides { position: relative; }
.we02d-slide {
  position: absolute; inset: 0;
  opacity: 0; transition: opacity 0.6s ease;
  cursor: pointer;
}
.we02d-slide img { width: 100%; height: 200px; object-fit: cover; border-radius: var(--we02d-radius); }
.we02d-slide-active { position: relative; opacity: 1; }
.we02d-slide-caption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 1rem 1.2rem;
  background: linear-gradient(0deg, rgba(28,40,51,0.95), transparent);
  color: var(--we02d-text);
  font-weight: 700;
  font-size: 1.5rem;
  border-radius: 0 0 var(--we02d-radius) var(--we02d-radius);
}
.we02d-dots { position: absolute; bottom: 8px; left: 0; right: 0; display: flex; justify-content: center; gap: 6px; z-index: 5; }
.we02d-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.4); cursor: pointer; }
.we02d-dot-active { background: var(--we02d-accent); width: 22px; border-radius: 4px; }

/* ---------- Hero / H1 ---------- */
.we02d-hero { padding: 1.4rem 1.6rem 0.6rem; text-align: center; }
.we02d-hero h1 { font-size: 2.2rem; color: var(--we02d-text); margin-bottom: 0.6rem; }
.we02d-hero p { color: var(--we02d-muted); font-size: 1.35rem; }
.we02d-hero-cta { display: flex; gap: 0.7rem; justify-content: center; margin-top: 1.2rem; flex-wrap: wrap; }

/* ---------- Section heading ---------- */
.we02d-section-head { margin-bottom: 1.2rem; display: flex; align-items: center; gap: 0.6rem; }
.we02d-section-head .we02d-icon { color: var(--we02d-primary); font-size: 1.8rem; }
.we02d-section-head h2 { font-size: 1.8rem; color: var(--we02d-text); flex: 1; }
.we02d-section-head h2 em { color: var(--we02d-accent); font-style: normal; }

/* ---------- Game grid ---------- */
.we02d-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
}
.we02d-grid.we02d-grid-4 { grid-template-columns: repeat(4, 1fr); }

.we02d-game {
  background: var(--we02d-bg-2);
  border-radius: 12px;
  padding: 0.55rem 0.4rem 0.65rem;
  text-align: center;
  cursor: pointer;
  border: 1px solid rgba(255,255,255,0.04);
  transition: transform 0.15s, box-shadow 0.2s, border-color 0.2s;
}
.we02d-game:hover { transform: translateY(-3px); box-shadow: var(--we02d-shadow); border-color: var(--we02d-primary); }
.we02d-game img { width: 100%; height: 70px; object-fit: cover; border-radius: 8px; margin-bottom: 0.4rem; }
.we02d-game-name { font-size: 1.05rem; color: var(--we02d-text); font-weight: 600; line-height: 1.2; min-height: 2.6rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ---------- Card ---------- */
.we02d-card {
  background: var(--we02d-bg-2);
  border-radius: var(--we02d-radius);
  padding: 1.3rem;
  box-shadow: var(--we02d-shadow);
  border: 1px solid rgba(255,255,255,0.04);
}
.we02d-card h3 { font-size: 1.5rem; color: var(--we02d-accent); margin-bottom: 0.6rem; }
.we02d-card p { color: var(--we02d-text); font-size: 1.3rem; margin-bottom: 0.6rem; }
.we02d-card ul { padding-left: 1.3rem; }
.we02d-card li { font-size: 1.3rem; margin-bottom: 0.4rem; color: var(--we02d-text); }

/* ---------- Feature list ---------- */
.we02d-features { display: grid; gap: 0.8rem; }
.we02d-feature-item {
  display: flex; gap: 0.9rem; align-items: flex-start;
  background: var(--we02d-bg-2);
  padding: 1rem; border-radius: 10px;
  border-left: 3px solid var(--we02d-primary);
}
.we02d-feature-item .we02d-ic { color: var(--we02d-accent); font-size: 1.8rem; flex-shrink: 0; }
.we02d-feature-item h4 { font-size: 1.4rem; color: var(--we02d-text); margin-bottom: 0.2rem; }
.we02d-feature-item p { font-size: 1.25rem; color: var(--we02d-muted); }

/* ---------- Steps ---------- */
.we02d-steps { display: grid; gap: 0.8rem; counter-reset: step; }
.we02d-step {
  display: flex; gap: 0.9rem; align-items: flex-start;
  background: var(--we02d-bg-2); padding: 1rem 1.1rem; border-radius: 10px;
}
.we02d-step-num {
  width: 28px; height: 28px; border-radius: 50%;
  background: linear-gradient(135deg, var(--we02d-primary), var(--we02d-accent));
  color: #fff; font-weight: 800; font-size: 1.3rem;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.we02d-step h4 { font-size: 1.35rem; color: var(--we02d-text); }
.we02d-step p { font-size: 1.25rem; color: var(--we02d-muted); }

/* ---------- RTP / stats ---------- */
.we02d-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.7rem; }
.we02d-stat {
  background: var(--we02d-bg-2); border-radius: 10px; padding: 0.9rem;
  text-align: center; border: 1px solid rgba(220,20,60,0.2);
}
.we02d-stat-val { font-size: 1.9rem; font-weight: 800; color: var(--we02d-accent); }
.we02d-stat-label { font-size: 1.15rem; color: var(--we02d-muted); }

.we02d-rtp-row {
  display: flex; align-items: center; gap: 0.6rem;
  background: var(--we02d-bg-2); padding: 0.6rem 0.8rem; border-radius: 8px; margin-bottom: 0.5rem;
}
.we02d-rtp-row .we02d-rtp-name { flex: 1; font-size: 1.25rem; color: var(--we02d-text); }
.we02d-rtp-bar { flex: 2; height: 8px; background: rgba(255,255,255,0.1); border-radius: 4px; overflow: hidden; }
.we02d-rtp-fill { height: 100%; background: linear-gradient(90deg, var(--we02d-accent), var(--we02d-primary)); border-radius: 4px; }
.we02d-rtp-val { width: 48px; text-align: right; font-size: 1.2rem; color: var(--we02d-accent); font-weight: 700; }

/* ---------- Testimonials ---------- */
.we02d-testi { background: var(--we02d-bg-2); border-radius: 10px; padding: 1rem; margin-bottom: 0.7rem; border-left: 3px solid var(--we02d-accent); }
.we02d-testi-head { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 0.4rem; }
.we02d-testi-avatar { width: 32px; height: 32px; border-radius: 50%; background: linear-gradient(135deg, var(--we02d-primary), var(--we02d-accent)); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 1.3rem; }
.we02d-testi-name { font-size: 1.3rem; color: var(--we02d-text); font-weight: 700; }
.we02d-testi-stars { color: #FFD700; font-size: 1.1rem; margin-left: auto; }
.we02d-testi p { font-size: 1.2rem; color: var(--we02d-muted); }

/* ---------- Winners ---------- */
.we02d-winners { display: grid; gap: 0.5rem; }
.we02d-winner {
  display: flex; align-items: center; gap: 0.7rem;
  background: var(--we02d-bg-2); padding: 0.7rem 0.9rem; border-radius: 8px;
  border-left: 3px solid var(--we02d-primary);
}
.we02d-winner-name { flex: 1; font-size: 1.25rem; color: var(--we02d-text); }
.we02d-winner-amt { font-size: 1.35rem; font-weight: 800; color: var(--we02d-accent); }

/* ---------- Payment ---------- */
.we02d-pay { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.6rem; }
.we02d-pay-item {
  background: var(--we02d-bg-2); border-radius: 8px; padding: 0.8rem 0.4rem;
  text-align: center; font-size: 1.15rem; color: var(--we02d-text); font-weight: 600;
  border: 1px solid rgba(255,255,255,0.05);
}
.we02d-pay-item .we02d-ic { display: block; font-size: 1.8rem; color: var(--we02d-accent); margin-bottom: 0.3rem; }

/* ---------- FAQ ---------- */
.we02d-faq { border: 1px solid rgba(255,255,255,0.08); border-radius: 10px; margin-bottom: 0.6rem; overflow: hidden; background: var(--we02d-bg-2); }
.we02d-faq summary {
  padding: 0.9rem 1rem; cursor: pointer; font-weight: 700; color: var(--we02d-text);
  font-size: 1.3rem; list-style: none; display: flex; gap: 0.5rem; align-items: center;
}
.we02d-faq summary::-webkit-details-marker { display: none; }
.we02d-faq summary::before { content: "+"; color: var(--we02d-accent); font-size: 1.6rem; }
.we02d-faq[open] summary::before { content: "-"; }
.we02d-faq-body { padding: 0 1rem 1rem; color: var(--we02d-muted); font-size: 1.25rem; }

/* ---------- Promo banner CTA ---------- */
.we02d-cta-banner {
  background: linear-gradient(135deg, var(--we02d-primary), var(--we02d-accent));
  border-radius: var(--we02d-radius);
  padding: 1.5rem 1.4rem;
  text-align: center;
  color: #fff;
  margin: 1.4rem 0;
  box-shadow: var(--we02d-shadow-lg);
}
.we02d-cta-banner h3 { font-size: 1.8rem; color: #fff; margin-bottom: 0.4rem; }
.we02d-cta-banner p { font-size: 1.25rem; color: #fff; opacity: 0.95; margin-bottom: 1rem; }
.we02d-cta-banner .we02d-btn { background: #1C2833; color: #fff; }

/* ---------- Footer ---------- */
.we02d-footer {
  background: var(--we02d-bg-2);
  border-top: 2px solid var(--we02d-primary);
  padding: 2rem 1.6rem 6.5rem;
  margin-top: 1.5rem;
}
.we02d-footer h4 { font-size: 1.4rem; color: var(--we02d-accent); margin-bottom: 0.7rem; }
.we02d-footer p { font-size: 1.2rem; color: var(--we02d-muted); margin-bottom: 1rem; }
.we02d-footer-links { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.5rem 0.7rem; margin-bottom: 1rem; }
.we02d-footer-links a { font-size: 1.2rem; color: var(--we02d-text); padding: 0.3rem 0; }
.we02d-footer-links a:hover { color: var(--we02d-accent); }
.we02d-footer-promos { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0.8rem 0; }
.we02d-footer-promos .we02d-btn { font-size: 1.15rem; padding: 0.5rem 0.8rem; }
.we02d-footer-copy { font-size: 1.1rem; color: var(--we02d-muted); text-align: center; border-top: 1px solid rgba(255,255,255,0.06); padding-top: 1rem; }

/* ---------- Bottom nav ---------- */
.we02d-bottomnav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: 62px;
  background: linear-gradient(180deg, var(--we02d-bg-2), #15202b);
  border-top: 2px solid var(--we02d-primary);
  display: flex;
  justify-content: space-around;
  align-items: stretch;
  z-index: 1000;
  box-shadow: 0 -4px 18px rgba(0,0,0,0.4);
}
.we02d-bottomnav-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  background: transparent;
  border: none;
  color: var(--we02d-muted);
  font-size: 1.05rem;
  cursor: pointer;
  transition: color 0.2s, transform 0.15s;
  min-width: 60px;
  min-height: 60px;
  text-decoration: none;
}
.we02d-bottomnav-btn .we02d-ic { font-size: 2rem; line-height: 1; }
.we02d-bottomnav-btn:hover { color: var(--we02d-accent); transform: translateY(-2px); }
.we02d-bottomnav-active { color: var(--we02d-primary); }
.we02d-bottomnav-active .we02d-ic { color: var(--we02d-accent); }

/* centre promo button emphasis */
.we02d-bottomnav-btn.we02d-bn-promo {
  position: relative;
}
.we02d-bottomnav-btn.we02d-bn-promo .we02d-ic {
  background: linear-gradient(135deg, var(--we02d-primary), var(--we02d-accent));
  color: #fff;
  width: 42px; height: 42px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.9rem;
  margin-top: -10px;
  box-shadow: var(--we02d-shadow-lg);
}

/* ---------- Reveal animation ---------- */
.we02d-reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.we02d-revealed { opacity: 1; transform: translateY(0); }

/* ---------- Tag chips ---------- */
.we02d-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.we02d-tag {
  background: rgba(220,20,60,0.15);
  color: var(--we02d-accent);
  font-size: 1.1rem;
  padding: 0.25rem 0.7rem;
  border-radius: 20px;
  border: 1px solid rgba(255,127,80,0.3);
}

/* ---------- Responsive ---------- */
@media (min-width: 769px) {
  .we02d-bottomnav { display: none; }
  .we02d-wrapper { max-width: 720px; }
  .we02d-grid { grid-template-columns: repeat(6, 1fr); }
  .we02d-grid.we02d-grid-4 { grid-template-columns: repeat(8, 1fr); }
  .we02d-footer { padding-bottom: 2rem; }
  .we02d-carousel img { height: 320px; }
}

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

@media (max-width: 360px) {
  .we02d-grid { grid-template-columns: repeat(2, 1fr); }
  .we02d-hero h1 { font-size: 1.9rem; }
}
