/* cwin05.homes - Core stylesheet
   All custom classes use the "va46-" prefix.
   Palette: #8FBC8F (primary/accent) | #1C2833 (dark background)
   Mobile-first: max 430px viewport, root font 62.5% (1rem = 10px). */

:root {
  --va46-primary: #8FBC8F;
  --va46-primary-dark: #6fae6f;
  --va46-primary-soft: #b9d8b9;
  --va46-bg: #1C2833;
  --va46-bg-2: #243447;
  --va46-bg-3: #2e425a;
  --va46-text: #eef5ee;
  --va46-text-dim: #a9c2a9;
  --va46-gold: #f3c969;
  --va46-red: #e05a5a;
  --va46-border: rgba(143, 188, 143, 0.25);
}

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

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

body {
  font-family: "Segoe UI", "Inter", system-ui, -apple-system, sans-serif;
  background: var(--va46-bg);
  color: var(--va46-text);
  line-height: 1.5rem;
  font-size: 1.4rem;
  overflow-x: hidden;
}

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

a { color: var(--va46-primary); text-decoration: none; }

.va46-wrapper { width: 100%; max-width: 430px; margin: 0 auto; position: relative; }

/* ===== Header ===== */
.va46-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: linear-gradient(180deg, #1b2935 0%, #1C2833 100%);
  border-bottom: 1px solid var(--va46-border);
  box-shadow: 0 2px 10px rgba(0,0,0,0.35);
}
.va46-header-inner {
  max-width: 430px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.6rem 1rem; min-height: 5.4rem;
}
.va46-logo { display: flex; align-items: center; gap: 0.7rem; }
.va46-logo img { width: 3rem; height: 3rem; border-radius: 0.6rem; }
.va46-logo b { color: var(--va46-primary); font-size: 1.7rem; letter-spacing: 0.04em; }
.va46-logo small { display: block; color: var(--va46-text-dim); font-size: 1rem; font-weight: 400; }

.va46-header-actions { display: flex; align-items: center; gap: 0.5rem; }
.va46-icon-btn {
  background: transparent; border: none; color: var(--va46-text);
  font-size: 2rem; padding: 0.4rem 0.6rem; cursor: pointer; min-width: 4.4rem; min-height: 4.4rem;
  display: flex; align-items: center; justify-content: center;
}
.va46-icon-btn:active { transform: scale(0.92); }

