/* ==========================================================================
   jl1.homes - Core stylesheet (basefiles)
   All custom classes use the "v9d7-" prefix.
   Palette: #FFCC02 (primary/highlight) | #0C0C0C (dark background)
   Mobile-first, max-width 430px, root font 62.5% (1rem = 10px).
   ========================================================================== */

:root {
  --v9d7-primary: #FFCC02;
  --v9d7-primary-dark: #d9a800;
  --v9d7-bg: #0C0C0C;
  --v9d7-bg-soft: #151515;
  --v9d7-bg-card: #1c1c1c;
  --v9d7-text: #FFFFFF;
  --v9d7-text-muted: #b8b8b8;
  --v9d7-text-dim: #888888;
  --v9d7-border: rgba(255, 204, 2, 0.18);
  --v9d7-success: #21c08b;
  --v9d7-danger: #ff5a5a;
  --v9d7-header-h: 5.4rem;
  --v9d7-bottom-nav-h: 6.2rem;
}

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

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

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

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

a { color: var(--v9d7-primary); text-decoration: none; }
a:hover, a:focus { color: var(--v9d7-primary-dark); }

.v9d7-container { width: 100%; max-width: 430px; margin: 0 auto; padding: 0 1.2rem; }
.v9d7-wrapper { padding-top: var(--v9d7-header-h); padding-bottom: var(--v9d7-bottom-nav-h); }

/* ===================== Header ===================== */
.v9d7-header {
  position: fixed; top: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 430px; z-index: 1000;
  background: linear-gradient(180deg, rgba(12,12,12,0.96) 0%, rgba(12,12,12,0.88) 100%);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--v9d7-border);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 1rem; height: var(--v9d7-header-h);
}
.v9d7-logo {
  display: flex; align-items: center; gap: 0.6rem; color: var(--v9d7-text);
  font-weight: 800; font-size: 1.8rem; letter-spacing: 0.5px;
}
.v9d7-logo img { width: 2.8rem; height: 2.8rem; border-radius: 0.6rem; }
.v9d7-logo .v9d7-logo-accent { color: var(--v9d7-primary); }

