/* ============================================================
   Lucky Starz - Theme stylesheet
   All custom classes use the "v1eb-" prefix to namespace styles.
   Mobile-first: base styles target <=430px, then scale up.
   ============================================================ */

:root {
  --v1eb-bg:        #0E1621;   /* deep navy background */
  --v1eb-bg-soft:   #142231;   /* card / panel background */
  --v1eb-bg-mute:   #1b2d40;   /* hover / divider */
  --v1eb-text:      #E8F5E8;   /* light text */
  --v1eb-muted:     #AFEEEE;   /* soft accent text */
  --v1eb-primary:   #008B8B;   /* teal brand */
  --v1eb-primary-2: #13a8a8;   /* lighter teal */
  --v1eb-accent:    #FF9800;   /* warm CTA */
  --v1eb-accent-2:  #ffb74d;   /* lighter orange */
  --v1eb-danger:    #ef5350;
  --v1eb-success:   #66bb6a;
  --v1eb-radius:    14px;
  --v1eb-radius-sm: 10px;
  --v1eb-shadow:    0 6px 22px rgba(0,0,0,0.35);
  --v1eb-max:       430px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background:
    radial-gradient(1200px 600px at 50% -10%, rgba(0,139,139,0.18), transparent 60%),
    linear-gradient(180deg, #0b121c 0%, var(--v1eb-bg) 40%, #0b121c 100%);
  background-attachment: fixed;
  color: var(--v1eb-text);
  font-family: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.6rem;
  line-height: 1.5;
  min-height: 100vh;
}

html { font-size: 62.5%; }   /* 1rem = 10px */

a { color: var(--v1eb-muted); text-decoration: none; }
a:hover, a:focus { color: var(--v1eb-accent-2); }
img { max-width: 100%; display: block; }

/* ---------- Layout containers ---------- */
.v1eb-wrapper {
  width: 100%;
  max-width: var(--v1eb-max);
  margin: 0 auto;
  padding: 0 1.4rem;
}

.v1eb-container {
  width: 100%;
  max-width: var(--v1eb-max);
  margin: 0 auto;
  padding-bottom: 9rem;   /* clearance for fixed bottom nav */
}

.v1eb-section { padding: 2.2rem 0 1rem; }
.v1eb-section-head {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin: 0 0 1.2rem;
}
.v1eb-section-head h2 {
  font-size: 2.1rem;
  margin: 0;
  color: var(--v1eb-text);
  letter-spacing: 0.2px;
}
.v1eb-section-head .v1eb-bar {
  height: 4px; flex: 1;
  background: linear-gradient(90deg, var(--v1eb-primary), transparent);
  border-radius: 4px;
}

/* ---------- Header ---------- */
.v1eb-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(14,22,33,0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(175,238,238,0.12);
}
.v1eb-header-inner {
  max-width: var(--v1eb-max);
  margin: 0 auto;
  height: 6rem;
  padding: 0 1.2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.v1eb-brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  flex: 1;
  min-width: 0;
}
.v1eb-brand img { width: 30px; height: 30px; border-radius: 8px; }
.v1eb-brand-name {
  font-weight: 800;
  font-size: 1.95rem;
  color: var(--v1eb-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.v1eb-brand-name b { color: var(--v1eb-accent); }

.v1eb-header-actions { display: flex; align-items: center; gap: 0.6rem; }

/* ---------- Buttons ---------- */
.v1eb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: none;
  border-radius: var(--v1eb-radius-sm);
  padding: 1rem 1.4rem;
  font-size: 1.45rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  min-height: 44px;
  text-decoration: none;
  line-height: 1;
}
.v1eb-btn:focus-visible { outline: 2px solid var(--v1eb-accent-2); outline-offset: 2px; }
.v1eb-btn:active { transform: scale(0.96); }

.v1eb-btn-primary {
  background: linear-gradient(135deg, var(--v1eb-accent), var(--v1eb-accent-2));
  color: #1a1206;
  box-shadow: 0 4px 14px rgba(255,152,0,0.35);
}
.v1eb-btn-secondary {
  background: linear-gradient(135deg, var(--v1eb-primary), var(--v1eb-primary-2));
  color: #fff;
  box-shadow: 0 4px 14px rgba(0,139,139,0.35);
}
.v1eb-btn-ghost {
  background: transparent;
  border: 1px solid rgba(175,238,238,0.4);
  color: var(--v1eb-muted);
}
.v1eb-btn-block { width: 100%; }
.v1eb-btn-lg { padding: 1.3rem 1.6rem; font-size: 1.7rem; }

.v1eb-menu-toggle {
  width: 44px; height: 44px;
  border-radius: 10px;
  border: 1px solid rgba(175,238,238,0.3);
  background: transparent;
  color: var(--v1eb-muted);
  font-size: 2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.v1eb-menu-toggle.v1eb-active { background: var(--v1eb-primary); color: #fff; }

/* ---------- Mobile menu ---------- */
.v1eb-mobile-menu {
  position: fixed;
  top: 6rem; left: 0; right: 0;
  z-index: 9999;
  background: var(--v1eb-bg-soft);
  border-bottom: 1px solid rgba(175,238,238,0.15);
  padding: 1rem 1.4rem 1.4rem;
  transform: translateY(-120%);
  transition: transform .25s ease;
  max-height: 75vh;
  overflow-y: auto;
}
.v1eb-mobile-menu.v1eb-open { transform: translateY(0); }
.v1eb-mobile-menu a {
  display: block;
  padding: 1.1rem 1rem;
  border-radius: var(--v1eb-radius-sm);
  color: var(--v1eb-text);
  font-weight: 600;
  border: 1px solid transparent;
}
.v1eb-mobile-menu a:hover, .v1eb-mobile-menu a:focus {
  background: var(--v1eb-bg-mute);
  border-color: rgba(175,238,238,0.18);
}

/* ---------- Hero / Carousel ---------- */
.v1eb-hero { padding-top: 7.5rem; }
.v1eb-carousel {
  position: relative;
  border-radius: var(--v1eb-radius);
  overflow: hidden;
  box-shadow: var(--v1eb-shadow);
  background: var(--v1eb-bg-soft);
}
.v1eb-slide {
  display: none;
  position: relative;
  cursor: pointer;
}
.v1eb-slide.v1eb-active { display: block; }
.v1eb-slide img { width: 100%; height: 200px; object-fit: cover; }
.v1eb-slide-cap {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 1.2rem 1.4rem;
  background: linear-gradient(0deg, rgba(0,0,0,0.78), transparent);
  color: #fff;
}
.v1eb-slide-cap b { color: var(--v1eb-accent-2); }
.v1eb-dots {
  position: absolute;
  bottom: 10px; left: 0; right: 0;
  display: flex; justify-content: center; gap: 6px;
  z-index: 2;
}
.v1eb-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  border: none; cursor: pointer; padding: 0;
}
.v1eb-dot.v1eb-active { background: var(--v1eb-accent); width: 22px; border-radius: 5px; }

/* ---------- Hero CTA banner ---------- */
.v1eb-hero-cta {
  margin-top: 1.4rem;
  padding: 1.4rem;
  border-radius: var(--v1eb-radius);
  background: linear-gradient(135deg, rgba(0,139,139,0.35), rgba(255,152,0,0.18));
  border: 1px solid rgba(175,238,238,0.2);
  text-align: center;
}
.v1eb-hero-cta h1 {
  margin: 0 0 0.4rem;
  font-size: 2.3rem;
  line-height: 1.2;
}
.v1eb-hero-cta p { margin: 0 0 1rem; color: var(--v1eb-muted); font-size: 1.4rem; }

/* ---------- Game grid ---------- */
.v1eb-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.v1eb-card {
  background: var(--v1eb-bg-soft);
  border-radius: var(--v1eb-radius-sm);
  overflow: hidden;
  border: 1px solid rgba(175,238,238,0.1);
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
  cursor: pointer;
  display: block;
  color: inherit;
}
.v1eb-card:hover, .v1eb-card:focus {
  transform: translateY(-3px);
  border-color: var(--v1eb-accent);
  box-shadow: var(--v1eb-shadow);
  color: inherit;
}
.v1eb-card img { width: 100%; height: 96px; object-fit: cover; }
.v1eb-card-name {
  padding: 0.6rem 0.6rem 0.8rem;
  font-size: 1.15rem;
  font-weight: 600;
  text-align: center;
  color: var(--v1eb-text);
  line-height: 1.2;
  min-height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---------- Generic card / panel ---------- */
.v1eb-panel {
  background: var(--v1eb-bg-soft);
  border: 1px solid rgba(175,238,238,0.12);
  border-radius: var(--v1eb-radius);
  padding: 1.5rem;
}
.v1eb-panel h3 { margin: 0 0 0.8rem; color: var(--v1eb-accent-2); font-size: 1.7rem; }
.v1eb-panel p { margin: 0 0 0.8rem; color: var(--v1eb-muted); font-size: 1.4rem; }
.v1eb-panel a.v1eb-link { color: var(--v1eb-accent); font-weight: 700; }

/* ---------- Feature list ---------- */
.v1eb-features { display: grid; gap: 1rem; grid-template-columns: 1fr; }
.v1eb-feature {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.2rem;
  background: var(--v1eb-bg-soft);
  border-radius: var(--v1eb-radius-sm);
  border-left: 3px solid var(--v1eb-primary);
}
.v1eb-feature .v1eb-ico {
  font-size: 2.4rem;
  color: var(--v1eb-accent);
  line-height: 1;
}
.v1eb-feature h4 { margin: 0 0 0.3rem; font-size: 1.55rem; }
.v1eb-feature p { margin: 0; color: var(--v1eb-muted); font-size: 1.35rem; }

/* ---------- Stats / RTP ---------- */
.v1eb-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.9rem; }
.v1eb-stat {
  background: var(--v1eb-bg-soft);
  border-radius: var(--v1eb-radius-sm);
  padding: 1.2rem;
  text-align: center;
  border: 1px solid rgba(175,238,238,0.1);
}
.v1eb-stat b { display: block; color: var(--v1eb-accent); font-size: 2.1rem; }
.v1eb-stat span { color: var(--v1eb-muted); font-size: 1.2rem; }

/* ---------- RTP bars ---------- */
.v1eb-rtp-row { margin-bottom: 1rem; }
.v1eb-rtp-top {
  display: flex; justify-content: space-between;
  font-size: 1.3rem; margin-bottom: 0.4rem; color: var(--v1eb-muted);
}
.v1eb-rtp-bar {
  height: 8px;
  background: rgba(175,238,238,0.15);
  border-radius: 4px;
  overflow: hidden;
}
.v1eb-rtp-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--v1eb-primary), var(--v1eb-accent));
  border-radius: 4px;
}

