/* ============================================================
   abc8 full - Shared design stylesheet (basefiles)
   Prefix: vd51-   |   JS prefix: appea1
   Palette: #EEE8AA | #1E1E1E | #CCCCCC | #BDB76B
   ============================================================ */

:root {
  --vd51-primary: #EEE8AA;     /* pale yellow */
  --vd51-accent: #BDB76B;      /* dark khaki gold */
  --vd51-bg: #1E1E1E;          /* deep dark background */
  --vd51-bg-alt: #262624;      /* panel background */
  --vd51-text: #CCCCCC;        /* light grey text */
  --vd51-text-strong: #EEE8AA; /* strong heading text */
  --vd51-line: #3a3a36;
  --vd51-shadow: 0 4px 18px rgba(0, 0, 0, 0.45);
  --vd51-radius: 10px;
}

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

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

body {
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  background: var(--vd51-bg);
  color: var(--vd51-text);
  line-height: 1.5rem;
  max-width: 430px;
  margin: 0 auto;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

a { color: var(--vd51-primary); text-decoration: none; }
a:hover { color: #fff; }

.vd51-container { width: 100%; padding: 0 1.2rem; }

/* ===================== HEADER ===================== */
.vd51-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: linear-gradient(180deg, #232320 0%, #1a1a18 100%);
  border-bottom: 1px solid var(--vd51-line);
  box-shadow: var(--vd51-shadow);
}
.vd51-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.7rem 1.2rem;
  gap: 0.8rem;
}
.vd51-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex: 1;
  min-width: 0;
}
.vd51-brand img { width: 30px; height: 30px; border-radius: 6px; }
.vd51-brand-name {
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--vd51-text-strong);
  letter-spacing: 0.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.vd51-brand-name span { color: var(--vd51-accent); }

.vd51-header-actions { display: flex; gap: 0.5rem; align-items: center; }
.vd51-btn {
  border: none;
  cursor: pointer;
  font-weight: 700;
  font-size: 1.25rem;
  padding: 0.6rem 1.1rem;
  border-radius: 999px;
  transition: transform 0.15s ease, opacity 0.15s ease;
  line-height: 1;
  min-height: 32px;
}
.vd51-btn:active { transform: scale(0.94); }
.vd51-btn-login {
  background: transparent;
  color: var(--vd51-primary);
  border: 1px solid var(--vd51-accent);
}
.vd51-btn-register {
  background: linear-gradient(135deg, #BDB76B 0%, #EEE8AA 100%);
  color: #1E1E1E;
  box-shadow: 0 2px 8px rgba(189, 183, 107, 0.4);
}

.vd51-menu-toggle {
  background: transparent;
  border: 1px solid var(--vd51-line);
  color: var(--vd51-primary);
  width: 34px;
  height: 34px;
  border-radius: 8px;
  font-size: 1.6rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Expandable nav menu */
.vd51-mobile-menu {
  display: none;
  background: #20201d;
  border-top: 1px solid var(--vd51-line);
  padding: 0.5rem 1.2rem 1rem;
}
.vd51-menu-open { display: block; }
.vd51-mobile-menu a {
  display: block;
  padding: 0.8rem 0.4rem;
  color: var(--vd51-text);
  border-bottom: 1px dashed var(--vd51-line);
  font-size: 1.3rem;
}
.vd51-mobile-menu a:hover { color: var(--vd51-primary); }
.vd51-mobile-menu a i { width: 22px; color: var(--vd51-accent); }

/* ===================== HERO / CAROUSEL ===================== */
.vd51-hero { margin: 1rem 0; }
.vd51-carousel {
  position: relative;
  border-radius: var(--vd51-radius);
  overflow: hidden;
  box-shadow: var(--vd51-shadow);
  background: #000;
}
.vd51-slide {
  display: none;
  position: relative;
}
.vd51-slide-active { display: block; }
.vd51-slide img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}
.vd51-slide-cap {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  background: linear-gradient(0deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0) 100%);
  padding: 1.6rem 1.2rem 1rem;
}
.vd51-slide-cap h2 {
  font-size: 1.6rem;
  color: #fff;
  font-weight: 800;
  margin-bottom: 0.4rem;
}
.vd51-slide-cap p { font-size: 1.2rem; color: var(--vd51-primary); }
.vd51-dots {
  position: absolute;
  bottom: 8px;
  right: 12px;
  display: flex;
  gap: 5px;
}
.vd51-dot {
  width: 8px; height: 8px;
  background: rgba(255,255,255,0.45);
  border-radius: 50%;
}
.vd51-dot-active { background: var(--vd51-primary); }