.v9d7-header-actions { display: flex; align-items: center; gap: 0.5rem; }
.v9d7-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
  border: none; border-radius: 0.8rem; cursor: pointer;
  font-size: 1.3rem; font-weight: 700; padding: 0.7rem 1.2rem;
  min-height: 3.6rem; transition: transform 0.15s ease, background 0.15s ease;
  color: #0C0C0C; background: var(--v9d7-primary);
}
.v9d7-btn:hover { transform: translateY(-1px); background: #ffd633; }
.v9d7-btn:active { transform: scale(0.97); }
.v9d7-btn.v9d7-btn-outline {
  background: transparent; color: var(--v9d7-primary);
  border: 1px solid var(--v9d7-primary);
}
.v9d7-btn.v9d7-btn-outline:hover { background: rgba(255,204,2,0.12); }
.v9d7-btn-sm { padding: 0.5rem 0.9rem; font-size: 1.2rem; min-height: 3rem; }
.v9d7-btn-block { width: 100%; display: flex; }

.v9d7-menu-btn {
  background: transparent; border: 1px solid var(--v9d7-border);
  color: var(--v9d7-text); border-radius: 0.8rem;
  width: 3.6rem; height: 3.6rem; display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 1.6rem;
}

/* ===================== Mobile menu ===================== */
.v9d7-mobile-menu {
  position: fixed; top: var(--v9d7-header-h); left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 430px; z-index: 9999;
  background: var(--v9d7-bg-soft); border-bottom: 1px solid var(--v9d7-border);
  max-height: 0; overflow: hidden; transition: max-height 0.3s ease;
}
.v9d7-mobile-menu.v9d7-menu-open { max-height: 480px; }
.v9d7-mobile-menu-inner { padding: 1rem 1.2rem 1.6rem; }
.v9d7-mobile-menu a {
  display: block; padding: 1rem 0.8rem; color: var(--v9d7-text);
  border-bottom: 1px solid rgba(255,255,255,0.06); font-weight: 600;
}
.v9d7-mobile-menu a:hover { color: var(--v9d7-primary); background: rgba(255,204,2,0.06); }
.v9d7-mobile-menu-cta { margin-top: 1rem; }

/* ===================== Carousel ===================== */
.v9d7-carousel {
  position: relative; width: 100%; border-radius: 1.2rem; overflow: hidden;
  margin: 1.2rem 0; aspect-ratio: 16 / 9; background: var(--v9d7-bg-soft);
}
.v9d7-carousel-track { position: relative; width: 100%; height: 100%; }
.v9d7-carousel-slide {
  position: absolute; inset: 0; opacity: 0; transition: opacity 0.6s ease;
  cursor: pointer;
}
.v9d7-carousel-slide.v9d7-slide-active { opacity: 1; }
.v9d7-carousel-slide img { width: 100%; height: 100%; object-fit: cover; }
.v9d7-carousel-caption {
  position: absolute; left: 1.2rem; bottom: 1.2rem; right: 1.2rem;
  background: linear-gradient(0deg, rgba(0,0,0,0.7) 0%, transparent 100%);
  padding: 2rem 1rem 1rem; color: var(--v9d7-text); font-weight: 700;
}
.v9d7-carousel-caption span { color: var(--v9d7-primary); }
.v9d7-carousel-dots {
  position: absolute; bottom: 0.8rem; left: 50%; transform: translateX(-50%);
  display: flex; gap: 0.5rem;
}
.v9d7-carousel-dot {
  width: 0.8rem; height: 0.8rem; border-radius: 50%;
  background: rgba(255,255,255,0.5); cursor: pointer; border: none;
}
.v9d7-carousel-dot.v9d7-dot-active { background: var(--v9d7-primary); width: 2rem; border-radius: 0.4rem; }

/* ===================== Section headings ===================== */
.v9d7-section { padding: 2rem 0; }
.v9d7-section-title {
  font-size: 2rem; font-weight: 800; color: var(--v9d7-text);
  margin-bottom: 0.4rem; display: flex; align-items: center; gap: 0.6rem;
}
.v9d7-section-title .v9d7-bar { width: 0.4rem; height: 2rem; background: var(--v9d7-primary); border-radius: 0.2rem; }
.v9d7-section-sub { color: var(--v9d7-text-muted); font-size: 1.3rem; margin-bottom: 1.4rem; }

/* ===================== Game grid ===================== */
.v9d7-game-list { display: flex; flex-direction: column; gap: 1.6rem; margin-top: 1.2rem; }
.v9d7-game-block { background: var(--v9d7-bg-soft); border-radius: 1rem; padding: 1.2rem; border: 1px solid rgba(255,255,255,0.04); }
.v9d7-game-block-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 1rem; padding-bottom: 0.8rem; border-bottom: 1px solid var(--v9d7-border);
}
.v9d7-game-block-title {
  font-size: 1.6rem; font-weight: 800; color: var(--v9d7-primary);
  display: flex; align-items: center; gap: 0.5rem;
}
.v9d7-game-block-title i { font-size: 1.8rem; }
.v9d7-game-block-meta { color: var(--v9d7-text-dim); font-size: 1.1rem; }
.v9d7-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.7rem;
}
.v9d7-game-card {
  display: flex; flex-direction: column; align-items: center;
  background: var(--v9d7-bg-card); border-radius: 0.8rem; padding: 0.5rem;
  cursor: pointer; transition: transform 0.15s ease, box-shadow 0.15s ease;
  border: 1px solid transparent;
}
.v9d7-game-card:hover, .v9d7-game-card:focus {
  transform: translateY(-2px); border-color: var(--v9d7-border);
  box-shadow: 0 4px 14px rgba(255,204,2,0.18);
}
.v9d7-game-card:active { transform: scale(0.97); }
.v9d7-game-card img {
  width: 100%; height: auto; border-radius: 0.6rem; background: #000;
}
.v9d7-game-card-name {
  margin-top: 0.4rem; font-size: 1.05rem; color: var(--v9d7-text);
  text-align: center; line-height: 1.3rem; height: 2.6rem; overflow: hidden;
  width: 100%; word-break: break-word;
}

/* ===================== Info / feature blocks ===================== */
.v9d7-card {
  background: var(--v9d7-bg-soft); border-radius: 1rem; padding: 1.4rem;
  border: 1px solid rgba(255,255,255,0.05); margin-bottom: 1.2rem;
}
.v9d7-card-title { font-size: 1.6rem; font-weight: 800; margin-bottom: 0.6rem; color: var(--v9d7-text); }
.v9d7-card p { color: var(--v9d7-text-muted); margin-bottom: 0.8rem; }
.v9d7-card p:last-child { margin-bottom: 0; }

