/* ==========================================================================
   ah3.homes - Core Stylesheet (style-9204.css)
   All custom classes use the "v4de-" prefix for namespace isolation.
   Palette: #34495E (primary dark) | #5D5D5D (neutral gray)
   Mobile-first HTML5, rem units, root font 62.5%.
   ========================================================================== */

:root {
  --v4de-primary: #34495E;
  --v4de-primary-dark: #22303D;
  --v4de-primary-light: #4A6278;
  --v4de-neutral: #5D5D5D;
  --v4de-bg: #1B2530;
  --v4de-bg-alt: #243140;
  --v4de-bg-soft: #2E3F51;
  --v4de-text: #ECEFF2;
  --v4de-text-muted: #A9B4BD;
  --v4de-accent: #F0B429;
  --v4de-accent-2: #E45A3C;
  --v4de-border: rgba(236, 239, 242, 0.10);
  --v4de-success: #2ECF8C;
  --v4de-radius: 14px;
  --v4de-radius-sm: 10px;
  --v4de-shadow: 0 6px 24px rgba(0, 0, 0, 0.32);
  --v4de-header-h: 58px;
  --v4de-bottom-h: 62px;
}

* { box-sizing: border-box; }
html { font-size: 62.5%; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Segoe UI", "Helvetica Neue", Roboto, system-ui, sans-serif;
  background: var(--v4de-bg);
  color: var(--v4de-text);
  line-height: 1.5;
  font-size: 1.5rem;
  max-width: 430px;
  margin-left: auto;
  margin-right: auto;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--v4de-accent); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font-family: inherit; }

/* ----------------------------------------------------------------------
   Layout helpers
   ---------------------------------------------------------------------- */
.v4de-container { width: 100%; max-width: 430px; margin: 0 auto; padding: 0 14px; }
.v4de-wrapper { padding: 18px 0; }
.v4de-grid { display: grid; gap: 10px; }
.v4de-clearfix::after { content: ""; display: table; clear: both; }
.v4de-text-muted { color: var(--v4de-text-muted); }
.v4de-hide-desktop { display: block; }

/* ----------------------------------------------------------------------
   Header / Top navigation
   ---------------------------------------------------------------------- */
.v4de-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  max-width: 430px;
  margin: 0 auto;
  height: var(--v4de-header-h);
  background: var(--v4de-primary-dark);
  border-bottom: 1px solid var(--v4de-border);
  z-index: 1000;
  display: flex;
  align-items: center;
  padding: 0 12px;
  gap: 8px;
}
.v4de-brand { display: flex; align-items: center; gap: 8px; color: var(--v4de-text); }
.v4de-brand img { width: 28px; height: 28px; border-radius: 6px; }
.v4de-brand-name { font-weight: 800; font-size: 1.85rem; letter-spacing: 0.4px; }
.v4de-brand-name span { color: var(--v4de-accent); }

.v4de-header-actions { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.v4de-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 34px;
  padding: 0 12px;
  border: none;
  border-radius: 999px;
  font-size: 1.3rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform .15s ease, background .2s ease, color .2s ease;
  text-decoration: none;
}
.v4de-btn:hover { text-decoration: none; transform: translateY(-1px); }
.v4de-btn-login { background: transparent; color: var(--v4de-text); border: 1px solid var(--v4de-border); }
.v4de-btn-register { background: var(--v4de-accent); color: #1B2530; }
.v4de-btn-register:hover { background: #ffc545; }

.v4de-menu-toggle {
  background: transparent;
  border: 0;
  color: var(--v4de-text);
  font-size: 2rem;
  cursor: pointer;
  padding: 6px;
  line-height: 1;
}

/* ----------------------------------------------------------------------
   Mobile drawer menu
   ---------------------------------------------------------------------- */
.v4de-mobile-menu {
  position: fixed;
  top: 0;
  right: -82%;
  width: 80%;
  max-width: 340px;
  height: 100%;
  background: var(--v4de-bg-alt);
  padding: 18px 16px;
  z-index: 9999;
  transition: right .28s ease;
  overflow-y: auto;
}
.v4de-mobile-menu.v4de-menu-open { right: 0; }
.v4de-menu-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.v4de-menu-title { font-size: 1.7rem; font-weight: 700; color: var(--v4de-accent); }
.v4de-menu-close { background: transparent; border: 0; color: var(--v4de-text); font-size: 2.2rem; cursor: pointer; }
.v4de-menu-list { list-style: none; padding: 0; margin: 0; }
.v4de-menu-list li { border-bottom: 1px solid var(--v4de-border); }
.v4de-menu-list a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 6px;
  color: var(--v4de-text);
  font-size: 1.5rem;
}
.v4de-menu-list a i.material-icons,
.v4de-menu-list a i.fas,
.v4de-menu-list a i.bi { color: var(--v4de-accent); font-size: 1.8rem; }
.v4de-menu-cta { margin-top: 16px; display: grid; gap: 10px; }
.v4de-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 9998;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
}
.v4de-overlay.v4de-overlay-show { opacity: 1; pointer-events: auto; }

