/* ============================================================
 * jl90.homes - Theme stylesheet
 * Prefix: v13b-
 * Palette reference: #D8BFD8 | #333333 | #4B0082 | #6A5ACD
 * Mobile-first; root font-size 62.5% (1rem = 10px).
 * ============================================================ */

:root {
  --v13b-primary: #4B0082;          /* deep indigo */
  --v13b-primary-2: #6A5ACD;        /* slate blue accent */
  --v13b-light: #D8BFD8;            /* thistle text */
  --v13b-dark: #1c1330;             /* near-black indigo background */
  --v13b-dark-2: #2a1f4a;           /* card background */
  --v13b-dark-3: #333333;           /* neutral dark */
  --v13b-text: #f3e9f7;             /* high-contrast body text */
  --v13b-muted: #b9a9d8;            /* muted body text */
  --v13b-gold: #ffcf6b;             /* highlight gold */
  --v13b-border: rgba(216, 191, 216, 0.18);
  --v13b-shadow: 0 0.6rem 2.4rem rgba(0, 0, 0, 0.45);
  --v13b-radius: 1.2rem;
  --v13b-radius-sm: 0.8rem;
  --v13b-header-h: 6rem;
  --v13b-bottom-h: 6.4rem;
}

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: "Segoe UI", "Helvetica Neue", system-ui, -apple-system, sans-serif;
  background: radial-gradient(circle at 20% -10%, #3a1f6e 0%, var(--v13b-dark) 55%);
  color: var(--v13b-text);
  line-height: 1.5rem;
  font-size: 1.4rem;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

img { max-width: 100%; display: block; }
a { color: var(--v13b-light); text-decoration: none; }
a:hover { color: var(--v13b-gold); }

.v13b-no-scroll { overflow: hidden; }

/* ---------- Layout ---------- */
.v13b-container {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1.4rem;
}
.v13b-wrapper {
  padding-top: calc(var(--v13b-header-h) + 1rem);
  padding-bottom: calc(var(--v13b-bottom-h) + 2rem);
  min-height: 100vh;
}

/* ---------- Header ---------- */
.v13b-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--v13b-header-h);
  background: linear-gradient(180deg, rgba(75, 0, 130, 0.98), rgba(28, 19, 48, 0.95));
  backdrop-filter: blur(12px);
  border-bottom: 0.1rem solid var(--v13b-border);
  z-index: 1000;
  display: flex;
  align-items: center;
}
.v13b-header-scrolled { box-shadow: var(--v13b-shadow); }
.v13b-header-inner {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1.2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
}
.v13b-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 800;
  font-size: 1.8rem;
  letter-spacing: 0.05rem;
  color: var(--v13b-light);
}
.v13b-brand img { width: 2.8rem; height: 2.8rem; border-radius: 0.6rem; }
.v13b-brand span { color: var(--v13b-gold); }

.v13b-header-actions { display: flex; align-items: center; gap: 0.6rem; }
.v13b-menu-btn {
  background: transparent;
  border: 0.1rem solid var(--v13b-border);
  color: var(--v13b-light);
  width: 3.6rem; height: 3.6rem;
  border-radius: 0.8rem;
  font-size: 1.6rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}

/* ---------- Buttons ---------- */
.v13b-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 1.4rem;
  border-radius: 2.4rem;
  font-weight: 700;
  font-size: 1.3rem;
  border: 0;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
  min-height: 4rem;
  text-align: center;
}
.v13b-btn:active { transform: scale(0.96); }
.v13b-btn-primary {
  background: linear-gradient(135deg, var(--v13b-gold), #ffb347);
  color: var(--v13b-primary);
  box-shadow: 0 0.4rem 1rem rgba(255, 207, 107, 0.35);
}
.v13b-btn-secondary {
  background: linear-gradient(135deg, var(--v13b-primary-2), var(--v13b-primary));
  color: var(--v13b-light);
  border: 0.1rem solid rgba(216, 191, 216, 0.4);
}
.v13b-btn-ghost {
  background: transparent;
  border: 0.1rem solid var(--v13b-border);
  color: var(--v13b-light);
}
.v13b-link-text {
  color: var(--v13b-gold);
  font-weight: 700;
  text-decoration: underline;
}

/* ---------- Mobile menu drawer ---------- */
.v13b-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;
}
.v13b-overlay-active { opacity: 1; pointer-events: auto; }
.v13b-mobile-menu {
  position: fixed;
  top: 0; right: -80%;
  width: 80%;
  max-width: 32rem;
  height: 100vh;
  background: var(--v13b-dark-2);
  padding: 2rem 1.6rem;
  transform: translateX(0);
  transition: right 0.28s ease;
  z-index: 9999;
  overflow-y: auto;
}
.v13b-menu-open { right: 0; }
.v13b-menu-title {
  font-size: 1.6rem; font-weight: 800; color: var(--v13b-light);
  margin: 1.6rem 0 0.8rem;
  padding-bottom: 0.4rem;
  border-bottom: 0.1rem solid var(--v13b-border);
}
.v13b-menu-link {
  display: block;
  padding: 1rem 0.4rem;
  font-size: 1.4rem;
  color: var(--v13b-text);
  border-bottom: 0.1rem dashed rgba(216, 191, 216, 0.12);
}
.v13b-menu-link:hover { color: var(--v13b-gold); }
.v13b-menu-close {
  background: transparent;
  border: 0;
  color: var(--v13b-light);
  font-size: 2rem;
  cursor: pointer;
}