.v9d7-features-grid { display: grid; grid-template-columns: 1fr; gap: 0.8rem; }
.v9d7-feature-item {
  display: flex; gap: 1rem; align-items: flex-start; padding: 1rem;
  background: var(--v9d7-bg-soft); border-radius: 0.8rem; border-left: 3px solid var(--v9d7-primary);
}
.v9d7-feature-icon {
  flex: 0 0 3.2rem; width: 3.2rem; height: 3.2rem; border-radius: 0.8rem;
  background: rgba(255,204,2,0.12); display: flex; align-items: center; justify-content: center;
  color: var(--v9d7-primary); font-size: 1.8rem;
}
.v9d7-feature-title { font-weight: 800; font-size: 1.4rem; margin-bottom: 0.2rem; }
.v9d7-feature-desc { color: var(--v9d7-text-muted); font-size: 1.2rem; line-height: 1.4rem; }

/* ===================== Steps ===================== */
.v9d7-steps { counter-reset: step; display: flex; flex-direction: column; gap: 1rem; }
.v9d7-step {
  display: flex; gap: 1rem; align-items: flex-start; padding: 1rem;
  background: var(--v9d7-bg-soft); border-radius: 0.8rem;
}
.v9d7-step-num {
  flex: 0 0 2.6rem; width: 2.6rem; height: 2.6rem; border-radius: 50%;
  background: var(--v9d7-primary); color: #0C0C0C; font-weight: 800;
  display: flex; align-items: center; justify-content: center; font-size: 1.4rem;
}
.v9d7-step-title { font-weight: 700; font-size: 1.3rem; margin-bottom: 0.2rem; }
.v9d7-step-desc { color: var(--v9d7-text-muted); font-size: 1.2rem; line-height: 1.4rem; }

/* ===================== Promo / winners / payments ===================== */
.v9d7-promo-banner {
  background: linear-gradient(135deg, rgba(255,204,2,0.18) 0%, rgba(12,12,12,0.4) 100%);
  border: 1px solid var(--v9d7-border); border-radius: 1rem; padding: 1.4rem;
  text-align: center; margin-bottom: 1.2rem;
}
.v9d7-promo-banner h3 { color: var(--v9d7-primary); font-size: 1.7rem; margin-bottom: 0.4rem; }
.v9d7-promo-banner p { color: var(--v9d7-text-muted); margin-bottom: 1rem; }

.v9d7-winners-list { display: flex; flex-direction: column; gap: 0.6rem; }
.v9d7-winner-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.8rem 1rem; background: var(--v9d7-bg-soft); border-radius: 0.6rem;
  border-left: 3px solid var(--v9d7-success);
}
.v9d7-winner-name { font-weight: 700; font-size: 1.2rem; }
.v9d7-winner-game { color: var(--v9d7-text-dim); font-size: 1.1rem; }
.v9d7-winner-amount { color: var(--v9d7-primary); font-weight: 800; font-size: 1.3rem; }

.v9d7-payments { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.6rem; }
.v9d7-payment-chip {
  background: var(--v9d7-bg-soft); border-radius: 0.6rem; padding: 0.8rem 0.4rem;
  text-align: center; font-size: 1rem; color: var(--v9d7-text-muted);
  border: 1px solid rgba(255,255,255,0.06); font-weight: 600;
}
.v9d7-payment-chip i { display: block; color: var(--v9d7-primary); font-size: 1.6rem; margin-bottom: 0.3rem; }

.v9d7-testimonials { display: flex; flex-direction: column; gap: 0.8rem; }
.v9d7-testimonial {
  background: var(--v9d7-bg-soft); border-radius: 0.8rem; padding: 1.2rem;
  border: 1px solid rgba(255,255,255,0.05);
}
.v9d7-testimonial-stars { color: var(--v9d7-primary); font-size: 1.2rem; margin-bottom: 0.4rem; }
.v9d7-testimonial-text { color: var(--v9d7-text); font-size: 1.2rem; line-height: 1.5rem; margin-bottom: 0.6rem; }
.v9d7-testimonial-author { color: var(--v9d7-text-dim); font-size: 1.1rem; font-weight: 700; }

