/* 789bet111 core stylesheet - mobile-first gaming site */
/* All custom classes use the v339- prefix */

:root {
  --v339-primary: #B03060;
  --v339-accent: #DC143C;
  --v339-red: #FF0000;
  --v339-light: #E0F2F1;
  --v339-bg: #0D1117;
  --v339-bg2: #161B22;
  --v339-bg3: #1F2733;
  --v339-text: #E0F2F1;
  --v339-muted: #8A95A5;
  --v339-gold: #FFD24A;
  --v339-radius: 10px;
  --v339-shadow: 0 4px 14px rgba(0, 0, 0, 0.45);
}

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

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

body {
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  background: var(--v339-bg);
  color: var(--v339-text);
  line-height: 1.5rem;
  font-size: 1.4rem;
  max-width: 430px;
  margin: 0 auto;
  min-height: 100vh;
  overflow-x: hidden;
}

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

/* ---------- Layout ---------- */
.v339-container { width: 100%; padding: 0 1.2rem; }
.v339-wrapper { max-width: 430px; margin: 0 auto; padding-bottom: 8rem; }
.v339-section { padding: 2rem 1.2rem; }
.v339-section-alt { background: var(--v339-bg2); }

/* ---------- Header ---------- */
.v339-header {
  position: fixed;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  background: linear-gradient(90deg, #0D1117 0%, #2a0a18 60%, #0D1117 100%);
  border-bottom: 1px solid rgba(176, 48, 96, 0.4);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 0.9rem;
  height: 5.2rem;
}
.v339-brand { display: flex; align-items: center; gap: 0.6rem; }
.v339-logo { width: 2.8rem; height: 2.8rem; border-radius: 6px; }
.v339-brand-name {
  font-size: 1.7rem; font-weight: 800; color: var(--v339-gold);
  letter-spacing: 0.3px;
}
.v339-brand-name span { color: var(--v339-accent); }
.v339-header-actions { display: flex; align-items: center; gap: 0.5rem; }
.v339-menu-btn {
  background: transparent; border: 0; color: var(--v339-light);
  font-size: 2rem; cursor: pointer; padding: 0.4rem 0.6rem; line-height: 1;
}
.v339-btn {
  border: 0; border-radius: 8px; padding: 0.7rem 1.2rem;
  font-size: 1.3rem; font-weight: 700; cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  min-height: 4rem; display: inline-flex; align-items: center; justify-content: center;
}
.v339-btn:active { transform: scale(0.96); }
.v339-btn-login {
  background: transparent; color: var(--v339-light);
  border: 1px solid var(--v339-primary);
}
.v339-btn-register {
  background: linear-gradient(90deg, var(--v339-accent), var(--v339-red));
  color: #fff; box-shadow: var(--v339-shadow);
}

/* ---------- Mobile expandable menu ---------- */
.v339-mobile-menu {
  position: fixed; top: 5.2rem; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 430px;
  background: var(--v339-bg2);
  border-bottom: 1px solid rgba(176, 48, 96, 0.4);
  max-height: 0; overflow: hidden;
  transition: max-height 0.3s ease;
  z-index: 999;
}
.v339-mobile-menu.v339-menu-open { max-height: 30rem; }
.v339-mobile-menu ul { list-style: none; padding: 0.6rem 1.2rem; }
.v339-mobile-menu li a {
  display: block; padding: 1rem 0.4rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  color: var(--v339-light); font-size: 1.4rem;
}
.v339-mobile-menu li a:active { color: var(--v339-gold); }

/* ---------- Hero / Carousel ---------- */
.v339-carousel {
  position: relative; margin-top: 5.2rem;
  width: 100%; overflow: hidden;
  border-radius: 0 0 14px 14px;
}
.v339-carousel-track { position: relative; width: 100%; height: 18rem; }
.v339-carousel-slide {
  position: absolute; inset: 0; opacity: 0;
  transition: opacity 0.6s ease; cursor: pointer;
}
.v339-carousel-slide.v339-slide-active { opacity: 1; }
.v339-carousel-slide img { width: 100%; height: 100%; object-fit: cover; }
.v339-carousel-overlay {
  position: absolute; left: 1rem; bottom: 1.2rem; right: 1rem;
  background: rgba(13,17,23,0.55); padding: 0.6rem 0.9rem; border-radius: 8px;
}
.v339-carousel-overlay h2 { font-size: 1.5rem; color: var(--v339-gold); }
.v339-carousel-overlay p { font-size: 1.2rem; color: var(--v339-light); }
.v339-carousel-dots {
  position: absolute; bottom: 0.6rem; left: 50%; transform: translateX(-50%);
  display: flex; gap: 0.4rem;
}
.v339-carousel-dot {
  width: 0.8rem; height: 0.8rem; border-radius: 50%;
  background: rgba(255,255,255,0.4); cursor: pointer;
}
.v339-carousel-dot.v339-dot-active { background: var(--v339-gold); }

/* ---------- Headings ---------- */
.v339-h1 {
  font-size: 2rem; font-weight: 800; color: var(--v339-gold);
  padding: 1.4rem 1.2rem 0.4rem; line-height: 1.3;
}
.v339-h2 {
  font-size: 1.7rem; font-weight: 700; color: var(--v339-light);
  margin: 1.6rem 0 0.8rem; padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--v339-primary);
}
.v339-h3 {
  font-size: 1.4rem; font-weight: 700; color: var(--v339-gold);
  margin: 1.2rem 0 0.5rem;
}
.v339-lead { padding: 0 1.2rem; color: var(--v339-muted); font-size: 1.3rem; }