/* ===================== SECTIONS ===================== */
main { padding-bottom: 80px; }
.vd51-section { margin: 1.6rem 0; }
.vd51-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.9rem;
  padding: 0 1.2rem;
}
.vd51-section-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--vd51-text-strong);
  border-left: 4px solid var(--vd51-accent);
  padding-left: 0.7rem;
}
.vd51-section-more {
  font-size: 1.15rem;
  color: var(--vd51-primary);
}

/* ===================== GAME GRID ===================== */
.vd51-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.7rem;
  padding: 0 1.2rem;
}
.vd51-card {
  background: var(--vd51-bg-alt);
  border-radius: var(--vd51-radius);
  overflow: hidden;
  border: 1px solid var(--vd51-line);
  transition: transform 0.15s ease, border-color 0.15s ease;
  cursor: pointer;
}
.vd51-card:hover, .vd51-card:active {
  transform: translateY(-2px);
  border-color: var(--vd51-accent);
}
.vd51-card-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: #000;
}
.vd51-card-name {
  font-size: 1.1rem;
  color: var(--vd51-text);
  text-align: center;
  padding: 0.45rem 0.3rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.vd51-card-tag {
  position: absolute;
  top: 6px; left: 6px;
  background: var(--vd51-accent);
  color: #1E1E1E;
  font-size: 0.95rem;
  font-weight: 800;
  padding: 0.15rem 0.5rem;
  border-radius: 5px;
}
.vd51-card-wrap { position: relative; }

/* ===================== CONTENT / TEXT BLOCKS ===================== */
.vd51-content {
  padding: 0 1.2rem;
  font-size: 1.3rem;
  color: var(--vd51-text);
}
.vd51-content h2 {
  font-size: 1.7rem;
  color: var(--vd51-text-strong);
  margin: 1.4rem 0 0.7rem;
  font-weight: 800;
}
.vd51-content h3 {
  font-size: 1.4rem;
  color: var(--vd51-primary);
  margin: 1.1rem 0 0.5rem;
}
.vd51-content p { margin-bottom: 0.8rem; line-height: 1.55; }
.vd51-content ul { padding-left: 1.6rem; margin-bottom: 0.8rem; }
.vd51-content li { margin-bottom: 0.35rem; }

/* CTA banner */
.vd51-cta {
  margin: 1.6rem 1.2rem;
  padding: 1.4rem;
  border-radius: var(--vd51-radius);
  text-align: center;
  background: linear-gradient(135deg, #2a2a25 0%, #3a3a30 100%);
  border: 1px solid var(--vd51-accent);
}
.vd51-cta h3 { color: var(--vd51-text-strong); font-size: 1.6rem; margin-bottom: 0.5rem; }
.vd51-cta p { font-size: 1.2rem; margin-bottom: 0.9rem; }
.vd51-cta-btn {
  display: inline-block;
  background: linear-gradient(135deg, #BDB76B 0%, #EEE8AA 100%);
  color: #1E1E1E;
  padding: 0.8rem 2rem;
  border-radius: 999px;
  font-weight: 800;
  font-size: 1.3rem;
}

/* Feature list */
.vd51-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.7rem;
  padding: 0 1.2rem;
}
.vd51-feature {
  background: var(--vd51-bg-alt);
  border: 1px solid var(--vd51-line);
  border-radius: var(--vd51-radius);
  padding: 1rem;
  text-align: center;
}
.vd51-feature i { font-size: 2.4rem; color: var(--vd51-accent); margin-bottom: 0.5rem; }
.vd51-feature h4 { font-size: 1.25rem; color: var(--vd51-text-strong); margin-bottom: 0.3rem; }
.vd51-feature p { font-size: 1.1rem; color: var(--vd51-text); }

/* Testimonial */
.vd51-testi {
  background: var(--vd51-bg-alt);
  border-left: 3px solid var(--vd51-accent);
  border-radius: 6px;
  padding: 1rem;
  margin: 0.6rem 1.2rem;
  font-size: 1.2rem;
  font-style: italic;
}
.vd51-testi strong { display: block; color: var(--vd51-primary); margin-top: 0.4rem; font-style: normal; }

/* Winners */
.vd51-winner-row {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 1.2rem;
  border-bottom: 1px dashed var(--vd51-line);
  font-size: 1.2rem;
}
.vd51-winner-row span:last-child { color: var(--vd51-primary); font-weight: 700; }

/* Payment */
.vd51-pay {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  padding: 0 1.2rem;
  justify-content: center;
}
.vd51-pay span {
  background: var(--vd51-bg-alt);
  border: 1px solid var(--vd51-line);
  border-radius: 6px;
  padding: 0.5rem 0.9rem;
  font-size: 1.15rem;
  color: var(--vd51-text);
}

/* FAQ */
.vd51-faq { padding: 0 1.2rem; }
.vd51-faq item, .vd51-faq-q {
  background: var(--vd51-bg-alt);
  border-radius: 8px;
  padding: 0.9rem 1rem;
  margin-bottom: 0.6rem;
  border: 1px solid var(--vd51-line);
}
.vd51-faq-q strong { color: var(--vd51-primary); display: block; margin-bottom: 0.3rem; font-size: 1.25rem; }
.vd51-faq-q span { font-size: 1.18rem; color: var(--vd51-text); }

/* ===================== FOOTER ===================== */
.vd51-footer {
  background: #161614;
  border-top: 1px solid var(--vd51-line);
  padding: 1.6rem 1.2rem 2rem;
  margin-top: 1.6rem;
}
.vd51-footer h4 {
  font-size: 1.3rem;
  color: var(--vd51-text-strong);
  margin-bottom: 0.6rem;
}
.vd51-footer p { font-size: 1.15rem; margin-bottom: 0.8rem; line-height: 1.5; }
.vd51-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  margin: 0.6rem 0 1rem;
}
.vd51-footer-links a {
  font-size: 1.15rem;
  color: var(--vd51-text);
}
.vd51-footer-links a:hover { color: var(--vd51-primary); }
.vd51-footer-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 0.8rem 0;
}
.vd51-footer-btn {
  background: var(--vd51-bg-alt);
  border: 1px solid var(--vd51-accent);
  color: var(--vd51-primary);
  padding: 0.55rem 1rem;
  border-radius: 999px;
  font-size: 1.15rem;
  font-weight: 700;
  cursor: pointer;
}
.vd51-copy {
  font-size: 1.1rem;
  color: #777;
  text-align: center;
  margin-top: 0.8rem;
  border-top: 1px solid var(--vd51-line);
  padding-top: 0.8rem;
}