/* ===================== App download CTA ===================== */
.v9d7-app-cta {
  background: linear-gradient(135deg, #1c1c1c 0%, #0C0C0C 100%);
  border: 1px solid var(--v9d7-border); border-radius: 1.2rem; padding: 1.6rem; text-align: center;
}
.v9d7-app-cta h3 { color: var(--v9d7-primary); font-size: 1.8rem; margin-bottom: 0.4rem; }
.v9d7-app-cta p { color: var(--v9d7-text-muted); margin-bottom: 1.2rem; font-size: 1.3rem; }
.v9d7-app-buttons { display: flex; flex-direction: column; gap: 0.6rem; }

/* ===================== FAQ ===================== */
.v9d7-faq-list { display: flex; flex-direction: column; gap: 0.6rem; }
.v9d7-faq-item {
  background: var(--v9d7-bg-soft); border-radius: 0.8rem; border: 1px solid rgba(255,255,255,0.05);
  overflow: hidden;
}
.v9d7-faq-q {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 1.2rem; cursor: pointer; font-weight: 700; font-size: 1.3rem; color: var(--v9d7-text);
}
.v9d7-faq-q .v9d7-faq-icon { color: var(--v9d7-primary); transition: transform 0.2s ease; }
.v9d7-faq-item.v9d7-faq-open .v9d7-faq-icon { transform: rotate(45deg); }
.v9d7-faq-a {
  max-height: 0; overflow: hidden; transition: max-height 0.25s ease;
  padding: 0 1.2rem; color: var(--v9d7-text-muted); font-size: 1.2rem; line-height: 1.5rem;
}
.v9d7-faq-item.v9d7-faq-open .v9d7-faq-a { max-height: 260px; padding: 0 1.2rem 1rem; }

/* ===================== Footer ===================== */
.v9d7-footer {
  background: var(--v9d7-bg-soft); border-top: 1px solid var(--v9d7-border);
  padding: 2rem 1.2rem 1.4rem; margin-top: 2rem;
}
.v9d7-footer-brand { color: var(--v9d7-primary); font-weight: 800; font-size: 1.6rem; margin-bottom: 0.4rem; }
.v9d7-footer-intro { color: var(--v9d7-text-muted); font-size: 1.2rem; line-height: 1.5rem; margin-bottom: 1.2rem; }
.v9d7-footer-links {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem 1rem; margin-bottom: 1.2rem;
}
.v9d7-footer-links a { color: var(--v9d7-text-muted); font-size: 1.2rem; padding: 0.4rem 0; }
.v9d7-footer-links a:hover { color: var(--v9d7-primary); }
.v9d7-footer-promos { display: flex; flex-direction: column; gap: 0.6rem; margin-bottom: 1.2rem; }
.v9d7-footer-copy { color: var(--v9d7-text-dim); font-size: 1.1rem; text-align: center; border-top: 1px solid rgba(255,255,255,0.05); padding-top: 1rem; }

/* ===================== Bottom nav ===================== */
.v9d7-bottom-nav {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 430px; height: var(--v9d7-bottom-nav-h);
  background: #000000; border-top: 1px solid var(--v9d7-border);
  display: flex; justify-content: space-around; align-items: stretch;
  z-index: 1000;
}
.v9d7-bottom-nav-btn {
  flex: 1; min-width: 60px; min-height: 60px;
  background: transparent; border: none; color: var(--v9d7-text-muted);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 0.2rem; cursor: pointer; padding: 0.4rem; transition: color 0.18s ease, transform 0.18s ease;
}
.v9d7-bottom-nav-btn i, .v9d7-bottom-nav-btn .material-icons-outlined {
  font-size: 2.2rem; line-height: 1;
}
.v9d7-bottom-nav-btn span { font-size: 1.05rem; font-weight: 600; }
.v9d7-bottom-nav-btn:hover { color: var(--v9d7-primary); }
.v9d7-bottom-nav-btn:active { transform: scale(0.92); }
.v9d7-bottom-nav-btn.v9d7-nav-current { color: var(--v9d7-primary); }
.v9d7-bottom-nav-btn.v9d7-nav-current i { transform: translateY(-2px); }
.v9d7-bottom-nav-btn.v9d7-nav-promo {
  color: var(--v9d7-primary);
}

/* ===================== Utility ===================== */
.v9d7-hide-desktop { display: block; }
.v9d7-text-link { color: var(--v9d7-primary); font-weight: 700; cursor: pointer; }
.v9d7-text-link:hover { text-decoration: underline; }
.v9d7-prose { color: var(--v9d7-text-muted); line-height: 1.6rem; font-size: 1.25rem; }
.v9d7-prose strong { color: var(--v9d7-text); }
.v9d7-prose a { color: var(--v9d7-primary); font-weight: 600; }

/* ===================== Responsive ===================== */
@media (min-width: 431px) and (max-width: 768px) {
  body { max-width: 430px; }
}

@media (min-width: 769px) {
  .v9d7-bottom-nav { display: none; }
  .v9d7-wrapper { padding-bottom: 2rem; }
}

@media (max-width: 768px) {
  main.v9d7-main { padding-bottom: 7.5rem; }
}
