/* ============================================================
   ADC8 - Core Stylesheet (basefiles)
   Prefix: v781-  | Mobile-first | Max 430px viewport
   Palette: #2E4057 (dark) | #006400 (green) | accents gold
   ============================================================ */

:root {
  --v781-primary: #006400;
  --v781-primary-dark: #004d00;
  --v781-bg: #2E4057;
  --v781-bg-deep: #1d2b3a;
  --v781-bg-soft: #3a5168;
  --v781-text: #f4f7fb;
  --v781-text-muted: #b9c6d6;
  --v781-gold: #f5c542;
  --v781-gold-soft: #ffe08a;
  --v781-red: #e23b3b;
  --v781-card: #34495e;
  --v781-card-2: #2c4053;
  --v781-border: rgba(255,255,255,0.08);
  --v781-shadow: 0 6px 18px rgba(0,0,0,0.35);
  --v781-radius: 14px;
}

* { 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: linear-gradient(180deg, var(--v781-bg-deep) 0%, var(--v781-bg) 35%, var(--v781-bg-deep) 100%);
  color: var(--v781-text);
  line-height: 1.5rem;
  font-size: 1.5rem;
  min-height: 100vh;
  overflow-x: hidden;
}

body.v781-no-scroll { overflow: hidden; }

a { color: var(--v781-gold-soft); text-decoration: none; }
a:hover { color: var(--v781-gold); }
img { max-width: 100%; display: block; }

.v781-hidden { display: none !important; }

/* ---------- Container ---------- */
.v781-container {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1.2rem;
}

main { padding-bottom: 84px; }

/* ---------- Header ---------- */
.v781-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: linear-gradient(90deg, var(--v781-bg-deep), var(--v781-bg) 60%, var(--v781-primary-dark));
  border-bottom: 2px solid var(--v781-primary);
  box-shadow: 0 2px 12px rgba(0,0,0,0.4);
}
.v781-header-inner {
  max-width: 430px;
  margin: 0 auto;
  padding: 0.6rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}
.v781-logo {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex: 1;
  min-width: 0;
}
.v781-logo img { width: 30px; height: 30px; border-radius: 8px; }
.v781-logo-text {
  font-weight: 800;
  font-size: 1.9rem;
  letter-spacing: 0.5px;
  color: var(--v781-gold);
  text-shadow: 0 1px 2px rgba(0,0,0,0.4);
}
.v781-logo-text span { color: var(--v781-text); }

.v781-header-actions { display: flex; gap: 0.5rem; align-items: center; }

.v781-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: none;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1.3rem;
  padding: 0.7rem 1.2rem;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
  min-height: 38px;
  line-height: 1;
  font-family: inherit;
}
.v781-btn:hover { transform: translateY(-1px); filter: brightness(1.08); }
.v781-btn:active { transform: translateY(0) scale(0.97); }
.v781-btn-primary {
  background: linear-gradient(135deg, var(--v781-gold), #e3a81e);
  color: #3a2700;
  box-shadow: 0 4px 10px rgba(245,197,66,0.35);
}
.v781-btn-ghost {
  background: transparent;
  color: var(--v781-text);
  border: 1.5px solid rgba(255,255,255,0.35);
}
.v781-btn-green {
  background: linear-gradient(135deg, var(--v781-primary), #0a8a1a);
  color: #fff;
  box-shadow: 0 4px 10px rgba(0,100,0,0.4);
}
.v781-btn-block { width: 100%; padding: 1rem; font-size: 1.5rem; }

#v781-menu-btn {
  background: transparent;
  border: none;
  color: var(--v781-text);
  font-size: 2rem;
  width: 40px; height: 40px;
  border-radius: 10px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
#v781-menu-btn:hover { background: rgba(255,255,255,0.08); }

/* ---------- Mobile slide-down menu ---------- */
.v781-mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0;
  background: var(--v781-bg-deep);
  border-bottom: 2px solid var(--v781-primary);
  padding: 6rem 1.2rem 1.6rem;
  transform: translateY(-110%);
  transition: transform .28s ease;
  z-index: 9999;
  max-height: 100vh;
  overflow-y: auto;
  box-shadow: 0 12px 30px rgba(0,0,0,0.5);
}
.v781-mobile-menu.v781-menu-open { transform: translateY(0); }
.v781-mobile-menu h4 {
  color: var(--v781-gold);
  font-size: 1.3rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 1rem 0 0.5rem;
}
.v781-mobile-menu a {
  display: block;
  padding: 0.85rem 0.8rem;
  color: var(--v781-text);
  border-bottom: 1px solid var(--v781-border);
  font-size: 1.4rem;
  border-radius: 8px;
}
.v781-mobile-menu a:hover { background: rgba(0,100,0,0.18); color: var(--v781-gold-soft); }
.v781-menu-close {
  position: absolute;
  top: 1rem; right: 1rem;
  background: var(--v781-red);
  color: #fff;
  border: none;
  width: 34px; height: 34px;
  border-radius: 50%;
  font-size: 1.6rem;
  cursor: pointer;
}

/* ---------- Section / headings ---------- */
.v781-section { padding: 2rem 0 0.5rem; }
.v781-section-head {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1rem;
}
.v781-section-head .v781-bar {
  width: 4px; height: 2rem;
  background: linear-gradient(var(--v781-gold), var(--v781-primary));
  border-radius: 4px;
}
.v781-section-head h2 {
  font-size: 1.8rem;
  color: var(--v781-gold);
  font-weight: 800;
}
.v781-section-head p { color: var(--v781-text-muted); font-size: 1.3rem; }

main { padding-top: 6rem; }

/* ---------- Hero carousel ---------- */
.v781-hero {
  position: relative;
  border-radius: var(--v781-radius);
  overflow: hidden;
  box-shadow: var(--v781-shadow);
  margin-top: 0.6rem;
}
.v781-hero-slide {
  position: relative;
  display: none;
  cursor: pointer;
}
.v781-hero-slide.v781-hero-slide-active { display: block; }
.v781-hero-slide img { width: 100%; height: 180px; object-fit: cover; }
.v781-hero-caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 1rem 1.2rem 1.4rem;
  background: linear-gradient(0deg, rgba(0,0,0,0.85), transparent);
}
.v781-hero-caption h3 { color: var(--v781-gold); font-size: 1.7rem; margin-bottom: 0.3rem; }
.v781-hero-caption p { color: var(--v781-text); font-size: 1.25rem; }
.v781-hero-dots {
  position: absolute;
  bottom: 0.6rem; right: 0.8rem;
  display: flex; gap: 0.4rem;
}
.v781-hero-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
}
.v781-hero-dot.v781-hero-dot-active { background: var(--v781-gold); }

