/*
 * jili777 com - Core Base Stylesheet
 * All custom classes share the w5a4e- prefix to avoid collisions.
 * Mobile-first layout tuned for screens up to 430px wide.
 * Comments are written in English for maintainability.
 */

/* ---------- Design tokens ---------- */
:root {
  --w5a4e-primary: #FFA500;
  --w5a4e-bg: #0F0F23;
  --w5a4e-bg-alt: #15153a;
  --w5a4e-bg-card: #1d1d44;
  --w5a4e-text: #FFFFFF;
  --w5a4e-text-muted: #C9C9E0;
  --w5a4e-accent: #CD853F;
  --w5a4e-muted: #6C757D;
  --w5a4e-success: #32CD32;
  --w5a4e-bright: #00FF00;
  --w5a4e-radius: 1.2rem;
  --w5a4e-radius-sm: 0.8rem;
  --w5a4e-gap: 1.2rem;
  --w5a4e-shadow: 0 0.4rem 1.6rem rgba(0, 0, 0, 0.45);
  --w5a4e-header-h: 6rem;
  --w5a4e-bottom-h: 6.4rem;
  --w5a4e-font: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

/* ---------- Reset & base ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 62.5%; scroll-behavior: smooth; }
body {
  font-family: var(--w5a4e-font);
  background: var(--w5a4e-bg);
  color: var(--w5a4e-text);
  line-height: 1.5rem;
  font-size: 1.5rem;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--w5a4e-primary); text-decoration: none; }
a:hover { text-decoration: underline; }
ul { list-style: none; }

/* ---------- Layout primitives ---------- */
.w5a4e-container { width: 100%; max-width: 43rem; margin: 0 auto; padding: 0 1.2rem; }
.w5a4e-wrapper { padding-top: var(--w5a4e-header-h); padding-bottom: var(--w5a4e-bottom-h); min-height: 100vh; }
.w5a4e-section { padding: 2.4rem 0; }
.w5a4e-grid { display: grid; gap: var(--w5a4e-gap); }
.w5a4e-text-center { text-align: center; }
.w5a4e-hidden { display: none !important; }

/* ---------- Header ---------- */
.w5a4e-header {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--w5a4e-header-h);
  background: linear-gradient(135deg, #0F0F23 0%, #1d1d44 100%);
  border-bottom: 0.2rem solid var(--w5a4e-primary);
  z-index: 1000;
  display: flex; align-items: center;
  box-shadow: var(--w5a4e-shadow);
}
.w5a4e-header-inner {
  width: 100%; max-width: 43rem; margin: 0 auto; padding: 0 1.2rem;
  display: flex; align-items: center; justify-content: space-between; gap: 0.8rem;
}
.w5a4e-brand { display: flex; align-items: center; gap: 0.6rem; color: var(--w5a4e-text); }
.w5a4e-brand img { width: 3rem; height: 3rem; border-radius: 50%; }
.w5a4e-brand-name { font-size: 1.6rem; font-weight: 700; color: var(--w5a4e-primary); }
.w5a4e-header-actions { display: flex; align-items: center; gap: 0.6rem; }
.w5a4e-menu-toggle {
  background: transparent; border: 0.1rem solid var(--w5a4e-primary);
  color: var(--w5a4e-primary); width: 3.4rem; height: 3.4rem; border-radius: 0.6rem;
  font-size: 1.6rem; cursor: pointer; display: flex; align-items: center; justify-content: center;
}

/* ---------- Buttons ---------- */
.w5a4e-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
  min-height: 3.6rem; padding: 0 1.4rem; border-radius: 2rem;
  font-size: 1.3rem; font-weight: 700; cursor: pointer; border: none;
  transition: transform 0.15s ease, box-shadow 0.2s ease;
  text-decoration: none; line-height: 1;
}
.w5a4e-btn:hover { text-decoration: none; transform: translateY(-0.1rem); }
.w5a4e-btn-primary { background: linear-gradient(135deg, #FFA500, #FF6A00); color: #0F0F23; box-shadow: 0 0.3rem 0.8rem rgba(255, 165, 0, 0.4); }
.w5a4e-btn-secondary { background: transparent; color: var(--w5a4e-primary); border: 0.15rem solid var(--w5a4e-primary); }
.w5a4e-btn-success { background: linear-gradient(135deg, #32CD32, #00FF00); color: #0F0F23; }
.w5a4e-btn-block { display: flex; width: 100%; }

/* ---------- Mobile slide-in menu ---------- */
.w5a4e-menu-overlay {
  position: fixed; inset: 0; background: rgba(0, 0, 0, 0.6);
  opacity: 0; pointer-events: none; transition: opacity 0.25s ease; z-index: 9998;
}
.w5a4e-overlay-active { opacity: 1; pointer-events: auto; }
.w5a4e-mobile-menu {
  position: fixed; top: 0; right: -80%; width: 80%; max-width: 32rem; height: 100vh;
  background: var(--w5a4e-bg-alt); padding: 2rem; z-index: 9999;
  transition: right 0.3s ease; overflow-y: auto;
}
.w5a4e-menu-open { right: 0; }
.w5a4e-mobile-menu h3 { color: var(--w5a4e-primary); margin: 1.5rem 0 0.8rem; font-size: 1.3rem; text-transform: uppercase; }
.w5a4e-mobile-menu a { display: block; padding: 0.8rem 1rem; border-radius: 0.6rem; color: var(--w5a4e-text); font-size: 1.35rem; }
.w5a4e-mobile-menu a:hover { background: rgba(255, 165, 0, 0.12); }

/* ---------- Hero carousel ---------- */
.w5a4e-carousel { position: relative; overflow: hidden; border-radius: var(--w5a4e-radius); box-shadow: var(--w5a4e-shadow); }
.w5a4e-carousel-track { display: flex; transition: transform 0.45s ease; }
.w5a4e-carousel-slide { min-width: 100%; position: relative; }
.w5a4e-carousel-slide img { width: 100%; height: 20rem; object-fit: cover; }
.w5a4e-carousel-caption {
  position: absolute; left: 1rem; right: 1rem; bottom: 1rem;
  background: rgba(15, 15, 35, 0.78); padding: 0.8rem 1rem; border-radius: 0.8rem;
  color: var(--w5a4e-text); font-size: 1.3rem;
}
.w5a4e-carousel-dots { position: absolute; bottom: 0.6rem; right: 1rem; display: flex; gap: 0.4rem; }
.w5a4e-carousel-dot {
  width: 0.8rem; height: 0.8rem; border-radius: 50%; background: rgba(255, 255, 255, 0.4);
  border: none; cursor: pointer;
}
.w5a4e-dot-active { background: var(--w5a4e-primary); }

/* ---------- Typography ---------- */
.w5a4e-h1 { font-size: 2.4rem; line-height: 1.2; color: var(--w5a4e-primary); margin: 1.6rem 0 1rem; font-weight: 800; }
.w5a4e-h2 { font-size: 1.9rem; color: var(--w5a4e-primary); margin: 1.8rem 0 0.8rem; font-weight: 700; border-left: 0.4rem solid var(--w5a4e-bright); padding-left: 0.8rem; }
.w5a4e-h3 { font-size: 1.5rem; color: var(--w5a4e-bright); margin: 1.4rem 0 0.6rem; font-weight: 700; }
.w5a4e-paragraph { margin: 0.6rem 0; color: var(--w5a4e-text-muted); }
.w5a4e-lead { font-size: 1.5rem; color: var(--w5a4e-text); margin: 0.8rem 0 1.4rem; }

/* ---------- Filter tabs ---------- */
.w5a4e-filter-bar { display: flex; gap: 0.6rem; overflow-x: auto; padding: 0.6rem 0; }
.w5a4e-filter-tab {
  flex: 0 0 auto; padding: 0.7rem 1.2rem; border-radius: 2rem; background: var(--w5a4e-bg-card);
  color: var(--w5a4e-text-muted); font-size: 1.2rem; cursor: pointer; border: 0.1rem solid transparent;
}
.w5a4e-tab-active { background: var(--w5a4e-primary); color: #0F0F23; font-weight: 700; }

/* ---------- Game grid ---------- */
.w5a4e-game-group { margin: 1.4rem 0; }
.w5a4e-game-group-title { display: flex; align-items: center; gap: 0.6rem; font-size: 1.5rem; color: var(--w5a4e-bright); margin-bottom: 0.8rem; }
.w5a4e-game-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.8rem;
}
.w5a4e-game-card { background: var(--w5a4e-bg-card); border-radius: var(--w5a4e-radius-sm); padding: 0.6rem; text-align: center; cursor: pointer; transition: transform 0.15s ease, box-shadow 0.2s; border: 0.1rem solid rgba(255, 165, 0, 0.2); }
.w5a4e-game-card:hover { transform: translateY(-0.2rem); box-shadow: 0 0.4rem 1rem rgba(255, 165, 0, 0.35); }
.w5a4e-game-card img { width: 100%; height: 8rem; object-fit: cover; border-radius: 0.6rem; margin-bottom: 0.4rem; }
.w5a4e-game-name { font-size: 1.1rem; color: var(--w5a4e-text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- Cards / modules ---------- */
.w5a4e-card { background: var(--w5a4e-bg-card); border-radius: var(--w5a4e-radius); padding: 1.6rem; box-shadow: var(--w5a4e-shadow); margin: 1rem 0; }
.w5a4e-card-accent { border-top: 0.3rem solid var(--w5a4e-primary); }
.w5a4e-card-success { border-top: 0.3rem solid var(--w5a4e-success); }
.w5a4e-feature-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.8rem; }
.w5a4e-feature { background: rgba(255, 165, 0, 0.08); padding: 1rem; border-radius: var(--w5a4e-radius-sm); text-align: center; }
.w5a4e-feature .material-icons, .w5a4e-feature i { font-size: 2.2rem; color: var(--w5a4e-bright); margin-bottom: 0.4rem; }
.w5a4e-feature-title { font-size: 1.3rem; color: var(--w5a4e-primary); font-weight: 700; }
.w5a4e-feature-text { font-size: 1.2rem; color: var(--w5a4e-text-muted); margin-top: 0.4rem; }

/* ---------- FAQ ---------- */
.w5a4e-faq-item { background: var(--w5a4e-bg-card); border-radius: var(--w5a4e-radius-sm); padding: 1rem 1.2rem; margin-bottom: 0.8rem; border-left: 0.3rem solid var(--w5a4e-primary); }
.w5a4e-faq-q { font-weight: 700; color: var(--w5a4e-bright); font-size: 1.3rem; }
.w5a4e-faq-a { color: var(--w5a4e-text-muted); margin-top: 0.4rem; font-size: 1.25rem; }

/* ---------- Testimonials ---------- */
.w5a4e-testimonial { background: var(--w5a4e-bg-card); border-radius: var(--w5a4e-radius-sm); padding: 1rem 1.2rem; margin-bottom: 0.8rem; border-left: 0.3rem solid var(--w5a4e-accent); }
.w5a4e-testimonial-name { color: var(--w5a4e-primary); font-weight: 700; font-size: 1.3rem; }
.w5a4e-stars { color: #FFD700; font-size: 1.2rem; margin: 0.2rem 0; }

/* ---------- Winners ---------- */
.w5a4e-winner { display: flex; justify-content: space-between; padding: 0.6rem 0; border-bottom: 0.1rem dashed rgba(255, 165, 0, 0.2); font-size: 1.25rem; }
.w5a4e-winner:last-child { border-bottom: none; }
.w5a4e-winner-name { color: var(--w5a4e-text); }
.w5a4e-winner-amount { color: var(--w5a4e-bright); font-weight: 700; }

/* ---------- Payment ---------- */
.w5a4e-payment-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.8rem; }
.w5a4e-payment { background: #fff; color: var(--w5a4e-bg); padding: 0.8rem; border-radius: 0.6rem; text-align: center; font-weight: 700; font-size: 1.1rem; }

/* ---------- App download ---------- */
.w5a4e-app-card { background: linear-gradient(135deg, #1d1d44, #0F0F23); border-radius: var(--w5a4e-radius); padding: 1.6rem; text-align: center; border: 0.1rem solid var(--w5a4e-primary); }
.w5a4e-app-card h3 { color: var(--w5a4e-primary); }

/* ---------- RTP table ---------- */
.w5a4e-rtp-row { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 0.5rem; padding: 0.6rem 0; border-bottom: 0.1rem solid rgba(255, 165, 0, 0.15); font-size: 1.2rem; }
.w5a4e-rtp-row span:first-child { color: var(--w5a4e-text); }
.w5a4e-rtp-row .w5a4e-rtp-val { color: var(--w5a4e-bright); font-weight: 700; text-align: right; }

/* ---------- Promo strip ---------- */
.w5a4e-promo-strip { display: flex; gap: 0.6rem; flex-wrap: wrap; margin: 1rem 0; }
.w5a4e-promo-link { color: var(--w5a4e-primary); font-weight: 700; text-decoration: underline; }
.w5a4e-cta-block { background: linear-gradient(135deg, rgba(255, 165, 0, 0.18), rgba(0, 255, 0, 0.08)); border-radius: var(--w5a4e-radius); padding: 1.6rem; text-align: center; margin: 1.4rem 0; }
.w5a4e-cta-block .w5a4e-btn { margin-top: 0.8rem; }

/* ---------- Footer ---------- */
.w5a4e-footer { background: var(--w5a4e-bg-alt); padding: 2rem 0 calc(var(--w5a4e-bottom-h) + 1.5rem); border-top: 0.2rem solid var(--w5a4e-primary); }
.w5a4e-footer-inner { width: 100%; max-width: 43rem; margin: 0 auto; padding: 0 1.2rem; }
.w5a4e-footer-brand { margin-bottom: 1rem; font-size: 1.25rem; color: var(--w5a4e-text-muted); }
.w5a4e-footer-promos { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.6rem; margin: 1rem 0; }
.w5a4e-footer-links { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.4rem; margin: 1rem 0; }
.w5a4e-footer-links a { color: var(--w5a4e-text-muted); font-size: 1.2rem; }
.w5a4e-footer-copy { text-align: center; color: var(--w5a4e-muted); font-size: 1.1rem; margin-top: 1rem; }

/* ---------- Bottom nav ---------- */
.w5a4e-bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0; height: var(--w5a4e-bottom-h);
  background: linear-gradient(180deg, #1d1d44 0%, #0F0F23 100%);
  border-top: 0.15rem solid var(--w5a4e-primary);
  display: flex; justify-content: space-around; align-items: center;
  z-index: 1000; box-shadow: 0 -0.3rem 1rem rgba(0, 0, 0, 0.4);
}
.w5a4e-bottom-nav-btn {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: transparent; border: none; color: var(--w5a4e-text-muted); font-size: 1rem;
  cursor: pointer; min-width: 6rem; min-height: 6rem; gap: 0.2rem; transition: color 0.2s ease, transform 0.15s ease;
}
.w5a4e-bottom-nav-btn:active { transform: scale(0.94); }
.w5a4e-bottom-nav-btn .material-icons, .w5a4e-bottom-nav-btn i, .w5a4e-bottom-nav-btn ion-icon { font-size: 2.2rem; }
.w5a4e-bottom-nav-btn .w5a4e-nav-label { font-size: 1rem; line-height: 1; }
.w5a4e-nav-active { color: var(--w5a4e-primary); }
.w5a4e-nav-active .material-icons, .w5a4e-nav-active i { color: var(--w5a4e-bright); }

/* ---------- Desktop adjustments ---------- */
@media (min-width: 769px) {
  .w5a4e-bottom-nav { display: none; }
  .w5a4e-wrapper { padding-bottom: 0; }
  .w5a4e-footer { padding-bottom: 2rem; }
  .w5a4e-container { max-width: 60rem; }
  .w5a4e-footer-inner { max-width: 60rem; }
  .w5a4e-game-grid { grid-template-columns: repeat(5, 1fr); }
  .w5a4e-feature-grid { grid-template-columns: repeat(4, 1fr); }
  .w5a4e-payment-grid { grid-template-columns: repeat(6, 1fr); }
}

/* ---------- Mobile bottom padding safety net ---------- */
@media (max-width: 768px) {
  .w5a4e-wrapper { padding-bottom: calc(var(--w5a4e-bottom-h) + 1rem); }
}