/* ---------- Game grid ---------- */
.v339-grid {
  display: grid; gap: 0.8rem;
  grid-template-columns: repeat(3, 1fr);
  padding: 0.4rem 0;
}
.v339-grid-4 { grid-template-columns: repeat(4, 1fr); }
.v339-game-item {
  background: var(--v339-bg2); border-radius: var(--v339-radius);
  overflow: hidden; cursor: pointer; text-align: center;
  border: 1px solid rgba(255,255,255,0.05);
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.v339-game-item:active {
  transform: scale(0.96); border-color: var(--v339-primary);
}
.v339-game-item img {
  width: 100%; aspect-ratio: 1 / 1; object-fit: cover;
  background: #000;
}
.v339-game-item span {
  display: block; font-size: 1.05rem; padding: 0.4rem 0.3rem 0.5rem;
  color: var(--v339-light); white-space: nowrap; overflow: hidden;
  text-overflow: ellipsis;
}

/* ---------- Cards / generic ---------- */
.v339-card {
  background: var(--v339-bg2); border-radius: var(--v339-radius);
  padding: 1.2rem; margin-bottom: 1rem; box-shadow: var(--v339-shadow);
  border: 1px solid rgba(176,48,96,0.15);
}
.v339-card-title { color: var(--v339-gold); font-weight: 700; margin-bottom: 0.4rem; }
.v339-card p { color: var(--v339-muted); font-size: 1.25rem; }
.v339-card p a { color: var(--v339-light); text-decoration: underline; }

/* ---------- CTA / Promo text links ---------- */
.v339-cta { text-align: center; padding: 1.6rem 1.2rem; }
.v339-cta .v339-btn { padding: 1rem 2.4rem; font-size: 1.5rem; }
.v339-link {
  color: var(--v339-accent); font-weight: 700; text-decoration: underline;
  cursor: pointer;
}

/* ---------- Testimonials ---------- */
.v339-testimonial {
  background: var(--v339-bg3); border-left: 3px solid var(--v339-gold);
  padding: 0.9rem 1rem; border-radius: 6px; margin-bottom: 0.8rem;
}
.v339-testimonial .v339-stars { color: var(--v339-gold); font-size: 1.2rem; }
.v339-testimonial p { font-size: 1.25rem; margin: 0.3rem 0; }
.v339-testimonial cite { color: var(--v339-muted); font-style: normal; font-size: 1.1rem; }

/* ---------- Payment / winners ---------- */
.v339-chips { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.v339-chip {
  background: var(--v339-bg3); border: 1px solid rgba(176,48,96,0.3);
  border-radius: 20px; padding: 0.5rem 1rem; font-size: 1.2rem;
  color: var(--v339-light); display: inline-flex; align-items: center; gap: 0.4rem;
}
.v339-winner {
  display: flex; justify-content: space-between; align-items: center;
  background: var(--v339-bg3); padding: 0.6rem 0.9rem; border-radius: 6px;
  margin-bottom: 0.5rem; font-size: 1.2rem;
}
.v339-winner b { color: var(--v339-gold); }

/* ---------- Footer ---------- */
.v339-footer {
  background: #070A0F; padding: 2rem 1.2rem 1rem;
  border-top: 1px solid rgba(176,48,96,0.3);
}
.v339-footer p { color: var(--v339-muted); font-size: 1.2rem; margin-bottom: 0.6rem; }
.v339-footer-links {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.4rem 1rem;
  margin: 0.8rem 0;
}
.v339-footer-links a { color: var(--v339-light); font-size: 1.15rem; padding: 0.3rem 0; }
.v339-footer-links a:active { color: var(--v339-gold); }
.v339-footer-promo { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0.8rem 0; }
.v339-footer-promo .v339-btn { padding: 0.6rem 1rem; font-size: 1.2rem; }
.v339-copyright {
  text-align: center; color: var(--v339-muted); font-size: 1.1rem;
  padding-top: 1rem; border-top: 1px solid rgba(255,255,255,0.05);
}

/* ---------- Bottom navigation ---------- */
.v339-bottomnav {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 430px; height: 6rem;
  background: linear-gradient(180deg, #161B22 0%, #0D1117 100%);
  border-top: 1px solid rgba(176,48,96,0.4);
  display: flex; justify-content: space-around; align-items: center;
  z-index: 1000; padding: 0.3rem 0;
}
.v339-bottomnav-btn {
  background: transparent; border: 0; color: var(--v339-muted);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-width: 6rem; min-height: 5.6rem; cursor: pointer;
  font-size: 1.05rem; gap: 0.2rem; transition: color 0.15s ease, transform 0.15s ease;
}
.v339-bottomnav-btn .material-icons,
.v339-bottomnav-btn .ion-icon,
.v339-bottomnav-btn i { font-size: 2.2rem; line-height: 1; }
.v339-bottomnav-btn span.label { font-size: 1.05rem; }
.v339-bottomnav-btn.v339-nav-active { color: var(--v339-gold); }
.v339-bottomnav-btn:active { transform: scale(0.9); color: var(--v339-accent); }
.v339-bottomnav-btn.v339-nav-tap { color: var(--v339-accent); }
.v339-nav-badge {
  position: absolute; top: 0.2rem; right: 1.4rem;
  background: var(--v339-red); color: #fff; font-size: 0.9rem;
  border-radius: 50%; width: 1.5rem; height: 1.5rem;
  display: flex; align-items: center; justify-content: center; font-weight: 700;
}

/* ---------- Desktop ---------- */
@media (min-width: 769px) {
  body { max-width: 430px; }
  .v339-bottomnav { display: none; }
  .v339-wrapper { padding-bottom: 2rem; }
}
@media (max-width: 768px) {
  .v339-wrapper { padding-bottom: 8rem; }
}