/* ----------------------------------------------------------------------
   Main / sections
   ---------------------------------------------------------------------- */
.v4de-main { padding-top: calc(var(--v4de-header-h) + 12px); padding-bottom: 24px; }
.v4de-section { padding: 22px 0; }
.v4de-section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.v4de-section-title {
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--v4de-text);
  margin: 0;
  padding-left: 10px;
  border-left: 4px solid var(--v4de-accent);
}
.v4de-section-sub { color: var(--v4de-text-muted); font-size: 1.35rem; margin-top: 4px; }
.v4de-more { color: var(--v4de-accent); font-size: 1.3rem; font-weight: 600; }

/* ----------------------------------------------------------------------
   Hero carousel
   ---------------------------------------------------------------------- */
.v4de-hero { position: relative; border-radius: var(--v4de-radius); overflow: hidden; box-shadow: var(--v4de-shadow); }
.v4de-hero-track { position: relative; width: 100%; height: 200px; }
.v4de-hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .6s ease;
}
.v4de-hero-slide img { width: 100%; height: 200px; object-fit: cover; }
.v4de-hero-slide.v4de-slide-active { opacity: 1; }
.v4de-hero-caption {
  position: absolute;
  left: 12px;
  bottom: 12px;
  background: rgba(27, 37, 48, 0.78);
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 1.3rem;
  color: var(--v4de-text);
  max-width: 75%;
}
.v4de-hero-caption b { color: var(--v4de-accent); }
.v4de-hero-dots {
  position: absolute;
  bottom: 8px;
  right: 10px;
  display: flex;
  gap: 5px;
}
.v4de-hero-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: rgba(236, 239, 242, 0.45);
  border: 0; padding: 0; cursor: pointer;
}
.v4de-hero-dot.v4de-dot-active { background: var(--v4de-accent); }
.v4de-hero-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 32px; height: 32px; border-radius: 50%;
  border: 0; background: rgba(27, 37, 48, 0.7); color: var(--v4de-text);
  font-size: 1.6rem; cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.v4de-hero-nav.v4de-prev { left: 6px; }
.v4de-hero-nav.v4de-next { right: 6px; }

/* ----------------------------------------------------------------------
   Quick CTA strip
   ---------------------------------------------------------------------- */
.v4de-cta-strip {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 12px;
}
.v4de-cta-card {
  background: linear-gradient(135deg, var(--v4de-primary), var(--v4de-primary-light));
  border-radius: var(--v4de-radius-sm);
  padding: 12px;
  text-align: center;
  cursor: pointer;
  border: 1px solid var(--v4de-border);
}
.v4de-cta-card i { color: var(--v4de-accent); font-size: 2rem; }
.v4de-cta-card span { display: block; margin-top: 6px; font-size: 1.3rem; font-weight: 700; color: var(--v4de-text); }
.v4de-cta-card small { color: var(--v4de-text-muted); font-size: 1.1rem; }

/* ----------------------------------------------------------------------
   Filter tabs
   ---------------------------------------------------------------------- */
.v4de-filters {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 8px 0 12px;
  -webkit-overflow-scrolling: touch;
}
.v4de-filter-tab {
  flex: 0 0 auto;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--v4de-border);
  background: var(--v4de-bg-alt);
  color: var(--v4de-text-muted);
  font-size: 1.3rem;
  font-weight: 600;
  cursor: pointer;
}
.v4de-filter-tab.v4de-tab-active {
  background: var(--v4de-accent);
  color: #1B2530;
  border-color: transparent;
}

/* ----------------------------------------------------------------------
   Game groups / grids / cards
   ---------------------------------------------------------------------- */
