/* =========================================================
 * sz777 theme stylesheet (theme-4e66.css)
 * All custom classes use the v652- prefix.
 * Palette: #9966CC | #9370DB | #1E1E1E | #C71585
 * Dark = background, light = text.
 * Mobile-first: max content width 430px.
 * =======================================================*/

:root {
  --v652-primary: #9966CC;
  --v652-secondary: #9370DB;
  --v652-bg: #1E1E1E;
  --v652-bg-soft: #262626;
  --v652-bg-card: #2a2330;
  --v652-accent: #C71585;
  --v652-text: #F5F0FF;
  --v652-text-dim: #B9AED0;
  --v652-gold: #FFD86B;
  --v652-border: #3a2f47;
  --v652-radius: 1.2rem;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: var(--v652-bg);
  color: var(--v652-text);
  line-height: 1.5rem;
  font-size: 1.5rem;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

/* ---------- Layout helpers ---------- */
.v652-wrapper {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  position: relative;
}
.v652-container {
  padding: 0 1.4rem;
}
main { padding-bottom: 90px; }

/* ---------- Header ---------- */
.v652-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: linear-gradient(90deg, #1E1E1E 0%, #2a1f33 60%, #1E1E1E 100%);
  border-bottom: 1px solid var(--v652-border);
}
.v652-header-inner {
  max-width: 430px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 1rem;
}
.v652-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--v652-text);
  font-weight: 700;
  font-size: 1.8rem;
  letter-spacing: 0.5px;
}
.v652-brand img { width: 2.8rem; height: 2.8rem; border-radius: 0.6rem; }
.v652-brand-name { background: linear-gradient(90deg, var(--v652-primary), var(--v652-accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }

.v652-header-actions { display: flex; align-items: center; gap: 0.5rem; }
.v652-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border: 0;
  border-radius: 0.9rem;
  padding: 0.7rem 1.2rem;
  font-size: 1.3rem;
  font-weight: 700;
  cursor: pointer;
  min-height: 36px;
  transition: transform .15s ease, box-shadow .15s ease;
}
.v652-btn:hover { transform: translateY(-1px); }
.v652-btn-primary { background: linear-gradient(90deg, var(--v652-accent), var(--v652-primary)); color: #fff; box-shadow: 0 4px 12px rgba(199,21,133,.35); }
.v652-btn-ghost { background: rgba(147,112,219,.15); color: var(--v652-text); border: 1px solid var(--v652-border); }

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

/* ---------- Mobile expandable menu ---------- */
.v652-mobile-menu {
  display: none;
  background: var(--v652-bg-soft);
  border-bottom: 1px solid var(--v652-border);
  padding: 0.6rem 1rem 1rem;
}
.v652-mobile-menu.v652-menu-open { display: block; }
.v652-mobile-menu a {
  display: block;
  padding: 0.9rem 0.6rem;
  border-bottom: 1px dashed var(--v652-border);
  color: var(--v652-text);
  font-size: 1.4rem;
}
.v652-mobile-menu a:last-child { border-bottom: 0; }

/* ---------- Spacer so fixed header doesn't overlap content ---------- */
.v652-header-spacer { height: 58px; }

/* ---------- Hero carousel ---------- */
.v652-carousel {
  position: relative;
  overflow: hidden;
  border-radius: var(--v652-radius);
  margin: 1rem 0;
  box-shadow: 0 8px 22px rgba(0,0,0,.4);
}
.v652-carousel-track {
  display: flex;
  transition: transform .55s ease;
}
.v652-carousel-slide {
  min-width: 100%;
  position: relative;
}
.v652-carousel-slide img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.v652-carousel-caption {
  position: absolute;
  left: 1rem; right: 1rem; bottom: 1rem;
  background: linear-gradient(90deg, rgba(153,102,204,.92), rgba(199,21,133,.85));
  color: #fff;
  padding: 0.7rem 1rem;
  border-radius: 1rem;
  font-weight: 700;
  font-size: 1.35rem;
}
.v652-carousel-dots {
  position: absolute;
  bottom: 0.6rem; left: 0; right: 0;
  display: flex; justify-content: center; gap: 0.5rem;
}
.v652-carousel-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: rgba(255,255,255,.5);
  border: 0; padding: 0; cursor: pointer;
}
.v652-carousel-dot-active { background: var(--v652-gold); width: 18px; border-radius: 5px; }

/* ---------- Section ---------- */
.v652-section {
  margin: 1.8rem 0;
}
.v652-section-title {
  font-size: 1.7rem;
  font-weight: 800;
  margin: 0 0 0.4rem;
  display: flex; align-items: center; gap: 0.6rem;
  color: var(--v652-text);
}
.v652-section-title i { color: var(--v652-accent); font-size: 1.8rem; }
.v652-section-sub { color: var(--v652-text-dim); font-size: 1.3rem; margin-bottom: 1rem; }

.v652-h1 {
  font-size: 2.1rem;
  line-height: 1.35;
  font-weight: 800;
  margin: 0.4rem 0 0.8rem;
  background: linear-gradient(90deg, #fff, var(--v652-secondary));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.v652-text-link { color: var(--v652-accent); font-weight: 700; cursor: pointer; }
.v652-text-link:hover { text-decoration: underline; }
.v652-lead { color: var(--v652-text-dim); font-size: 1.35rem; }

/* ---------- Category chips ---------- */
.v652-cats {
  display: flex; flex-wrap: wrap; gap: 0.5rem;
  margin: 0.4rem 0 1rem;
}
.v652-cat-chip {
  background: var(--v652-bg-soft);
  border: 1px solid var(--v652-border);
  color: var(--v652-text-dim);
  padding: 0.5rem 1rem;
  border-radius: 1rem;
  font-size: 1.25rem;
  cursor: pointer;
}
.v652-cat-chip-active { background: linear-gradient(90deg, var(--v652-primary), var(--v652-accent)); color: #fff; border-color: transparent; }

/* ---------- Game grid ---------- */
.v652-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.7rem;
}
.v652-game-card {
  background: var(--v652-bg-card);
  border: 1px solid var(--v652-border);
  border-radius: 1rem;
  overflow: hidden;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease;
  display: block;
  text-align: center;
}
.v652-game-card:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(199,21,133,.25); }
.v652-game-card img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  background: #000;
}
.v652-game-name {
  font-size: 1.15rem;
  padding: 0.4rem 0.3rem 0.55rem;
  color: var(--v652-text);
  line-height: 1.25rem;
  min-height: 2.6rem;
}

/* ---------- Feature / card blocks ---------- */
.v652-card {
  background: var(--v652-bg-card);
  border: 1px solid var(--v652-border);
  border-radius: var(--v652-radius);
  padding: 1.3rem;
  margin: 0.8rem 0;
}
.v652-card h3 { margin: 0 0 0.5rem; font-size: 1.5rem; color: #fff; }
.v652-card p { margin: 0 0 0.6rem; color: var(--v652-text-dim); font-size: 1.3rem; }

.v652-row { display: flex; gap: 0.7rem; flex-wrap: wrap; }
.v652-pill {
  background: rgba(147,112,219,.12);
  border: 1px solid var(--v652-border);
  border-radius: 1rem;
  padding: 0.6rem 0.9rem;
  font-size: 1.2rem;
  color: var(--v652-text);
  display: inline-flex; align-items: center; gap: 0.4rem;
}

.v652-stat-row { display: flex; justify-content: space-between; padding: 0.5rem 0; border-bottom: 1px dashed var(--v652-border); font-size: 1.3rem; }
.v652-stat-row:last-child { border-bottom: 0; }
.v652-stat-row strong { color: var(--v652-gold); }

.v652-cta-banner {
  background: linear-gradient(90deg, var(--v652-primary), var(--v652-accent));
  color: #fff;
  padding: 1.4rem;
  border-radius: var(--v652-radius);
  text-align: center;
  margin: 1.2rem 0;
  box-shadow: 0 8px 20px rgba(199,21,133,.35);
}
.v652-cta-banner h3 { margin: 0 0 0.4rem; font-size: 1.7rem; }
.v652-cta-banner p { margin: 0 0 0.9rem; font-size: 1.3rem; opacity: .92; }

/* ---------- Testimonials ---------- */
.v652-testimonial {
  background: var(--v652-bg-card);
  border-left: 3px solid var(--v652-accent);
  padding: 1rem 1.1rem;
  border-radius: 0.8rem;
  margin: 0.6rem 0;
  font-size: 1.3rem;
  color: var(--v652-text);
}
.v652-testimonial span { display: block; margin-top: 0.4rem; color: var(--v652-text-dim); font-size: 1.15rem; }

/* ---------- Winners list ---------- */
.v652-winner {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0.55rem 0; border-bottom: 1px dashed var(--v652-border); font-size: 1.3rem;
}
.v652-winner:last-child { border-bottom: 0; }
.v652-winner .amt { color: var(--v652-gold); font-weight: 700; }

/* ---------- Payment / app strip ---------- */
.v652-icon-strip { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.v652-icon-strip .v652-pill { background: rgba(255,255,255,.06); }

/* ---------- FAQ ---------- */
.v652-faq { margin: 0.5rem 0; }
.v652-faq h4 { margin: 0.9rem 0 0.3rem; font-size: 1.4rem; color: #fff; }
.v652-faq p { margin: 0; color: var(--v652-text-dim); font-size: 1.3rem; }

/* ---------- Footer ---------- */
.v652-footer {
  background: #161616;
  border-top: 1px solid var(--v652-border);
  padding: 1.6rem 1.4rem 2.4rem;
  color: var(--v652-text-dim);
  font-size: 1.25rem;
}
.v652-footer h4 { color: #fff; font-size: 1.4rem; margin: 1rem 0 0.5rem; }
.v652-footer-links { display: flex; flex-wrap: wrap; gap: 0.6rem 1.2rem; }
.v652-footer-links a { color: var(--v652-text-dim); font-size: 1.2rem; }
.v652-footer-links a:hover { color: var(--v652-accent); }
.v652-footer-brand { margin-bottom: 1rem; color: var(--v652-text-dim); }
.v652-promo-row { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 0.8rem 0; }
.v652-promo-row .v652-btn { font-size: 1.2rem; padding: 0.6rem 1rem; }
.v652-copyright { margin-top: 1rem; font-size: 1.15rem; color: #6b6276; }

/* ---------- Mobile bottom nav ---------- */
.v652-bottomnav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: 62px;
  background: linear-gradient(180deg, #241b2e, #1E1E1E);
  border-top: 1px solid var(--v652-border);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
  box-shadow: 0 -4px 18px rgba(0,0,0,.4);
}
.v652-bottomnav-btn {
  background: transparent;
  border: 0;
  color: var(--v652-text-dim);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  min-height: 60px;
  font-size: 1.1rem;
  gap: 0.2rem;
  cursor: pointer;
  transition: color .15s ease, transform .15s ease;
  text-decoration: none;
  padding: 0;
}
.v652-bottomnav-btn:hover { transform: translateY(-1px); color: var(--v652-text); }
.v652-bottomnav-btn .v652-ico { font-size: 2.2rem; line-height: 1; }
.v652-bottomnav-btn .material-icons,
.v652-bottomnav-btn .ion { font-size: 2.2rem; }
.v652-bottomnav-active { color: var(--v652-accent); }
.v652-bottomnav-center {
  position: relative;
  background: linear-gradient(135deg, var(--v652-accent), var(--v652-primary));
  width: 50px; height: 50px;
  border-radius: 50%;
  align-items: center; justify-content: center;
  margin-top: -22px;
  box-shadow: 0 4px 14px rgba(199,21,133,.5);
  color: #fff;
}
.v652-bottomnav-center .v652-ico { font-size: 2.4rem; color: #fff; }
.v652-bottomnav-badge {
  position: absolute;
  top: 4px; right: 8px;
  background: var(--v652-gold);
  color: #1E1E1E;
  border-radius: 50%;
  min-width: 16px; height: 16px;
  font-size: 1rem;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
}

/* ---------- Desktop ---------- */
@media (min-width: 769px) {
  .v652-bottomnav { display: none; }
  main { padding-bottom: 2rem; }
  .v652-wrapper { max-width: 430px; }
}
@media (max-width: 768px) {
  .v652-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 360px) {
  .v652-grid { grid-template-columns: repeat(2, 1fr); }
}
