/* ============================================================
   tt88 code - Core Stylesheet (prefix: ve89-)
   Mobile-first HTML5 casino layout, max-width 430px
   Palette: #9AFF9A | #2C3E50 | #FFD700 | #FFB74D | #7CFC00
   ============================================================ */

:root {
  --ve89-primary: #7CFC00;
  --ve89-accent: #9AFF9A;
  --ve89-gold: #FFD700;
  --ve89-orange: #FFB74D;
  --ve89-bg: #2C3E50;
  --ve89-bg-deep: #1d2b3a;
  --ve89-bg-card: #34495e;
  --ve89-text: #f5fff5;
  --ve89-text-muted: #c7d6c7;
  --ve89-line: rgba(154, 255, 154, 0.18);
  --ve89-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
  --ve89-radius: 12px;
}

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

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

body {
  font-family: "Be Vietnam Pro", "Segoe UI", Roboto, system-ui, sans-serif;
  background: var(--ve89-bg);
  color: var(--ve89-text);
  line-height: 1.5rem;
  font-size: 1.4rem;
  max-width: 430px;
  margin: 0 auto;
  position: relative;
  overflow-x: hidden;
}

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

.ve89-container { width: 100%; padding: 0 12px; }
.ve89-wrapper { max-width: 430px; margin: 0 auto; padding: 0 12px; }

/* ===================== Header ===================== */
.ve89-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: linear-gradient(135deg, #1d2b3a 0%, #2C3E50 60%, #243a27 100%);
  border-bottom: 2px solid var(--ve89-primary);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
}
.ve89-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  gap: 8px;
}
.ve89-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 1.8rem;
  color: var(--ve89-gold);
  letter-spacing: 0.5px;
}
.ve89-logo img { width: 30px; height: 30px; border-radius: 6px; }
.ve89-logo span { color: var(--ve89-accent); }

.ve89-header-actions { display: flex; align-items: center; gap: 6px; }
.ve89-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: none;
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 1.25rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  min-height: 34px;
  line-height: 1;
}
.ve89-btn:active { transform: scale(0.96); }
.ve89-btn-login {
  background: transparent;
  color: var(--ve89-accent);
  border: 1.5px solid var(--ve89-accent);
}
.ve89-btn-register {
  background: linear-gradient(135deg, var(--ve89-gold), var(--ve89-orange));
  color: #2C3E50;
  box-shadow: 0 3px 10px rgba(255, 215, 0, 0.35);
}
.ve89-menu-btn {
  background: transparent;
  border: none;
  color: var(--ve89-accent);
  font-size: 2rem;
  cursor: pointer;
  padding: 4px 6px;
  min-width: 36px;
  min-height: 36px;
}

/* ===================== Mobile expandable nav ===================== */
.ve89-nav {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.32s ease;
  background: var(--ve89-bg-deep);
  border-top: 1px solid var(--ve89-line);
}
.ve89-nav.open { max-height: 480px; }
.ve89-nav-list {
  list-style: none;
  padding: 6px 12px 12px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}
.ve89-nav-list a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px;
  border-radius: 8px;
  font-size: 1.25rem;
  color: var(--ve89-text);
  background: rgba(154, 255, 154, 0.06);
  border: 1px solid var(--ve89-line);
}
.ve89-nav-list a i { color: var(--ve89-gold); font-size: 1.4rem; }

/* ===================== Hero / Carousel ===================== */
.ve89-hero { padding: 10px 0 4px; }
.ve89-carousel {
  position: relative;
  border-radius: var(--ve89-radius);
  overflow: hidden;
  box-shadow: var(--ve89-shadow);
  aspect-ratio: 16 / 7;
}
.ve89-slides { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.ve89-slides::-webkit-scrollbar { display: none; }
.ve89-slide {
  flex: 0 0 100%;
  scroll-snap-align: center;
  position: relative;
}
.ve89-slide img { width: 100%; height: 100%; object-fit: cover; }
.ve89-slide-cta {
  position: absolute;
  right: 12px;
  bottom: 12px;
  background: linear-gradient(135deg, var(--ve89-gold), var(--ve89-orange));
  color: #2C3E50;
  font-weight: 700;
  font-size: 1.2rem;
  padding: 6px 12px;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3);
}
.ve89-carousel-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  padding: 6px 0 2px;
}
.ve89-carousel-dots span {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(154, 255, 154, 0.3);
}
.ve89-carousel-dots span.active { background: var(--ve89-gold); }

