/**
 * JiliPH - Core stylesheet (prefix: w5249-)
 * Mobile-first, max-width 430px. Root font 62.5% for rem scaling.
 * Colors: #2C3E50 (dark bg) | #FFB6C1 (light pink) | #228B22 (green)
 *         #F08080 (coral)  | #00FF00 (neon accent)
 */

:root {
  --w5249-bg: #1b2a38;
  --w5249-bg-deep: #14202b;
  --w5249-surface: #2C3E50;
  --w5249-primary: #2C3E50;
  --w5249-accent: #00FF00;
  --w5249-pink: #FFB6C1;
  --w5249-coral: #F08080;
  --w5249-green: #228B22;
  --w5249-gold: #ffd479;
  --w5249-text: #f5f9ff;
  --w5249-text-muted: #b7c4d0;
  --w5249-border: rgba(255, 255, 255, 0.08);
  --w5249-radius: 1.2rem;
}

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

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

body {
  font-family: "Segoe UI", "Helvetica Neue", Arial, "PingFang SC", sans-serif;
  background: var(--w5249-bg-deep);
  color: var(--w5249-text);
  line-height: 1.5rem;
  font-size: 1.4rem;
  max-width: 430px;
  margin: 0 auto;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: var(--w5249-accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }

.w5249-container { width: 100%; padding: 0 1.2rem; }
.w5249-wrapper { width: 100%; }

/* ---------- Header ---------- */
.w5249-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  max-width: 430px;
  margin: 0 auto;
  z-index: 1000;
  background: linear-gradient(135deg, #1c2c3a 0%, #2C3E50 100%);
  border-bottom: 1px solid var(--w5249-border);
  box-shadow: 0 2px 10px rgba(0,0,0,0.35);
}
.w5249-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 1.2rem;
  gap: 0.8rem;
}
.w5249-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-width: 0;
}
.w5249-brand img {
  width: 2.8rem; height: 2.8rem; border-radius: 0.6rem;
}
.w5249-brand-name {
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--w5249-accent);
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.w5249-brand-name span { color: var(--w5249-pink); }

.w5249-header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.w5249-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 3.4rem;
  padding: 0 1.2rem;
  border-radius: 2rem;
  font-size: 1.3rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
  text-decoration: none;
  color: #0c1419;
  white-space: nowrap;
}
.w5249-btn:hover { text-decoration: none; transform: translateY(-1px); }
.w5249-btn:active { transform: scale(0.97); }
.w5249-btn-primary {
  background: linear-gradient(135deg, #00FF00, #45d655);
  color: #0c1419;
  box-shadow: 0 4px 12px rgba(0,255,0,0.25);
}
.w5249-btn-ghost {
  background: transparent;
  color: var(--w5249-pink);
  border: 1px solid var(--w5249-pink);
}
.w5249-btn-gold {
  background: linear-gradient(135deg, #ffd479, #ff9d3b);
  color: #2b1a04;
}
.w5249-btn-block { width: 100%; }

.w5249-icon-btn {
  background: transparent;
  border: none;
  color: var(--w5249-text);
  font-size: 1.9rem;
  width: 3.6rem;
  height: 3.6rem;
  border-radius: 50%;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.w5249-icon-btn:active { background: rgba(255,255,255,0.08); }

/* ---------- Mobile menu drawer ---------- */
.w5249-menu-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 9998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.w5249-backdrop-show { opacity: 1; pointer-events: auto; }

.w5249-mobile-menu {
  position: fixed;
  top: 0; right: -85%;
  width: 78%;
  max-width: 360px;
  height: 100%;
  background: var(--w5249-bg-deep);
  z-index: 9999;
  padding: 2rem 1.6rem;
  overflow-y: auto;
  transition: right 0.28s ease;
  border-left: 1px solid var(--w5249-border);
}
.w5249-menu-open { right: 0; }
.w5249-mobile-menu h3 {
  font-size: 1.5rem;
  color: var(--w5249-pink);
  margin: 1.4rem 0 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.w5249-mobile-menu a {
  display: block;
  padding: 1rem 0.4rem;
  border-bottom: 1px solid var(--w5249-border);
  color: var(--w5249-text);
  font-size: 1.35rem;
}
.w5249-mobile-menu a:hover { color: var(--w5249-accent); }

/* ---------- Main ---------- */
.w5249-main {
  padding-top: 6rem;
  padding-bottom: 8rem; /* bottom nav clearance on mobile */
}

/* ---------- Carousel ---------- */
.w5249-carousel {
  position: relative;
  border-radius: var(--w5249-radius);
  overflow: hidden;
  margin: 1.2rem 0;
}
.w5249-carousel-track {
  display: flex;
  transition: transform 0.5s ease;
}
.w5249-carousel-slide {
  min-width: 100%;
  position: relative;
  cursor: pointer;
}
.w5249-carousel-slide img {
  width: 100%;
  height: 18rem;
  object-fit: cover;
}
.w5249-carousel-caption {
  position: absolute;
  left: 1.2rem;
  bottom: 1.2rem;
  background: rgba(20,32,43,0.78);
  padding: 0.6rem 1rem;
  border-radius: 0.8rem;
  font-weight: 700;
  color: var(--w5249-accent);
}
.w5249-carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.6rem 0;
}
.w5249-carousel-dot {
  width: 0.8rem; height: 0.8rem; border-radius: 50%;
  background: rgba(255,255,255,0.3);
  border: none; cursor: pointer;
}
.w5249-dot-active { background: var(--w5249-accent); }

/* ---------- Section titles ---------- */
.w5249-section {
  margin: 2.4rem 0;
}
.w5249-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  padding: 0 1.2rem;
}
.w5249-h1 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--w5249-accent);
  padding: 0 1.2rem;
  margin: 1.4rem 0 0.6rem;
}
.w5249-h2 {
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--w5249-text);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.w5249-h2 i { color: var(--w5249-pink); }
.w5249-section-link {
  font-size: 1.2rem;
  color: var(--w5249-coral);
  font-weight: 600;
}