/* ---------- Testimonials ---------- */
.v1eb-reviews { display: grid; gap: 1rem; }
.v1eb-review {
  padding: 1.2rem;
  background: var(--v1eb-bg-soft);
  border-radius: var(--v1eb-radius-sm);
  border: 1px solid rgba(175,238,238,0.1);
}
.v1eb-review-top { display: flex; align-items: center; gap: 0.8rem; margin-bottom: 0.6rem; }
.v1eb-review-top .v1eb-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(135deg, var(--v1eb-primary), var(--v1eb-accent));
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 800; font-size: 1.5rem;
}
.v1eb-review-top b { font-size: 1.4rem; }
.v1eb-stars { color: var(--v1eb-accent); font-size: 1.3rem; }
.v1eb-review p { margin: 0; color: var(--v1eb-muted); font-size: 1.35rem; }

/* ---------- Winners ---------- */
.v1eb-winner-list { display: grid; gap: 0.7rem; }
.v1eb-winner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 1.2rem;
  background: var(--v1eb-bg-soft);
  border-radius: var(--v1eb-radius-sm);
  border-left: 3px solid var(--v1eb-accent);
}
.v1eb-winner b { color: var(--v1eb-text); font-size: 1.4rem; }
.v1eb-winner span { color: var(--v1eb-accent-2); font-weight: 700; }