/* ===================== MOBILE BOTTOM NAV ===================== */
.vd51-bottomnav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  background: linear-gradient(180deg, #232320 0%, #161614 100%);
  border-top: 1px solid var(--vd51-accent);
  display: flex;
  justify-content: space-around;
  align-items: stretch;
  height: 62px;
  z-index: 1000;
  box-shadow: 0 -3px 14px rgba(0, 0, 0, 0.5);
}
.vd51-bottomnav-btn {
  flex: 1;
  min-width: 60px;
  min-height: 60px;
  background: transparent;
  border: none;
  color: var(--vd51-text);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  cursor: pointer;
  font-size: 1rem;
  padding: 4px 2px;
  transition: color 0.15s ease, transform 0.15s ease;
}
.vd51-bottomnav-btn:active { transform: scale(0.92); }
.vd51-bottomnav-btn .material-icons,
.vd51-bottomnav-btn ion-icon,
.vd51-bottomnav-btn i { font-size: 24px; }
.vd51-bottomnav-btn.is-active { color: var(--vd51-primary); }
.vd51-bottomnav-btn.is-active::after {
  content: "";
  display: block;
  width: 26px;
  height: 3px;
  background: var(--vd51-accent);
  border-radius: 3px;
  margin-top: 2px;
}

/* Desktop: hide bottom nav, widen layout */
@media (min-width: 769px) {
  body { max-width: 100%; }
  .vd51-bottomnav { display: none; }
  main { padding-bottom: 1.6rem; }
  .vd51-grid { grid-template-columns: repeat(6, 1fr); }
  .vd51-features { grid-template-columns: repeat(4, 1fr); }
}