/* ---------- Category tabs (visual only) ---------- */
.w5249-cat-tabs {
  display: flex;
  gap: 0.6rem;
  overflow-x: auto;
  padding: 0 1.2rem 0.8rem;
  scrollbar-width: none;
}
.w5249-cat-tabs::-webkit-scrollbar { display: none; }
.w5249-cat-tab {
  flex: 0 0 auto;
  padding: 0.6rem 1.2rem;
  border-radius: 2rem;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--w5249-border);
  font-size: 1.2rem;
  color: var(--w5249-text-muted);
  cursor: pointer;
  white-space: nowrap;
}
.w5249-cat-tab-active {
  background: var(--w5249-green);
  color: #fff;
  border-color: transparent;
}

/* ---------- Game grid ---------- */
.w5249-game-section h3 {
  font-size: 1.4rem;
  color: var(--w5249-gold);
  margin: 1.4rem 1.2rem 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.w5249-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
  padding: 0 1.2rem;
}
.w5249-game-card {
  background: var(--w5249-surface);
  border-radius: 1rem;
  overflow: hidden;
  cursor: pointer;
  border: 1px solid var(--w5249-border);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  display: block;
  text-decoration: none;
  color: var(--w5249-text);
}
.w5249-game-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0,255,0,0.15);
  text-decoration: none;
}
.w5249-game-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}
.w5249-game-name {
  padding: 0.5rem 0.4rem;
  font-size: 1.05rem;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 600;
  color: var(--w5249-text);
}

/* ---------- Promo cards ---------- */
.w5249-card {
  background: linear-gradient(135deg, #243a4c, #2C3E50);
  border-radius: var(--w5249-radius);
  padding: 1.4rem;
  margin: 1.2rem;
  border: 1px solid var(--w5249-border);
}
.w5249-card h3 { font-size: 1.5rem; color: var(--w5249-pink); margin-bottom: 0.6rem; }
.w5249-card p { font-size: 1.25rem; color: var(--w5249-text-muted); margin-bottom: 0.8rem; line-height: 1.7rem; }
.w5249-card .w5249-promo-text {
  font-weight: 700;
  color: var(--w5249-accent);
}

/* ---------- Steps list ---------- */
.w5249-steps { list-style: none; counter-reset: step; padding: 0 1.2rem; }
.w5249-steps li {
  position: relative;
  padding: 0.6rem 0 0.6rem 3.2rem;
  font-size: 1.25rem;
  color: var(--w5249-text);
  counter-increment: step;
  border-bottom: 1px dashed var(--w5249-border);
}
.w5249-steps li::before {
  content: counter(step);
  position: absolute;
  left: 0; top: 0.5rem;
  width: 2.4rem; height: 2.4rem;
  background: var(--w5249-green);
  color: #fff;
  border-radius: 50%;
  font-weight: 700;
  font-size: 1.2rem;
  display: flex; align-items: center; justify-content: center;
}

/* ---------- FAQ ---------- */
.w5249-faq { padding: 0 1.2rem; }
.w5249-faq details {
  background: var(--w5249-surface);
  border: 1px solid var(--w5249-border);
  border-radius: 0.8rem;
  padding: 0.8rem 1rem;
  margin-bottom: 0.6rem;
}
.w5249-faq summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--w5249-pink);
}
.w5249-faq p {
  margin-top: 0.6rem;
  font-size: 1.2rem;
  color: var(--w5249-text-muted);
  line-height: 1.7rem;
}

/* ---------- Stats / highlights ---------- */
.w5249-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.8rem;
  padding: 0 1.2rem;
}
.w5249-stat {
  background: var(--w5249-surface);
  border-radius: 0.8rem;
  padding: 1rem;
  text-align: center;
  border: 1px solid var(--w5249-border);
}
.w5249-stat .num {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--w5249-accent);
}
.w5249-stat .label {
  font-size: 1.1rem;
  color: var(--w5249-text-muted);
}

