/*!
 * 30jili live - Base stylesheet
 * Palette: #FF9500 (orange) | #4169E1 (royal blue) | #333333 (ink) | #0000FF (link blue) | #191970 (midnight)
 * Every custom class uses the w490b- prefix. Mobile-first, max-width 430px reference.
 */
:root {
  --w490b-primary: #FF9500;
  --w490b-secondary: #4169E1;
  --w490b-ink: #333333;
  --w490b-link: #0000FF;
  --w490b-midnight: #191970;
  --w490b-bg: #0c1340;
  --w490b-bg-soft: #161e58;
  --w490b-card: #1b266b;
  --w490b-card-2: #202f7d;
  --w490b-text: #f5f7ff;
  --w490b-muted: #b6c0e8;
  --w490b-border: rgba(255, 255, 255, 0.12);
  --w490b-gold: #ffd27a;
  --w490b-shadow: 0 8px 24px rgba(7, 12, 50, 0.45);
  --w490b-radius: 14px;
  --w490b-radius-lg: 22px;
}

/* Reset + base */
*, *::before, *::after { box-sizing: border-box; }
html { font-size: 62.5%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Helvetica Neue", "Segoe UI", Roboto, Arial, sans-serif;
  background: linear-gradient(160deg, var(--w490b-midnight) 0%, var(--w490b-bg) 55%, var(--w490b-bg-soft) 100%);
  color: var(--w490b-text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}
body.w490b-menu-open { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: var(--w490b-primary); text-decoration: none; }
a:hover { color: var(--w490b-gold); }
h1, h2, h3, h4 { margin: 0 0 .6em; line-height: 1.25; font-weight: 700; }
p { margin: 0 0 1em; }
ul, ol { color: inherit; }

/* Layout helpers */
.w490b-wrapper { width: 100%; max-width: 430px; margin: 0 auto; padding: 0 14px; }
.w490b-container { padding: 18px 14px 28px; }
.w490b-section { padding: 22px 0; }
.w490b-section-title {
  font-size: 2rem; margin-bottom: 14px;
  display: flex; align-items: center; gap: 8px;
  color: var(--w490b-text);
}
.w490b-section-title i { color: var(--w490b-primary); }
.w490b-eyebrow {
  text-transform: uppercase; letter-spacing: .15em;
  font-size: 1.1rem; color: var(--w490b-primary);
  margin-bottom: 6px; font-weight: 700;
}

/* Header */
.w490b-header {
  position: sticky; top: 0; z-index: 1000;
  background: linear-gradient(100deg, var(--w490b-midnight), #0b1247);
  border-bottom: 1px solid var(--w490b-border);
}
.w490b-header-inner {
  max-width: 430px; margin: 0 auto;
  padding: 10px 14px;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
}
.w490b-logo {
  display: flex; align-items: center; gap: 8px;
  color: var(--w490b-text); font-weight: 800; font-size: 1.5rem;
}
.w490b-logo img { width: 28px; height: 28px; border-radius: 6px; }
.w490b-logo span { color: var(--w490b-primary); }
.w490b-header-actions { display: flex; align-items: center; gap: 8px; }

/* Buttons */
.w490b-btn {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 1.3rem; font-weight: 700;
  padding: 8px 14px; border-radius: 999px; border: 0; cursor: pointer;
  transition: transform .15s ease, filter .15s ease, box-shadow .15s ease;
  color: #0c1340;
  background: linear-gradient(135deg, var(--w490b-primary), #ffb144);
  box-shadow: 0 4px 12px rgba(255, 149, 0, .35);
  min-height: 34px; text-decoration: none;
}
.w490b-btn:hover { transform: translateY(-1px); filter: brightness(1.05); color: #0c1340; }
.w490b-btn-secondary {
  background: transparent; color: var(--w490b-text);
  border: 1px solid var(--w490b-primary); box-shadow: none;
}
.w490b-btn-secondary:hover { background: rgba(255, 149, 0, .12); color: var(--w490b-primary); }
.w490b-icon-btn {
  width: 38px; height: 38px; border-radius: 10px;
  background: rgba(255, 255, 255, 0.08); color: var(--w490b-text);
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--w490b-border); cursor: pointer;
}
.w490b-icon-btn:hover { background: rgba(255, 149, 0, .18); }

/* Mobile expandable menu + overlay */
.w490b-mobile-menu {
  position: fixed; top: 0; right: 0;
  width: 82%; max-width: 320px; height: 100vh;
  background: linear-gradient(180deg, #11195a, #0b1247);
  z-index: 9999;
  transform: translateX(100%);
  transition: transform .25s ease;
  padding: 76px 18px 24px;
  overflow-y: auto;
  box-shadow: -10px 0 30px rgba(0, 0, 0, .35);
}
.w490b-mobile-menu.w490b-active { transform: translateX(0); }
.w490b-overlay {
  position: fixed; inset: 0;
  background: rgba(4, 8, 32, .6);
  opacity: 0; pointer-events: none;
  transition: opacity .25s ease;
  z-index: 9998;
}
body.w490b-menu-open .w490b-overlay { opacity: 1; pointer-events: auto; }
.w490b-close-btn {
  position: absolute; top: 14px; right: 14px;
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255, 255, 255, .08); color: var(--w490b-text);
  border: 1px solid var(--w490b-border);
  font-size: 1.6rem; cursor: pointer;
}
.w490b-mobile-menu h4 {
  font-size: 1.2rem; text-transform: uppercase;
  color: var(--w490b-primary); letter-spacing: .15em;
  margin: 18px 0 8px;
}
.w490b-mobile-menu ul { list-style: none; padding: 0; margin: 0; }
.w490b-mobile-menu li { border-bottom: 1px solid var(--w490b-border); }
.w490b-mobile-menu a { display: block; padding: 12px 6px; color: var(--w490b-text); font-size: 1.4rem; }
.w490b-mobile-menu a:hover { color: var(--w490b-primary); padding-left: 12px; }

/* Carousel */
.w490b-carousel {
  position: relative; border-radius: var(--w490b-radius-lg);
  overflow: hidden; box-shadow: var(--w490b-shadow); margin-bottom: 18px;
}
.w490b-slides { position: relative; }
.w490b-slide { display: none; position: relative; }
.w490b-slide img { width: 100%; height: 200px; object-fit: cover; }
.w490b-slide-active { display: block; }
.w490b-slide-caption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 18px 16px 14px;
  background: linear-gradient(0deg, rgba(7, 12, 50, .9), transparent);
  color: var(--w490b-text);
}
.w490b-slide-caption h2 { font-size: 1.8rem; margin: 0 0 4px; color: var(--w490b-primary); }
.w490b-slide-caption p { margin: 0; font-size: 1.2rem; color: var(--w490b-muted); }
.w490b-dots {
  position: absolute; bottom: 10px; left: 0; right: 0;
  display: flex; justify-content: center; gap: 6px;
}
.w490b-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255, 255, 255, .4); border: 0; cursor: pointer; }
.w490b-dot-active { background: var(--w490b-primary); width: 22px; border-radius: 4px; }