.va46-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
  font-weight: 700; border-radius: 1rem; cursor: pointer;
  border: none; padding: 0.7rem 1.2rem; font-size: 1.3rem;
  min-height: 3.6rem; transition: transform 0.15s, filter 0.15s;
}
.va46-btn:active { transform: scale(0.95); }
.va46-btn-primary { background: linear-gradient(135deg, var(--va46-primary) 0%, var(--va46-primary-dark) 100%); color: #15301a; }
.va46-btn-primary:hover { filter: brightness(1.08); }
.va46-btn-ghost { background: transparent; color: var(--va46-primary); border: 1px solid var(--va46-primary); }
.va46-btn-gold { background: linear-gradient(135deg, var(--va46-gold) 0%, #d9a93f 100%); color: #2b1d05; }
.va46-btn-block { display: flex; width: 100%; }

/* ===== Mobile menu ===== */
.va46-menu-backdrop {
  position: fixed; inset: 0; background: rgba(0,0,0,0.55);
  z-index: 9998; opacity: 0; pointer-events: none; transition: opacity 0.25s;
}
.va46-backdrop-show { opacity: 1; pointer-events: auto; }
.va46-mobile-menu {
  position: fixed; top: 0; right: -85%; width: 80%; max-width: 320px; height: 100%;
  background: var(--va46-bg-2); z-index: 9999; transition: right 0.3s ease;
  padding: 6rem 1.5rem 2rem; overflow-y: auto;
}
.va46-menu-open { right: 0; }
.va46-mobile-menu h4 { color: var(--va46-primary); font-size: 1.2rem; text-transform: uppercase; letter-spacing: 0.1em; margin: 1.5rem 0 0.6rem; }
.va46-mobile-menu a {
  display: block; padding: 1rem 0.8rem; color: var(--va46-text);
  border-bottom: 1px solid var(--va46-border); font-size: 1.4rem;
}
.va46-mobile-menu a:active { background: var(--va46-bg-3); }
.va46-menu-close {
  position: absolute; top: 1rem; right: 1rem; background: transparent; border: none;
  color: var(--va46-text); font-size: 2.2rem; cursor: pointer; min-width: 4.4rem; min-height: 4.4rem;
}

/* ===== Layout ===== */
main { padding-top: 6rem; padding-bottom: 1rem; }
.va46-section { padding: 2rem 1.2rem; }
.va46-section-title {
  font-size: 1.8rem; color: var(--va46-primary); margin-bottom: 1rem;
  display: flex; align-items: center; gap: 0.6rem; font-weight: 800;
}
.va46-section-title i { color: var(--va46-gold); }
.va46-lead { color: var(--va46-text-dim); font-size: 1.35rem; margin-bottom: 1rem; }
.va46-p { margin-bottom: 1rem; color: var(--va46-text); }
.va46-p a { font-weight: 700; color: var(--va46-primary); border-bottom: 1px dashed var(--va46-primary); }

/* ===== Hero carousel ===== */
.va46-hero { position: relative; padding: 0.5rem 1rem 0; }
.va46-carousel { position: relative; border-radius: 1.2rem; overflow: hidden; aspect-ratio: 16/7; background: #0f1822; }
.va46-slide {
  position: absolute; inset: 0; opacity: 0; transition: opacity 0.6s; cursor: pointer;
  display: flex; align-items: flex-end;
}
.va46-slide img { width: 100%; height: 100%; object-fit: cover; }
.va46-slide-active { opacity: 1; }
.va46-slide-caption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 1rem;
  background: linear-gradient(0deg, rgba(10,18,26,0.85) 0%, rgba(10,18,26,0) 100%);
  font-weight: 700; color: #fff; font-size: 1.4rem;
}
.va46-dots { display: flex; gap: 0.4rem; justify-content: center; margin-top: 0.6rem; }
.va46-dot { width: 0.7rem; height: 0.7rem; border-radius: 50%; background: var(--va46-bg-3); cursor: pointer; border: none; }

/* ===== Game grid ===== */
.va46-filter-bar { display: flex; gap: 0.5rem; overflow-x: auto; padding: 0.5rem 0 1rem; -webkit-overflow-scrolling: touch; }
.va46-filter-tab {
  white-space: nowrap; padding: 0.5rem 1rem; border-radius: 1rem;
  background: var(--va46-bg-2); color: var(--va46-text-dim); border: 1px solid var(--va46-border);
  font-size: 1.2rem; cursor: pointer; min-height: 3.2rem; display: flex; align-items: center;
}
.va46-filter-active { background: var(--va46-primary); color: #15301a; border-color: var(--va46-primary); font-weight: 700; }

.va46-cat-head {
  display: flex; align-items: center; gap: 0.5rem; margin: 1.4rem 0 0.8rem;
  font-size: 1.5rem; color: var(--va46-gold); font-weight: 800;
}
.va46-cat-head span { flex: 1; height: 1px; background: var(--va46-border); }
.va46-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.6rem;
}
.va46-game-card {
  background: var(--va46-bg-2); border: 1px solid var(--va46-border); border-radius: 0.8rem;
  overflow: hidden; cursor: pointer; transition: transform 0.15s, border-color 0.15s;
  display: flex; flex-direction: column;
}
.va46-game-card:active { transform: scale(0.94); border-color: var(--va46-primary); }
.va46-game-card img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.va46-game-card b { font-size: 1rem; color: var(--va46-text); padding: 0.35rem 0.3rem; text-align: center; line-height: 1.2rem; min-height: 2.6rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ===== Cards / modules ===== */
.va46-card {
  background: var(--va46-bg-2); border: 1px solid var(--va46-border); border-radius: 1rem;
  padding: 1.2rem; margin-bottom: 1rem;
}
.va46-card h3 { color: var(--va46-primary); font-size: 1.5rem; margin-bottom: 0.6rem; }
.va46-card ul { list-style: none; }
.va46-card li { padding: 0.5rem 0; border-bottom: 1px dashed var(--va46-border); color: var(--va46-text-dim); font-size: 1.25rem; }
.va46-card li:last-child { border-bottom: none; }
.va46-card li i { color: var(--va46-gold); margin-right: 0.5rem; }

.va46-faq dt { font-weight: 700; color: var(--va46-primary); margin: 0.8rem 0 0.3rem; font-size: 1.3rem; }
.va46-faq dd { color: var(--va46-text-dim); margin-bottom: 0.8rem; font-size: 1.25rem; }

.va46-step { display: flex; gap: 0.8rem; margin-bottom: 0.9rem; }
.va46-step-num { flex: 0 0 2.6rem; height: 2.6rem; border-radius: 50%; background: var(--va46-primary); color: #15301a; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.va46-step-body b { color: var(--va46-primary); }
.va46-step-body p { color: var(--va46-text-dim); font-size: 1.25rem; }

/* RTP / data bars */
.va46-rtp-row { margin-bottom: 0.8rem; }
.va46-rtp-name { display: flex; justify-content: space-between; font-size: 1.2rem; margin-bottom: 0.3rem; }
.va46-rtp-bar { height: 0.8rem; border-radius: 1rem; background: var(--va46-bg-3); overflow: hidden; }
.va46-rtp-fill { height: 100%; background: linear-gradient(90deg, var(--va46-primary), var(--va46-gold)); }

/* Testimonial / winner */
.va46-quote { background: var(--va46-bg-3); border-left: 3px solid var(--va46-primary); padding: 0.8rem 1rem; border-radius: 0.5rem; margin-bottom: 0.7rem; }
.va46-quote b { color: var(--va46-gold); }
.va46-quote p { color: var(--va46-text); font-size: 1.25rem; }

/* Payment chips */
.va46-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.va46-chip { background: var(--va46-bg-3); border: 1px solid var(--va46-border); border-radius: 0.8rem; padding: 0.5rem 0.9rem; font-size: 1.15rem; color: var(--va46-text-dim); display: flex; align-items: center; gap: 0.4rem; }

/* App download CTA */
.va46-app-cta { background: linear-gradient(135deg, #2e425a, #1C2833); border: 1px solid var(--va46-primary); border-radius: 1rem; padding: 1.4rem; text-align: center; }
.va46-app-cta h3 { color: var(--va46-primary); margin-bottom: 0.5rem; }
.va46-app-cta .va46-btn { margin: 0.5rem auto; }

/* Promo banner */
.va46-promo-banner { background: linear-gradient(135deg, var(--va46-primary) 0%, var(--va46-primary-dark) 100%); color: #15301a; border-radius: 1rem; padding: 1.2rem; margin-bottom: 1rem; }
.va46-promo-banner h3 { font-size: 1.6rem; margin-bottom: 0.3rem; }
.va46-promo-banner p { font-size: 1.25rem; }

/* ===== Footer ===== */
.va46-footer { background: #0f1822; padding: 2rem 1.2rem 9rem; border-top: 1px solid var(--va46-border); }
.va46-footer h4 { color: var(--va46-primary); margin-bottom: 0.6rem; font-size: 1.3rem; }
.va46-footer p { color: var(--va46-text-dim); font-size: 1.2rem; margin-bottom: 1rem; }
.va46-footer-links { display: flex; flex-wrap: wrap; gap: 0.5rem 1rem; margin-bottom: 1rem; }
.va46-footer-links a { color: var(--va46-text-dim); font-size: 1.2rem; }
.va46-footer-links a:hover { color: var(--va46-primary); }
.va46-footer-promo { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1rem; }
.va46-copy { color: var(--va46-text-dim); font-size: 1.1rem; border-top: 1px solid var(--va46-border); padding-top: 1rem; }

/* ===== Bottom nav ===== */
.va46-bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 1000;
  height: 6rem; background: #0f1822; border-top: 1px solid var(--va46-border);
  display: flex; justify-content: space-around; align-items: stretch;
  box-shadow: 0 -2px 12px rgba(0,0,0,0.4);
}
.va46-bottom-nav .va46-nav-btn {
  flex: 1; min-width: 6rem; min-height: 6rem; background: transparent; border: none;
  color: var(--va46-text-dim); display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 0.2rem; cursor: pointer; font-size: 1rem; transition: color 0.15s, transform 0.15s;
  position: relative;
}
.va46-bottom-nav .va46-nav-btn i { font-size: 2.2rem; }
.va46-bottom-nav .va46-nav-btn:active { transform: scale(0.9); }
.va46-bottom-nav .va46-nav-current { color: var(--va46-primary); }
.va46-bottom-nav .va46-nav-current::after {
  content: ""; position: absolute; top: 0; left: 25%; right: 25%; height: 3px;
  background: var(--va46-primary); border-radius: 0 0 1rem 1rem;
}
.va46-nav-badge {
  position: absolute; top: 0.6rem; right: 1.4rem; min-width: 1.5rem; height: 1.5rem; padding: 0 0.3rem;
  background: var(--va46-red); color: #fff; border-radius: 1rem; font-size: 0.9rem; line-height: 1.5rem; font-weight: 700;
}

/* Desktop: hide bottom nav, show desktop nav */
.va46-desktop-nav { display: none; }
@media (min-width: 769px) {
  .va46-bottom-nav { display: none; }
  .va46-desktop-nav { display: flex; gap: 1rem; align-items: center; }
  .va46-desktop-nav a { color: var(--va46-text); font-size: 1.3rem; padding: 0.4rem 0.6rem; }
  .va46-desktop-nav a:hover { color: var(--va46-primary); }
  main { padding-bottom: 2rem; }
  .va46-footer { padding-bottom: 2rem; }
  .va46-wrapper { max-width: 768px; }
}
@media (max-width: 768px) {
  main { padding-bottom: 7.5rem; }
  .va46-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 360px) {
  .va46-grid { grid-template-columns: repeat(3, 1fr); }
  .va46-btn { padding: 0.6rem 0.8rem; font-size: 1.2rem; }
}