/* ---------- Testimonials ---------- */
.w5249-testi {
  background: var(--w5249-surface);
  border-radius: 0.8rem;
  padding: 1rem;
  margin: 0.6rem 1.2rem;
  border-left: 3px solid var(--w5249-coral);
}
.w5249-testi .who { color: var(--w5249-gold); font-weight: 700; font-size: 1.2rem; }
.w5249-testi .body { color: var(--w5249-text); font-size: 1.2rem; margin-top: 0.4rem; }

/* ---------- Payment grid ---------- */
.w5249-pay-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
  padding: 0 1.2rem;
}
.w5249-pay-item {
  background: var(--w5249-surface);
  border-radius: 0.8rem;
  padding: 0.8rem;
  text-align: center;
  border: 1px solid var(--w5249-border);
  font-size: 1.1rem;
  color: var(--w5249-text);
}
.w5249-pay-item .pay-ic { font-size: 2rem; color: var(--w5249-accent); }

/* ---------- Winners ticker ---------- */
.w5249-winner {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  background: var(--w5249-surface);
  padding: 0.8rem 1rem;
  border-radius: 0.8rem;
  margin: 0.4rem 1.2rem;
  border: 1px solid var(--w5249-border);
}
.w5249-winner .amt { color: var(--w5249-gold); font-weight: 700; }
.w5249-winner .who { color: var(--w5249-text-muted); font-size: 1.15rem; }

/* ---------- CTA band ---------- */
.w5249-cta {
  background: linear-gradient(135deg, #228B22, #00FF00);
  margin: 1.6rem 1.2rem;
  padding: 1.6rem;
  border-radius: var(--w5249-radius);
  color: #0c1419;
  text-align: center;
}
.w5249-cta h3 { font-size: 1.7rem; font-weight: 800; margin-bottom: 0.6rem; }
.w5249-cta p { font-size: 1.25rem; margin-bottom: 1rem; }

/* ---------- Article text ---------- */
.w5249-article {
  padding: 0 1.2rem;
  font-size: 1.3rem;
  color: var(--w5249-text);
  line-height: 1.9rem;
}
.w5249-article h3 {
  font-size: 1.5rem;
  color: var(--w5249-pink);
  margin: 1.2rem 0 0.6rem;
}
.w5249-article p { margin-bottom: 0.8rem; color: var(--w5249-text-muted); }

/* ---------- Footer ---------- */
.w5249-footer {
  background: #0e1820;
  padding: 2rem 1.2rem 9rem;
  border-top: 1px solid var(--w5249-border);
}
.w5249-footer-brand {
  font-size: 1.3rem;
  color: var(--w5249-text-muted);
  margin-bottom: 1rem;
  line-height: 1.8rem;
}
.w5249-footer-promo {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1.2rem;
}
.w5249-footer-promo .w5249-btn { flex: 1 1 45%; min-width: 12rem; font-size: 1.2rem; }

.w5249-footer-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem 1rem;
  margin: 1rem 0;
}
.w5249-footer-links a {
  font-size: 1.2rem;
  color: var(--w5249-text-muted);
}
.w5249-footer-copy {
  font-size: 1.1rem;
  color: var(--w5249-text-muted);
  text-align: center;
  margin-top: 1rem;
}

/* ---------- Bottom nav ---------- */
.w5249-bottomnav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  max-width: 430px;
  margin: 0 auto;
  height: 6rem;
  background: linear-gradient(180deg, #1c2c3a, #0e1820);
  border-top: 1px solid var(--w5249-border);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
  box-shadow: 0 -3px 12px rgba(0,0,0,0.4);
}
.w5249-bottomnav-btn {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--w5249-text-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 6rem;
  min-height: 6rem;
  gap: 0.2rem;
  cursor: pointer;
  text-decoration: none;
  font-size: 1.05rem;
  transition: transform 0.15s ease, color 0.15s ease;
}
.w5249-bottomnav-btn i,
.w5249-bottomnav-btn .material-icons-outlined,
.w5249-bottomnav-btn .material-icons {
  font-size: 2.2rem;
}
.w5249-bottomnav-btn:active { transform: scale(0.9); }
.w5249-bottomnav-active { color: var(--w5249-accent); }
.w5249-bottomnav-btn span.lbl { font-size: 1rem; }

/* ---------- Desktop ---------- */
@media (min-width: 769px) {
  .w5249-bottomnav { display: none; }
  .w5249-main { padding-bottom: 4rem; }
}

/* ---------- Utility ---------- */
.w5249-text-accent { color: var(--w5249-accent); font-weight: 700; }
.w5249-text-pink { color: var(--w5249-pink); font-weight: 700; }
.w5249-text-gold { color: var(--w5249-gold); font-weight: 700; }
.w5249-mt { margin-top: 1.6rem; }
.w5249-hide-mobile { display: none; }