/* Hero */
.w490b-hero { padding: 8px 0 18px; }
.w490b-hero h1 { font-size: 2.4rem; line-height: 1.2; color: var(--w490b-text); }
.w490b-hero h1 em { color: var(--w490b-primary); font-style: normal; }
.w490b-hero p { color: var(--w490b-muted); font-size: 1.35rem; }
.w490b-hero-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 10px; }

/* Cards + grids */
.w490b-card {
  background: linear-gradient(160deg, var(--w490b-card), var(--w490b-card-2));
  border: 1px solid var(--w490b-border);
  border-radius: var(--w490b-radius);
  padding: 16px; box-shadow: var(--w490b-shadow); margin-bottom: 14px;
}
.w490b-card h3 { font-size: 1.6rem; color: var(--w490b-text); }
.w490b-card p { color: var(--w490b-muted); font-size: 1.3rem; margin-bottom: .6em; }
.w490b-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.w490b-grid.w490b-cols-4 { grid-template-columns: repeat(4, 1fr); }
.w490b-grid.w490b-cols-2 { grid-template-columns: repeat(2, 1fr); }
.w490b-game-tile {
  display: block; background: #0f1648;
  border-radius: 12px; overflow: hidden;
  border: 1px solid var(--w490b-border);
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
  cursor: pointer; text-align: center; padding: 6px;
}
.w490b-game-tile:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(255, 149, 0, .25);
  border-color: var(--w490b-primary);
}
.w490b-game-tile img {
  width: 100%; aspect-ratio: 1 / 1; object-fit: cover;
  border-radius: 10px; background: #0a0f33;
}
.w490b-game-tile span {
  display: block; margin-top: 6px;
  font-size: 1.1rem; color: var(--w490b-text); font-weight: 600;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* Filter bar */
.w490b-filter-bar { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.w490b-filter-btn {
  padding: 7px 14px; border-radius: 999px;
  background: rgba(255, 255, 255, .05);
  border: 1px solid var(--w490b-border);
  color: var(--w490b-muted); font-size: 1.2rem; cursor: pointer;
}
.w490b-filter-btn:hover { color: var(--w490b-primary); border-color: var(--w490b-primary); }
.w490b-filter-active { background: var(--w490b-primary); color: #0c1340; border-color: var(--w490b-primary); }

/* Features */
.w490b-features { display: grid; grid-template-columns: 1fr; gap: 10px; }
.w490b-feature {
  display: flex; gap: 12px; align-items: flex-start;
  background: rgba(255, 255, 255, .04); padding: 14px;
  border-radius: var(--w490b-radius); border: 1px solid var(--w490b-border);
}
.w490b-feature-icon {
  width: 40px; height: 40px; border-radius: 12px;
  background: linear-gradient(135deg, var(--w490b-secondary), var(--w490b-midnight));
  display: flex; align-items: center; justify-content: center;
  color: var(--w490b-primary); flex-shrink: 0;
}
.w490b-feature h4 { font-size: 1.4rem; margin: 0 0 4px; color: var(--w490b-text); }
.w490b-feature p { margin: 0; font-size: 1.2rem; color: var(--w490b-muted); }

/* Winners ticker */
.w490b-winners { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin; }
.w490b-winner {
  flex: 0 0 150px; background: rgba(255, 255, 255, .04);
  border: 1px solid var(--w490b-border); border-radius: 12px;
  padding: 10px; font-size: 1.15rem;
}
.w490b-winner strong { color: var(--w490b-primary); display: block; font-size: 1.3rem; }
.w490b-winner small { color: var(--w490b-muted); }

/* Testimonials */
.w490b-testimonial {
  background: rgba(255, 255, 255, .04); border: 1px solid var(--w490b-border);
  border-radius: var(--w490b-radius); padding: 14px; margin-bottom: 10px;
}
.w490b-testimonial-stars { color: var(--w490b-primary); margin-bottom: 6px; }
.w490b-testimonial p { font-size: 1.25rem; color: var(--w490b-text); margin-bottom: 8px; }
.w490b-testimonial cite { color: var(--w490b-muted); font-style: normal; font-size: 1.15rem; }

/* FAQ */
.w490b-faq-item {
  background: rgba(255, 255, 255, .04); border: 1px solid var(--w490b-border);
  border-radius: 12px; padding: 12px 14px; margin-bottom: 8px; cursor: pointer;
}
.w490b-faq-question {
  font-size: 1.35rem; font-weight: 600; color: var(--w490b-text);
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
}
.w490b-faq-answer { margin-top: 8px; font-size: 1.25rem; color: var(--w490b-muted); display: none; }
.w490b-faq-open .w490b-faq-answer { display: block; }
.w490b-faq-open { border-color: var(--w490b-primary); }

/* Payment chips */
.w490b-payments { display: flex; flex-wrap: wrap; gap: 8px; }
.w490b-pay {
  background: rgba(255, 255, 255, .05); border: 1px solid var(--w490b-border);
  border-radius: 999px; padding: 6px 12px; font-size: 1.15rem;
  color: var(--w490b-text); display: inline-flex; align-items: center; gap: 6px;
}
.w490b-pay i { color: var(--w490b-primary); }

/* CTA banner */
.w490b-cta {
  background: linear-gradient(135deg, var(--w490b-primary), #ff7b3a);
  color: #0c1340; border-radius: var(--w490b-radius-lg);
  padding: 18px 16px; text-align: center;
  box-shadow: 0 10px 24px rgba(255, 149, 0, .35); margin: 14px 0;
}
.w490b-cta h3 { color: #0c1340; font-size: 1.8rem; margin-bottom: 4px; }
.w490b-cta p { color: #1a1a1a; font-size: 1.25rem; margin: 0 0 10px; }
.w490b-cta .w490b-btn { background: var(--w490b-midnight); color: var(--w490b-text); }

/* Content page helpers */
.w490b-page-hero {
  padding: 22px 16px; border-radius: var(--w490b-radius-lg);
  background: radial-gradient(circle at top right, rgba(255, 149, 0, .24), transparent 38%), linear-gradient(145deg, #141d5e, #0b1247);
  border: 1px solid var(--w490b-border); box-shadow: var(--w490b-shadow); margin: 18px 0;
}
.w490b-page-hero h1 { font-size: 2.3rem; color: var(--w490b-text); }
.w490b-page-hero p { color: var(--w490b-muted); font-size: 1.35rem; }
.w490b-breadcrumb { font-size: 1.15rem; color: var(--w490b-muted); margin: 12px 0 0; }
.w490b-breadcrumb a { color: var(--w490b-primary); }
.w490b-stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 12px 0; }
.w490b-stat { background: rgba(255, 255, 255, .05); border: 1px solid var(--w490b-border); border-radius: 12px; padding: 10px; text-align: center; }
.w490b-stat strong { display: block; color: var(--w490b-primary); font-size: 1.55rem; }
.w490b-stat span { color: var(--w490b-muted); font-size: 1.05rem; }
.w490b-step-list { counter-reset: step; list-style: none; padding: 0; margin: 0; }
.w490b-step-list li { counter-increment: step; position: relative; padding: 12px 12px 12px 48px; margin-bottom: 10px; border: 1px solid var(--w490b-border); border-radius: 12px; background: rgba(255,255,255,.04); font-size: 1.25rem; }
.w490b-step-list li::before { content: counter(step); position: absolute; left: 12px; top: 12px; width: 26px; height: 26px; border-radius: 50%; background: var(--w490b-primary); color: #0c1340; display: flex; align-items: center; justify-content: center; font-weight: 800; }
.w490b-alert { border-left: 4px solid var(--w490b-primary); padding: 12px 14px; background: rgba(255,149,0,.1); border-radius: 10px; color: var(--w490b-text); font-size: 1.25rem; }

/* Footer */
.w490b-footer {
  background: linear-gradient(180deg, #0b1247, #060a2e);
  padding: 26px 14px 110px;
  border-top: 1px solid var(--w490b-border);
}
.w490b-footer-inner { max-width: 430px; margin: 0 auto; }
.w490b-footer h4 {
  color: var(--w490b-primary); font-size: 1.3rem;
  margin: 18px 0 8px; text-transform: uppercase; letter-spacing: .12em;
}
.w490b-footer-links {
  display: grid; grid-template-columns: 1fr 1fr; gap: 6px 12px;
  list-style: none; padding: 0; margin: 0;
}
.w490b-footer-links a { color: var(--w490b-text); font-size: 1.2rem; }
.w490b-footer-links a:hover { color: var(--w490b-primary); }
.w490b-footer-brand { font-size: 1.25rem; color: var(--w490b-muted); margin: 8px 0 16px; }
.w490b-footer-copy {
  font-size: 1.1rem; color: var(--w490b-muted);
  border-top: 1px solid var(--w490b-border);
  padding-top: 14px; margin-top: 14px;
}

/* Mobile bottom navigation */
.w490b-bottom-nav {
  position: fixed; left: 0; right: 0; bottom: 0; height: 62px;
  background: linear-gradient(180deg, #11195a, #070b30);
  border-top: 1px solid var(--w490b-border);
  display: flex; justify-content: space-around; align-items: center;
  z-index: 1000; box-shadow: 0 -6px 18px rgba(0, 0, 0, .35);
}
.w490b-bottom-nav-btn {
  flex: 1 1 0; min-width: 60px; min-height: 60px;
  background: transparent; border: 0; color: var(--w490b-muted);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px; cursor: pointer; font-size: 1.05rem; font-weight: 600;
  position: relative; transition: color .15s ease, transform .15s ease;
}
.w490b-bottom-nav-btn i, .w490b-bottom-nav-btn .material-icons { font-size: 22px; }
.w490b-bottom-nav-btn:hover { color: var(--w490b-primary); transform: translateY(-1px); }
.w490b-bottom-nav-btn.w490b-nav-current { color: var(--w490b-primary); }
.w490b-bottom-nav-btn.w490b-nav-current::after {
  content: ''; position: absolute; top: 0;
  width: 28px; height: 3px; border-radius: 0 0 3px 3px;
  background: var(--w490b-primary);
}
.w490b-bottom-nav-btn.w490b-nav-promo {
  background: linear-gradient(135deg, var(--w490b-primary), #ff7b3a);
  color: #0c1340; margin: -12px 4px 0; border-radius: 18px;
  box-shadow: 0 6px 16px rgba(255, 149, 0, .35); height: 64px;
}

/* Desktop + responsive */
@media (min-width: 769px) {
  .w490b-wrapper, .w490b-header-inner, .w490b-footer-inner { max-width: 960px; }
  .w490b-bottom-nav { display: none; }
  .w490b-footer { padding-bottom: 30px; }
  .w490b-grid { grid-template-columns: repeat(6, 1fr); }
  .w490b-features { grid-template-columns: repeat(2, 1fr); }
  body { padding-bottom: 0; }
}
@media (max-width: 768px) {
  main { padding-bottom: 80px; }
}

/* Accessibility helpers */
.w490b-sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