/* ---------- Payment ---------- */
.v1eb-pay-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.7rem; }
.v1eb-pay {
  background: var(--v1eb-bg-soft);
  border-radius: var(--v1eb-radius-sm);
  padding: 1rem 0.4rem;
  text-align: center;
  font-size: 1.15rem;
  color: var(--v1eb-muted);
  border: 1px solid rgba(175,238,238,0.1);
  font-weight: 600;
}
.v1eb-pay .v1eb-ico { font-size: 2rem; color: var(--v1eb-primary-2); display: block; margin-bottom: 0.3rem; }

/* ---------- FAQ ---------- */
.v1eb-faq-item {
  background: var(--v1eb-bg-soft);
  border-radius: var(--v1eb-radius-sm);
  margin-bottom: 0.8rem;
  border: 1px solid rgba(175,238,238,0.1);
  overflow: hidden;
}
.v1eb-faq-q {
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  color: var(--v1eb-text);
  padding: 1.2rem 1.4rem;
  font-size: 1.45rem;
  font-weight: 700;
  cursor: pointer;
  display: flex; justify-content: space-between; align-items: center;
}
.v1eb-faq-q .v1eb-chev { color: var(--v1eb-accent); }
.v1eb-faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .25s ease;
  padding: 0 1.4rem;
  color: var(--v1eb-muted);
  font-size: 1.35rem;
}
.v1eb-faq-a.v1eb-open {
  max-height: 320px;
  padding: 0 1.4rem 1.3rem;
}