/* ===================== Section heads ===================== */
.ve89-section { padding: 18px 0 6px; }
.ve89-section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--ve89-gold);
  margin-bottom: 10px;
  border-left: 4px solid var(--ve89-primary);
  padding-left: 10px;
}
.ve89-section-title i { color: var(--ve89-primary); }
.ve89-section-sub {
  font-size: 1.2rem;
  color: var(--ve89-text-muted);
  margin: -4px 0 10px 14px;
}

/* ===================== Game grid ===================== */
.ve89-game-section { padding-top: 6px; }
.ve89-game-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.ve89-card {
  background: var(--ve89-bg-card);
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--ve89-line);
  position: relative;
  transition: transform 0.15s ease;
  cursor: pointer;
}
.ve89-card:active { transform: scale(0.97); }
.ve89-card-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: #152029;
}
.ve89-card-name {
  padding: 6px 6px 7px;
  font-size: 1.1rem;
  text-align: center;
  color: var(--ve89-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ve89-card-hot {
  position: absolute;
  top: 4px; left: 4px;
  background: linear-gradient(135deg, #ff5e62, #ff9966);
  color: #fff;
  font-size: 0.9rem;
  padding: 2px 6px;
  border-radius: 6px;
  font-weight: 700;
}
.ve89-cat-tag {
  display: inline-block;
  font-size: 1.05rem;
  font-weight: 700;
  color: #2C3E50;
  background: var(--ve89-accent);
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
  margin-left: 14px;
}

/* ===================== Promo CTA blocks ===================== */
.ve89-cta-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 6px 0 12px;
}
.ve89-cta {
  border-radius: 10px;
  padding: 14px 10px;
  text-align: center;
  color: #2C3E50;
  cursor: pointer;
  box-shadow: var(--ve89-shadow);
}
.ve89-cta h3 { font-size: 1.4rem; margin-bottom: 4px; }
.ve89-cta p { font-size: 1.1rem; opacity: 0.85; }
.ve89-cta-gold { background: linear-gradient(135deg, var(--ve89-gold), var(--ve89-orange)); }
.ve89-cta-lime { background: linear-gradient(135deg, var(--ve89-primary), var(--ve89-accent)); }

/* ===================== Text modules ===================== */
.ve89-prose {
  background: var(--ve89-bg-deep);
  border-radius: var(--ve89-radius);
  padding: 14px;
  border: 1px solid var(--ve89-line);
}
.ve89-prose h2 {
  color: var(--ve89-gold);
  font-size: 1.55rem;
  margin-bottom: 8px;
}
.ve89-prose h3 {
  color: var(--ve89-accent);
  font-size: 1.3rem;
  margin: 12px 0 6px;
}
.ve89-prose p {
  color: var(--ve89-text-muted);
  margin-bottom: 8px;
  font-size: 1.25rem;
  line-height: 1.65rem;
}
.ve89-prose a {
  color: var(--ve89-gold);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.ve89-prose ul { padding-left: 18px; color: var(--ve89-text-muted); }
.ve89-prose li { margin-bottom: 4px; font-size: 1.2rem; }

.ve89-feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.ve89-feature {
  background: var(--ve89-bg-card);
  border-radius: 10px;
  padding: 12px;
  border-left: 3px solid var(--ve89-primary);
}
.ve89-feature i { color: var(--ve89-gold); font-size: 1.8rem; }
.ve89-feature h3 { color: var(--ve89-accent); font-size: 1.25rem; margin: 4px 0; }
.ve89-feature p { color: var(--ve89-text-muted); font-size: 1.1rem; line-height: 1.5rem; }

/* Testimonial & winners */
.ve89-testimonial, .ve89-winner {
  background: var(--ve89-bg-card);
  border-radius: 10px;
  padding: 12px;
  margin-bottom: 8px;
  border: 1px solid var(--ve89-line);
}
.ve89-testimonial .ve89-stars { color: var(--ve89-gold); font-size: 1.1rem; }
.ve89-testimonial p { font-size: 1.2rem; color: var(--ve89-text); margin: 4px 0; }
.ve89-testimonial strong { color: var(--ve89-accent); }
.ve89-winner { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.ve89-winner .ve89-amount { color: var(--ve89-gold); font-weight: 800; }

/* Payment methods */
.ve89-pay-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.ve89-pay-grid .ve89-pay {
  background: var(--ve89-bg-card);
  border-radius: 8px;
  padding: 8px 12px;
  border: 1px solid var(--ve89-line);
  font-size: 1.15rem;
  color: var(--ve89-accent);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* App download CTA */
.ve89-app-cta {
  background: linear-gradient(135deg, #243a27, #1d2b3a);
  border: 1px solid var(--ve89-primary);
  border-radius: var(--ve89-radius);
  padding: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.ve89-app-cta img { width: 76px; height: 76px; border-radius: 12px; }
.ve89-app-cta h3 { color: var(--ve89-gold); font-size: 1.4rem; }
.ve89-app-cta p { color: var(--ve89-text-muted); font-size: 1.1rem; margin: 2px 0 6px; }

/* ===================== Footer ===================== */
.ve89-footer {
  background: var(--ve89-bg-deep);
  padding: 20px 12px 24px;
  border-top: 2px solid var(--ve89-primary);
  margin-top: 20px;
}
.ve89-footer p { color: var(--ve89-text-muted); font-size: 1.15rem; margin-bottom: 8px; }
.ve89-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  margin: 10px 0;
}
.ve89-footer-links a {
  color: var(--ve89-accent);
  font-size: 1.15rem;
  text-decoration: underline;
}
.ve89-footer-btns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 10px 0;
}
.ve89-footer-copy {
  margin-top: 10px;
  font-size: 1.05rem;
  color: var(--ve89-text-muted);
  text-align: center;
}

/* ===================== Mobile bottom nav ===================== */
.ve89-bottom-nav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  max-width: 430px;
  margin: 0 auto;
  height: 62px;
  background: linear-gradient(180deg, #243a27 0%, #1d2b3a 100%);
  border-top: 2px solid var(--ve89-primary);
  display: flex;
  justify-content: space-around;
  align-items: stretch;
  z-index: 1000;
  box-shadow: 0 -3px 14px rgba(0, 0, 0, 0.45);
}
.ve89-bottom-nav a, .ve89-bottom-nav button {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-width: 60px;
  min-height: 60px;
  background: transparent;
  border: none;
  color: var(--ve89-text-muted);
  font-size: 1rem;
  cursor: pointer;
  transition: color 0.2s ease, transform 0.2s ease;
  text-decoration: none;
}
.ve89-bottom-nav a:active, .ve89-bottom-nav button:active { transform: scale(0.92); }
.ve89-bottom-nav .material-icons,
.ve89-bottom-nav i { font-size: 22px; color: var(--ve89-accent); }
.ve89-bottom-nav a.active i, .ve89-bottom-nav button.active i { color: var(--ve89-gold); }
.ve89-bottom-nav a.active, .ve89-bottom-nav button.active { color: var(--ve89-gold); }

/* Desktop: hide bottom nav, widen layout */
@media (min-width: 769px) {
  body { max-width: 960px; }
  .ve89-bottom-nav { display: none; }
  main.ve89-main { padding-bottom: 30px !important; }
}

/* Mobile: reserve space for fixed bottom nav */
@media (max-width: 768px) {
  main.ve89-main { padding-bottom: 80px; }
}

.ve89-visually-hidden {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0);
}