/* ---------- Hero / Carousel ---------- */
.v13b-carousel {
  position: relative;
  border-radius: var(--v13b-radius);
  overflow: hidden;
  box-shadow: var(--v13b-shadow);
  margin: 1rem 0 2rem;
}
.v13b-carousel-track { position: relative; }
.v13b-carousel-slide {
  display: none;
  position: relative;
  cursor: pointer;
}
.v13b-carousel-slide.v13b-active { display: block; }
.v13b-carousel-slide img {
  width: 100%;
  height: auto;
  aspect-ratio: 16/9;
  object-fit: cover;
}
.v13b-carousel-caption {
  position: absolute;
  left: 1.4rem; right: 1.4rem; bottom: 1.2rem;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.7), transparent);
  padding: 1.4rem 0.4rem 0.4rem;
  color: var(--v13b-text);
}
.v13b-carousel-caption h3 {
  margin: 0 0 0.4rem;
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--v13b-gold);
}
.v13b-carousel-caption p { margin: 0; font-size: 1.2rem; color: var(--v13b-light); }
.v13b-carousel-arrow {
  position: absolute; top: 50%;
  transform: translateY(-50%);
  background: rgba(28, 19, 48, 0.7);
  border: 0; color: var(--v13b-light);
  width: 3.2rem; height: 3.2rem; border-radius: 50%;
  font-size: 1.4rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.v13b-carousel-arrow:hover { background: var(--v13b-primary); }
.v13b-carousel-prev { left: 0.6rem; }
.v13b-carousel-next { right: 0.6rem; }
.v13b-carousel-dots {
  display: flex; gap: 0.6rem; justify-content: center;
  padding: 0.8rem 0; background: var(--v13b-dark-2);
}
.v13b-carousel-dot {
  width: 0.8rem; height: 0.8rem; border-radius: 50%;
  background: rgba(216, 191, 216, 0.35); border: 0; cursor: pointer;
}
.v13b-carousel-dot.v13b-active { background: var(--v13b-gold); width: 2rem; border-radius: 0.4rem; }

/* ---------- Section / headings ---------- */
.v13b-section { margin: 2.4rem 0; }
.v13b-section-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 1rem;
}
.v13b-section-title {
  font-size: 1.7rem; font-weight: 800; color: var(--v13b-gold);
  display: flex; align-items: center; gap: 0.6rem;
}
.v13b-section-more {
  font-size: 1.2rem; color: var(--v13b-light);
}
.v13b-h1 {
  font-size: 2.1rem; font-weight: 800; color: var(--v13b-light);
  margin: 1rem 0 0.6rem; line-height: 1.2;
}
.v13b-h1 span { color: var(--v13b-gold); }
.v13b-lead {
  font-size: 1.3rem; color: var(--v13b-muted); margin-bottom: 1.2rem;
}