/* ---------- Steps ---------- */
.v1eb-steps { display: grid; gap: 0.9rem; counter-reset: step; }
.v1eb-step {
  display: flex; gap: 1rem;
  background: var(--v1eb-bg-soft);
  padding: 1.2rem;
  border-radius: var(--v1eb-radius-sm);
}
.v1eb-step-num {
  flex: 0 0 32px; width: 32px; height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--v1eb-accent), var(--v1eb-accent-2));
  color: #1a1206;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800;
}
.v1eb-step h4 { margin: 0 0 0.3rem; font-size: 1.5rem; }
.v1eb-step p { margin: 0; color: var(--v1eb-muted); font-size: 1.3rem; }

/* ---------- Tricks / badges ---------- */
.v1eb-badges { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.v1eb-badge {
  padding: 0.6rem 1rem;
  border-radius: 999px;
  background: var(--v1eb-bg-mute);
  color: var(--v1eb-muted);
  font-size: 1.2rem;
  font-weight: 600;
  border: 1px solid rgba(175,238,238,0.15);
}

/* ---------- App download CTA ---------- */
.v1eb-app-cta {
  background: linear-gradient(135deg, rgba(0,139,139,0.4), rgba(255,152,0,0.25));
  border-radius: var(--v1eb-radius);
  padding: 1.6rem;
  text-align: center;
  border: 1px solid rgba(175,238,238,0.2);
}
.v1eb-app-cta h3 { margin: 0 0 0.5rem; color: #fff; font-size: 1.9rem; }
.v1eb-app-cta p { margin: 0 0 1.2rem; color: var(--v1eb-muted); font-size: 1.35rem; }

/* ---------- Footer ---------- */
.v1eb-footer {
  background: #0a1018;
  border-top: 1px solid rgba(175,238,238,0.12);
  padding: 2rem 1.4rem 1rem;
  margin-top: 2rem;
}
.v1eb-footer-brand { font-size: 1.4rem; color: var(--v1eb-muted); margin-bottom: 1rem; line-height: 1.5; }
.v1eb-footer-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem 1rem;
  margin-bottom: 1.2rem;
}
.v1eb-footer-links a { font-size: 1.25rem; color: var(--v1eb-muted); }
.v1eb-footer-promos {
  display: flex; flex-wrap: wrap; gap: 0.6rem;
  margin-bottom: 1.2rem;
}
.v1eb-footer-promos .v1eb-btn { flex: 1 1 auto; padding: 0.8rem 1rem; font-size: 1.3rem; }
.v1eb-copy { font-size: 1.15rem; color: rgba(175,238,238,0.55); text-align: center; padding-top: 1rem; border-top: 1px solid rgba(175,238,238,0.08); }

/* ---------- Bottom navigation (mobile only) ---------- */
.v1eb-bottom-nav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 1000;
  height: 62px;
  background: rgba(10,16,24,0.97);
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(175,238,238,0.18);
  display: flex;
  justify-content: space-around;
  align-items: stretch;
}
.v1eb-nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  color: var(--v1eb-muted);
  font-size: 1.05rem;
  background: transparent;
  border: none;
  cursor: pointer;
  text-decoration: none;
  min-width: 60px;
  min-height: 60px;
  transition: color .15s ease, transform .15s ease;
  position: relative;
}
.v1eb-nav-item .v1eb-ico { font-size: 24px; line-height: 1; }
.v1eb-nav-item .material-icons,
.v1eb-nav-item .bi { font-size: 24px; line-height: 1; }
.v1eb-nav-item:active { transform: scale(0.92); }
.v1eb-nav-item.v1eb-current { color: var(--v1eb-accent); }
.v1eb-nav-item.v1eb-current::after {
  content: "";
  position: absolute;
  top: 0; left: 50%; transform: translateX(-50%);
  width: 26px; height: 3px;
  background: var(--v1eb-accent);
  border-radius: 0 0 3px 3px;
}
.v1eb-nav-promo {
  color: var(--v1eb-accent);
  font-weight: 700;
}