/* ---------- Category chips ---------- */
.v781-cat-chips {
  display: flex;
  gap: 0.6rem;
  overflow-x: auto;
  padding: 0.5rem 0 1rem;
  -webkit-overflow-scrolling: touch;
}
.v781-cat-chips::-webkit-scrollbar { display: none; }
.v781-cat-chip {
  flex: 0 0 auto;
  padding: 0.55rem 1.1rem;
  background: var(--v781-card);
  color: var(--v781-text);
  border-radius: 999px;
  font-size: 1.25rem;
  font-weight: 600;
  border: 1px solid var(--v781-border);
  cursor: pointer;
  white-space: nowrap;
}
.v781-cat-chip.v781-cat-chip-active {
  background: linear-gradient(135deg, var(--v781-primary), #0a8a1a);
  color: #fff;
  border-color: var(--v781-gold);
}

/* ---------- Game grid ---------- */
.v781-game-section h3 {
  font-size: 1.5rem;
  color: var(--v781-text);
  margin: 1.2rem 0 0.8rem;
  display: flex; align-items: center; gap: 0.5rem;
}
.v781-game-section h3 i { color: var(--v781-gold); }
.v781-game-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.7rem;
}
.v781-game-card {
  background: var(--v781-card);
  border-radius: 12px;
  padding: 0.5rem;
  text-align: center;
  cursor: pointer;
  border: 1px solid var(--v781-border);
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s;
  overflow: hidden;
}
.v781-game-card:hover {
  transform: translateY(-2px);
  border-color: var(--v781-gold);
  box-shadow: 0 6px 14px rgba(0,0,0,0.4);
}
.v781-game-card img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 0.4rem;
}
.v781-game-card .v781-game-name {
  font-size: 1.1rem;
  color: var(--v781-text);
  line-height: 1.25;
  height: 2.8em;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

/* ---------- Info / content cards ---------- */
.v781-card {
  background: var(--v781-card);
  border: 1px solid var(--v781-border);
  border-radius: var(--v781-radius);
  padding: 1.3rem;
  margin-bottom: 1rem;
  box-shadow: var(--v781-shadow);
}
.v781-card h3 { color: var(--v781-gold); font-size: 1.55rem; margin-bottom: 0.6rem; }
.v781-card p { color: var(--v781-text-muted); margin-bottom: 0.6rem; font-size: 1.35rem; }
.v781-card ul { padding-left: 1.4rem; color: var(--v781-text-muted); }
.v781-card li { margin-bottom: 0.4rem; font-size: 1.3rem; }

.v781-text-link {
  color: var(--v781-gold);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.v781-text-link:hover { color: var(--v781-gold-soft); }

/* ---------- Feature / stat grid ---------- */
.v781-feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.7rem;
}
.v781-feature {
  background: var(--v781-card-2);
  border-radius: 10px;
  padding: 1rem;
  text-align: center;
  border: 1px solid var(--v781-border);
}
.v781-feature i { font-size: 2.2rem; color: var(--v781-gold); margin-bottom: 0.4rem; }
.v781-feature h4 { font-size: 1.3rem; color: var(--v781-text); margin-bottom: 0.25rem; }
.v781-feature p { font-size: 1.15rem; color: var(--v781-text-muted); }

.v781-stat-row {
  display: flex; gap: 0.6rem; flex-wrap: wrap;
}
.v781-stat {
  flex: 1 1 30%;
  background: var(--v781-card-2);
  border-radius: 10px;
  padding: 0.8rem;
  text-align: center;
  border: 1px solid var(--v781-border);
}
.v781-stat .num { display: block; font-size: 1.8rem; font-weight: 800; color: var(--v781-gold); }
.v781-stat .lbl { font-size: 1.1rem; color: var(--v781-text-muted); }

/* ---------- Testimonial ---------- */
.v781-testi {
  background: var(--v781-card-2);
  border-left: 3px solid var(--v781-gold);
  border-radius: 8px;
  padding: 0.9rem 1rem;
  margin-bottom: 0.7rem;
}
.v781-testi p { font-size: 1.25rem; color: var(--v781-text); font-style: italic; }
.v781-testi .who { font-size: 1.1rem; color: var(--v781-gold); margin-top: 0.4rem; font-weight: 700; }

/* ---------- Payment icons ---------- */
.v781-pay-row { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.v781-pay {
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--v781-border);
  border-radius: 8px;
  padding: 0.5rem 0.8rem;
  font-size: 1.15rem;
  color: var(--v781-text);
  display: inline-flex; align-items: center; gap: 0.35rem;
}

/* ---------- CTA banner ---------- */
.v781-cta {
  background: linear-gradient(135deg, var(--v781-primary-dark), var(--v781-primary) 60%, #0a8a1a);
  border-radius: var(--v781-radius);
  padding: 1.4rem;
  text-align: center;
  border: 1px solid var(--v781-gold);
  margin: 1rem 0;
}
.v781-cta h3 { color: var(--v781-gold); font-size: 1.7rem; margin-bottom: 0.4rem; }
.v781-cta p { color: var(--v781-text); margin-bottom: 0.9rem; font-size: 1.3rem; }

/* ---------- Footer ---------- */
.v781-footer {
  background: var(--v781-bg-deep);
  border-top: 2px solid var(--v781-primary);
  padding: 1.6rem 0 1rem;
  margin-top: 1.5rem;
}
.v781-footer-brand { color: var(--v781-text-muted); font-size: 1.25rem; margin-bottom: 0.8rem; }
.v781-footer-brand strong { color: var(--v781-gold); }
.v781-footer-links {
  display: flex; flex-wrap: wrap; gap: 0.4rem 0.8rem;
  margin-bottom: 0.8rem;
}
.v781-footer-links a {
  color: var(--v781-text-muted);
  font-size: 1.15rem;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.v781-footer-links a:hover { color: var(--v781-gold); }
.v781-footer-btns {
  display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0.8rem 0;
}
.v781-copy {
  border-top: 1px solid var(--v781-border);
  padding-top: 0.8rem;
  color: var(--v781-text-muted);
  font-size: 1.1rem;
  text-align: center;
}

/* ---------- Mobile bottom nav ---------- */
.v781-bottom-nav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: 62px;
  background: linear-gradient(180deg, var(--v781-bg), var(--v781-bg-deep));
  border-top: 2px solid var(--v781-primary);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
  box-shadow: 0 -4px 14px rgba(0,0,0,0.4);
}
.v781-bottom-nav a, .v781-bottom-nav button {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--v781-text-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  font-size: 1.05rem;
  font-family: inherit;
  cursor: pointer;
  min-height: 60px;
  min-width: 60px;
  position: relative;
  transition: color .15s ease, transform .15s ease;
}
.v781-bottom-nav a i, .v781-bottom-nav button i { font-size: 22px; }
.v781-bottom-nav a:hover, .v781-bottom-nav button:hover { color: var(--v781-gold); transform: translateY(-2px); }
.v781-bottom-nav a:active, .v781-bottom-nav button:active { transform: scale(0.92); }
.v781-bottom-nav .v781-nav-active { color: var(--v781-gold); }
.v781-bottom-nav .v781-nav-active::before {
  content: "";
  position: absolute;
  top: 0; left: 25%; right: 25%;
  height: 3px;
  background: var(--v781-gold);
  border-radius: 0 0 6px 6px;
}
.v781-nav-badge {
  position: absolute;
  top: 6px; right: 22%;
  background: var(--v781-red);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 700;
  min-width: 15px; height: 15px;
  padding: 0 4px;
  border-radius: 999px;
  display: flex; align-items: center; justify-content: center;
}

/* ---------- Reveal animation ---------- */
.v781-reveal { opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s ease; }
.v781-reveal.v781-revealed { opacity: 1; transform: translateY(0); }

/* ---------- Desktop adjustments ---------- */
@media (min-width: 769px) {
  .v781-bottom-nav { display: none; }
  main { padding-bottom: 0; }
}
@media (min-width: 600px) {
  .v781-game-grid { grid-template-columns: repeat(4, 1fr); }
  .v781-feature-grid { grid-template-columns: repeat(4, 1fr); }
}