/* ---------- Game grid ---------- */
.v13b-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.9rem;
}
.v13b-card {
  background: var(--v13b-dark-2);
  border: 0.1rem solid var(--v13b-border);
  border-radius: var(--v13b-radius-sm);
  overflow: hidden;
  text-align: center;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.2s ease;
}
.v13b-card:active { transform: scale(0.96); }
.v13b-card:hover { box-shadow: var(--v13b-shadow); }
.v13b-card img {
  width: 100%; aspect-ratio: 1/1; object-fit: cover; background: var(--v13b-dark-3);
}
.v13b-card-name {
  font-size: 1.1rem; color: var(--v13b-text);
  padding: 0.6rem 0.4rem; font-weight: 600;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* ---------- Filter tabs ---------- */
.v13b-filter-row {
  display: flex; gap: 0.6rem; overflow-x: auto;
  padding-bottom: 0.6rem; margin-bottom: 0.6rem;
}
.v13b-filter-tab {
  flex: 0 0 auto;
  padding: 0.6rem 1.2rem;
  border-radius: 2rem;
  border: 0.1rem solid var(--v13b-border);
  background: var(--v13b-dark-2);
  color: var(--v13b-light);
  font-size: 1.2rem; font-weight: 600;
  cursor: pointer;
}
.v13b-filter-active {
  background: linear-gradient(135deg, var(--v13b-primary), var(--v13b-primary-2));
  color: var(--v13b-text); border-color: transparent;
}

/* ---------- Info modules ---------- */
.v13b-panel {
  background: var(--v13b-dark-2);
  border: 0.1rem solid var(--v13b-border);
  border-radius: var(--v13b-radius);
  padding: 1.6rem;
  margin-bottom: 1.4rem;
}
.v13b-panel h2 {
  margin: 0 0 0.8rem; font-size: 1.6rem; color: var(--v13b-gold); font-weight: 800;
}
.v13b-panel h3 {
  margin: 1rem 0 0.6rem; font-size: 1.4rem; color: var(--v13b-light); font-weight: 700;
}
.v13b-panel p {
  margin: 0 0 0.8rem; color: var(--v13b-text); font-size: 1.3rem; line-height: 1.7rem;
}
.v13b-panel ul { padding-left: 1.6rem; }
.v13b-panel li { font-size: 1.3rem; color: var(--v13b-text); margin-bottom: 0.4rem; }
.v13b-list-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.8rem;
}
.v13b-chip {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.4rem 0.9rem; border-radius: 2rem;
  background: rgba(106, 90, 205, 0.2);
  color: var(--v13b-light);
  font-size: 1.1rem; font-weight: 600;
}

/* ---------- Stats ---------- */
.v13b-stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.8rem;
  text-align: center; margin: 1rem 0;
}
.v13b-stat {
  background: rgba(75, 0, 130, 0.35);
  border-radius: var(--v13b-radius-sm);
  padding: 1rem 0.4rem;
  border: 0.1rem solid var(--v13b-border);
}
.v13b-stat-num { font-size: 1.7rem; color: var(--v13b-gold); font-weight: 800; }
.v13b-stat-label { font-size: 1.1rem; color: var(--v13b-muted); }

/* ---------- Testimonials ---------- */
.v13b-testimonials { display: grid; gap: 0.8rem; }
.v13b-testimonial {
  background: var(--v13b-dark-2);
  border-left: 0.3rem solid var(--v13b-primary-2);
  border-radius: var(--v13b-radius-sm);
  padding: 1rem 1.2rem;
}
.v13b-testimonial p { margin: 0 0 0.4rem; font-size: 1.2rem; color: var(--v13b-text); font-style: italic; }
.v13b-testimonial cite { font-size: 1.1rem; color: var(--v13b-gold); font-weight: 700; font-style: normal; }

/* ---------- Payment ---------- */
.v13b-pay-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.6rem; }
.v13b-pay-item {
  background: var(--v13b-dark-3); border-radius: 0.8rem;
  padding: 0.8rem 0.4rem; text-align: center;
  font-size: 1rem; color: var(--v13b-light); font-weight: 600;
  border: 0.1rem solid var(--v13b-border);
}

/* ---------- Winners ---------- */
.v13b-winner-row {
  display: flex; align-items: center; gap: 0.8rem;
  background: var(--v13b-dark-2);
  padding: 0.8rem; border-radius: var(--v13b-radius-sm); margin-bottom: 0.6rem;
}
.v13b-winner-avatar {
  width: 3.2rem; height: 3.2rem; border-radius: 50%;
  background: linear-gradient(135deg, var(--v13b-primary-2), var(--v13b-primary));
  display: flex; align-items: center; justify-content: center;
  color: var(--v13b-gold); font-weight: 800;
}
.v13b-winner-info { flex: 1; }
.v13b-winner-name { font-size: 1.2rem; color: var(--v13b-light); font-weight: 700; }
.v13b-winner-game { font-size: 1.1rem; color: var(--v13b-muted); }
.v13b-winner-amount { font-size: 1.3rem; color: var(--v13b-gold); font-weight: 800; }