/* ---------- Floating back-to-top ---------- */
.v1eb-to-top {
  position: fixed;
  right: 16px; bottom: 76px;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--v1eb-accent);
  color: #1a1206;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 900;
  box-shadow: var(--v1eb-shadow);
}
.v1eb-to-top.v1eb-visible { display: flex; }

/* ---------- CTA strip ---------- */
.v1eb-cta-strip {
  display: flex;
  gap: 0.7rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}
.v1eb-cta-strip .v1eb-btn { flex: 1 1 auto; }

.v1eb-text-link {
  color: var(--v1eb-accent);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ============================================================
   Responsive tuning — explicit small-screen breakpoint
   ============================================================ */
@media (max-width: 430px) {
  body { font-size: 1.5rem; }
  .v1eb-hero-cta h1 { font-size: 2rem; }
  .v1eb-section-head h2 { font-size: 1.9rem; }
  .v1eb-grid { grid-template-columns: repeat(3, 1fr); gap: 0.7rem; }
  .v1eb-card img { height: 84px; }
  .v1eb-card-name { font-size: 1.05rem; }
  .v1eb-slide img { height: 175px; }
  .v1eb-stats { grid-template-columns: repeat(2, 1fr); }
  .v1eb-pay-grid { grid-template-columns: repeat(3, 1fr); }
  .v1eb-footer-links { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 431px) and (max-width: 768px) {
  .v1eb-grid { grid-template-columns: repeat(4, 1fr); }
}

/* Desktop: hide mobile bottom nav, expand grid, widen layout */
@media (min-width: 769px) {
  .v1eb-bottom-nav { display: none; }
  .v1eb-menu-toggle { display: none; }
  .v1eb-container { padding-bottom: 2rem; }
  :root { --v1eb-max: 960px; }
  .v1eb-grid { grid-template-columns: repeat(6, 1fr); }
  .v1eb-stats { grid-template-columns: repeat(4, 1fr); }
  .v1eb-pay-grid { grid-template-columns: repeat(6, 1fr); }
  .v1eb-footer-links { grid-template-columns: repeat(4, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}