.v4de-game-group { margin-bottom: 26px; }
.v4de-game-group.v4de-group-hidden { display: none; }
.v4de-game-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.v4de-game-card {
  background: var(--v4de-bg-alt);
  border-radius: var(--v4de-radius-sm);
  overflow: hidden;
  cursor: pointer;
  position: relative;
  border: 1px solid var(--v4de-border);
  transition: transform .15s ease, box-shadow .2s ease;
}
.v4de-game-card:hover { transform: translateY(-2px); box-shadow: var(--v4de-shadow); }
.v4de-game-card img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.v4de-game-card-name {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--v4de-text);
  padding: 6px 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.v4de-game-card-tag {
  position: absolute;
  top: 6px; left: 6px;
  background: var(--v4de-accent-2);
  color: #fff;
  font-size: 1rem;
  padding: 2px 6px;
  border-radius: 6px;
  font-weight: 700;
}
.v4de-group-hidden { display: none; }

/* ----------------------------------------------------------------------
   Info / promo / feature blocks
   ---------------------------------------------------------------------- */
.v4de-card {
  background: var(--v4de-bg-alt);
  border-radius: var(--v4de-radius);
  padding: 16px;
  border: 1px solid var(--v4de-border);
}
.v4de-card-title { font-size: 1.7rem; font-weight: 800; margin: 0 0 8px; color: var(--v4de-text); }
.v4de-card p { margin: 0 0 10px; color: var(--v4de-text-muted); font-size: 1.4rem; }
.v4de-card-link {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--v4de-accent); font-weight: 700; font-size: 1.35rem;
}

.v4de-feature-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.v4de-feature {
  background: var(--v4de-bg-soft);
  border-radius: var(--v4de-radius-sm);
  padding: 14px;
  text-align: center;
  border: 1px solid var(--v4de-border);
}
.v4de-feature i { font-size: 2.4rem; color: var(--v4de-accent); }
.v4de-feature h3 { margin: 8px 0 4px; font-size: 1.4rem; color: var(--v4de-text); }
.v4de-feature p { margin: 0; font-size: 1.25rem; color: var(--v4de-text-muted); }

.v4de-stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 10px 0; }
.v4de-stat {
  background: var(--v4de-bg-soft);
  border-radius: var(--v4de-radius-sm);
  padding: 10px 4px;
  text-align: center;
  border: 1px solid var(--v4de-border);
}
.v4de-stat b { display: block; font-size: 1.7rem; color: var(--v4de-accent); }
.v4de-stat span { font-size: 1.1rem; color: var(--v4de-text-muted); }

/* ----------------------------------------------------------------------
   Testimonials
   ---------------------------------------------------------------------- */
.v4de-testimonial {
  background: var(--v4de-bg-soft);
  border-radius: var(--v4de-radius);
  padding: 14px;
  margin-bottom: 10px;
  border-left: 3px solid var(--v4de-accent);
}
.v4de-testimonial-stars { color: var(--v4de-accent); font-size: 1.3rem; margin-bottom: 6px; }
.v4de-testimonial p { margin: 0 0 6px; font-size: 1.35rem; color: var(--v4de-text); }
.v4de-testimonial cite { color: var(--v4de-text-muted); font-style: normal; font-size: 1.2rem; }

/* ----------------------------------------------------------------------
   Payment / winners / FAQ
   ---------------------------------------------------------------------- */
.v4de-pay-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.v4de-pay {
  background: #fff; color: var(--v4de-primary-dark);
  border-radius: 8px; padding: 10px; text-align: center;
  font-weight: 800; font-size: 1.25rem;
}

.v4de-winner {
  display: flex; align-items: center; gap: 10px;
  background: var(--v4de-bg-soft); border-radius: 10px;
  padding: 10px; margin-bottom: 8px; border: 1px solid var(--v4de-border);
}
.v4de-winner i { color: var(--v4de-accent); font-size: 1.8rem; }
.v4de-winner .v4de-winner-game { font-weight: 700; color: var(--v4de-text); font-size: 1.3rem; }
.v4de-winner .v4de-winner-amt { margin-left: auto; color: var(--v4de-success); font-weight: 800; font-size: 1.35rem; }

.v4de-faq-item {
  background: var(--v4de-bg-alt);
  border-radius: var(--v4de-radius-sm);
  margin-bottom: 8px;
  padding: 12px 14px;
  border: 1px solid var(--v4de-border);
}
.v4de-faq-item h3 { margin: 0 0 6px; font-size: 1.45rem; color: var(--v4de-accent); }
.v4de-faq-item p { margin: 0; color: var(--v4de-text-muted); font-size: 1.3rem; }