/* ---------- CTA banner ---------- */
.v13b-cta {
  background: linear-gradient(135deg, var(--v13b-primary), var(--v13b-primary-2));
  border-radius: var(--v13b-radius);
  padding: 2rem 1.6rem; text-align: center; margin: 1.6rem 0;
  border: 0.1rem solid var(--v13b-border);
}
.v13b-cta h3 { margin: 0 0 0.4rem; font-size: 1.8rem; color: var(--v13b-gold); }
.v13b-cta p { margin: 0 0 1rem; color: var(--v13b-light); font-size: 1.2rem; }

/* ---------- Footer ---------- */
.v13b-footer {
  background: var(--v13b-dark-2);
  border-top: 0.1rem solid var(--v13b-border);
  padding: 2.4rem 1.4rem;
  margin-top: 2rem;
}
.v13b-footer-brand { font-weight: 800; font-size: 1.6rem; color: var(--v13b-gold); margin-bottom: 0.6rem; }
.v13b-footer-desc { font-size: 1.2rem; color: var(--v13b-muted); margin-bottom: 1.4rem; line-height: 1.6rem; }
.v13b-footer-promos {
  display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: 1.4rem;
}
.v13b-footer-promos .v13b-btn { padding: 0.7rem 1rem; font-size: 1.1rem; min-height: 3.2rem; }
.v13b-footer-links {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.6rem 1rem;
  margin-bottom: 1.2rem;
}
.v13b-footer-links a { font-size: 1.2rem; color: var(--v13b-light); }
.v13b-footer-copy {
  font-size: 1.1rem; color: var(--v13b-muted); text-align: center;
  border-top: 0.1rem dashed var(--v13b-border); padding-top: 1rem;
}

/* ---------- Bottom navigation ---------- */
.v13b-bottom-nav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: var(--v13b-bottom-h);
  background: linear-gradient(180deg, rgba(75, 0, 130, 0.98), rgba(28, 19, 48, 0.98));
  backdrop-filter: blur(10px);
  border-top: 0.1rem solid var(--v13b-border);
  display: flex; justify-content: space-around; align-items: stretch;
  z-index: 1000;
  padding: 0.4rem 0.2rem 0.2rem;
}
.v13b-bottom-nav-btn {
  flex: 1;
  background: transparent; border: 0;
  color: var(--v13b-light);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 0.2rem;
  min-width: 6rem; min-height: 5.6rem;
  font-size: 1.05rem; font-weight: 600;
  cursor: pointer; border-radius: 0.8rem;
  transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease;
  position: relative;
}
.v13b-bottom-nav-btn .material-icons,
.v13b-bottom-nav-btn .fas,
.v13b-bottom-nav-btn .far,
.v13b-bottom-nav-btn ion-icon,
.v13b-bottom-nav-btn .bi { font-size: 2.2rem; }
.v13b-bottom-nav-btn:active { transform: scale(0.94); }
.v13b-bottom-nav-btn.v13b-nav-active { color: var(--v13b-gold); background: rgba(255, 207, 107, 0.12); }
.v13b-nav-badge {
  position: absolute; top: 0.4rem; right: 1.4rem;
  background: #ff4d6d; color: #fff;
  font-size: 0.9rem; padding: 0 0.4rem;
  border-radius: 1rem; min-width: 1.4rem;
  font-weight: 700;
}

/* ---------- Utilities ---------- */
.v13b-text-center { text-align: center; }
.v13b-mt-1 { margin-top: 1rem; }
.v13b-mt-2 { margin-top: 2rem; }
.v13b-mb-1 { margin-bottom: 1rem; }
.v13b-hidden { display: none !important; }

/* ---------- Responsive ---------- */
@media (min-width: 769px) {
  .v13b-bottom-nav { display: none; }
  .v13b-wrapper { padding-bottom: 4rem; }
  .v13b-container { max-width: 760px; }
  .v13b-grid { grid-template-columns: repeat(6, 1fr); }
  .v13b-footer-links { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
  body { padding-bottom: var(--v13b-bottom-h); }
}