.v4de-seo-text { color: var(--v4de-text-muted); font-size: 1.4rem; }
.v4de-seo-text h2 { color: var(--v4de-text); font-size: 1.9rem; margin: 18px 0 8px; }
.v4de-seo-text h3 { color: var(--v4de-text); font-size: 1.6rem; margin: 14px 0 6px; }
.v4de-seo-text p { margin: 0 0 10px; }
.v4de-seo-text ul { margin: 0 0 10px; padding-left: 18px; }
.v4de-seo-text li { margin-bottom: 4px; }

/* ----------------------------------------------------------------------
   Footer
   ---------------------------------------------------------------------- */
.v4de-footer {
  background: var(--v4de-primary-dark);
  border-top: 1px solid var(--v4de-border);
  padding: 22px 14px calc(var(--v4de-bottom-h) + 20px);
  color: var(--v4de-text-muted);
  font-size: 1.3rem;
}
.v4de-footer-brand { color: var(--v4de-text); font-weight: 800; font-size: 1.7rem; margin-bottom: 8px; }
.v4de-footer-brand span { color: var(--v4de-accent); }
.v4de-footer-links {
  display: grid; grid-template-columns: 1fr 1fr; gap: 6px 12px; margin: 12px 0;
}
.v4de-footer-links a { color: var(--v4de-text-muted); font-size: 1.25rem; }
.v4de-footer-promo {
  display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0;
}
.v4de-footer-promo .v4de-btn { flex: 1 1 45%; min-height: 38px; }
.v4de-footer-copy { font-size: 1.15rem; color: var(--v4de-text-muted); margin-top: 10px; }

/* ----------------------------------------------------------------------
   Bottom navigation (mobile only)
   ---------------------------------------------------------------------- */
.v4de-bottom-nav {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  max-width: 430px; margin: 0 auto;
  height: var(--v4de-bottom-h);
  background: var(--v4de-primary-dark);
  border-top: 1px solid var(--v4de-border);
  display: flex;
  justify-content: space-around;
  align-items: stretch;
  z-index: 1000;
}
.v4de-bottom-nav a,
.v4de-bottom-nav button {
  flex: 1 1 0;
  min-width: 60px;
  min-height: 60px;
  background: transparent;
  border: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: var(--v4de-text-muted);
  text-decoration: none;
  font-size: 1.05rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform .15s ease, color .2s ease;
}
.v4de-bottom-nav a:hover,
.v4de-bottom-nav button:hover { text-decoration: none; }
.v4de-bottom-nav a i,
.v4de-bottom-nav button i { font-size: 2.2rem; }
.v4de-bottom-nav .v4de-active { color: var(--v4de-accent); transform: translateY(-2px); }

/* Back to top floating */
.v4de-back-top {
  position: fixed;
  right: 14px;
  bottom: calc(var(--v4de-bottom-h) + 14px);
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--v4de-accent);
  color: #1B2530;
  border: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem;
  cursor: pointer;
  box-shadow: var(--v4de-shadow);
  z-index: 999;
}

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

/* Lock scroll when drawer open */
.v4de-lock-scroll { overflow: hidden; }

/* ----------------------------------------------------------------------
   Desktop / tablet rules: hide bottom nav, allow wider layout
   ---------------------------------------------------------------------- */
@media (min-width: 769px) {
  body { max-width: 100%; }
  .v4de-header { max-width: 100%; }
  .v4de-container { max-width: 960px; }
  .v4de-bottom-nav { display: none; }
  .v4de-footer { padding-bottom: 22px; }
  .v4de-back-top { display: none; }
  .v4de-game-grid { grid-template-columns: repeat(6, 1fr); }
  .v4de-feature-grid { grid-template-columns: repeat(4, 1fr); }
  .v4de-pay-grid { grid-template-columns: repeat(6, 1fr); }
  .v4de-hero-track { height: 320px; }
  .v4de-hero-slide img { height: 320px; }
  .v4de-hide-desktop { display: none !important; }
  .v4de-desktop-only { display: block !important; }
}

@media (min-width: 481px) and (max-width: 768px) {
  .v4de-game-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 360px) {
  .v4de-game-grid { grid-template-columns: repeat(2, 1fr); }
  .v4de-stat-row { grid-template-columns: repeat(2, 1fr); }
}

/* Ensure desktop nav placeholder hidden on mobile */
.v4de-desktop-only { display: none; }
