/*!
 * taya 365 - design.css
 * Mobile-first casino styles. CSS class prefix: v04a-
 * Palette: #2C3E50 (dark bg) | #FAF0E6 (light text) + accents
 * All comments in English. rem units (root font 62.5%).
 */

:root {
  --v04a-bg: #2C3E50;
  --v04a-bg-deep: #1c2a38;
  --v04a-bg-soft: #34495e;
  --v04a-text: #FAF0E6;
  --v04a-text-muted: #d7c9b6;
  --v04a-primary: #e9b949;
  --v04a-primary-deep: #c8932c;
  --v04a-accent: #e74c3c;
  --v04a-accent-soft: #ff6b5a;
  --v04a-success: #27ae60;
  --v04a-border: rgba(250, 240, 230, 0.14);
  --v04a-shadow: 0 6px 22px rgba(0, 0, 0, 0.35);
  --v04a-radius: 12px;
}

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

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

body {
  font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  background: var(--v04a-bg);
  color: var(--v04a-text);
  line-height: 1.5rem;
  font-size: 1.5rem;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a { color: var(--v04a-primary); text-decoration: none; }
a:hover { color: var(--v04a-primary-deep); }

/* ========== Layout ========== */
.v04a-container { width: 100%; max-width: 430px; margin: 0 auto; padding: 0 1.2rem; }
.v04a-wrapper { min-height: 100vh; display: flex; flex-direction: column; }
.v04a-main { flex: 1; padding-top: 64px; padding-bottom: 2rem; }

/* ========== Header ========== */
.v04a-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: linear-gradient(135deg, var(--v04a-bg-deep), var(--v04a-bg-soft));
  border-bottom: 1px solid var(--v04a-border);
  box-shadow: var(--v04a-shadow);
}
.v04a-header-inner {
  max-width: 430px; margin: 0 auto; height: 64px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 1.2rem;
}
.v04a-brand { display: flex; align-items: center; gap: 0.8rem; }
.v04a-brand img { width: 32px; height: 32px; border-radius: 6px; }
.v04a-brand-name { font-size: 1.8rem; font-weight: 800; color: var(--v04a-primary); letter-spacing: 0.5px; }
.v04a-header-actions { display: flex; align-items: center; gap: 0.6rem; }
.v04a-menu-btn {
  background: transparent; border: 1px solid var(--v04a-border);
  color: var(--v04a-text); width: 40px; height: 40px; border-radius: 8px;
  font-size: 1.8rem; cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.v04a-menu-btn:hover { background: rgba(250, 240, 230, 0.08); }

/* ========== Buttons ========== */
.v04a-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.75rem 1.4rem; border-radius: 10px; font-weight: 700; font-size: 1.3rem;
  cursor: pointer; border: none; min-height: 44px; transition: transform 0.15s ease, filter 0.15s ease;
}
.v04a-btn:active { transform: scale(0.96); }
.v04a-btn-primary { background: linear-gradient(135deg, var(--v04a-primary), var(--v04a-primary-deep)); color: #2C3E50; }
.v04a-btn-primary:hover { filter: brightness(1.08); color: #2C3E50; }
.v04a-btn-accent { background: linear-gradient(135deg, var(--v04a-accent), var(--v04a-accent-soft)); color: #fff; }
.v04a-btn-accent:hover { filter: brightness(1.08); color: #fff; }
.v04a-btn-ghost { background: transparent; border: 1px solid var(--v04a-primary); color: var(--v04a-primary); }
.v04a-btn-ghost:hover { background: rgba(233, 185, 73, 0.12); color: var(--v04a-primary); }
.v04a-btn-block { width: 100%; }
.v04a-btn-sm { padding: 0.55rem 1rem; font-size: 1.2rem; min-height: 36px; }

/* ========== Mobile Menu ========== */
.v04a-mobile-menu {
  position: fixed; top: 64px; left: 0; right: 0; z-index: 9999;
  background: var(--v04a-bg-deep); border-bottom: 1px solid var(--v04a-border);
  max-height: 0; overflow: hidden; transition: max-height 0.3s ease;
}
.v04a-mobile-menu.v04a-menu-open { max-height: 520px; box-shadow: var(--v04a-shadow); }
.v04a-mobile-menu-inner { max-width: 430px; margin: 0 auto; padding: 1rem 1.2rem; }
.v04a-mobile-menu a {
  display: flex; align-items: center; gap: 0.9rem;
  padding: 1rem 0.8rem; border-bottom: 1px solid var(--v04a-border);
  color: var(--v04a-text); font-size: 1.5rem; font-weight: 600;
}
.v04a-mobile-menu a:hover { color: var(--v04a-primary); background: rgba(250, 240, 230, 0.04); }
.v04a-mobile-menu a i { color: var(--v04a-primary); font-size: 1.8rem; width: 24px; text-align: center; }

/* ========== Hero / Carousel ========== */
.v04a-hero { padding: 1.4rem 0 0.8rem; }
.v04a-carousel {
  position: relative; border-radius: var(--v04a-radius); overflow: hidden;
  box-shadow: var(--v04a-shadow); cursor: pointer; background: var(--v04a-bg-deep);
}
.v04a-carousel-track { position: relative; width: 100%; aspect-ratio: 16 / 9; }
.v04a-carousel-slide {
  position: absolute; inset: 0; opacity: 0; transition: opacity 0.6s ease;
}
.v04a-carousel-slide.v04a-slide-active { opacity: 1; }
.v04a-carousel-slide img { width: 100%; height: 100%; object-fit: cover; }
.v04a-carousel-dots {
  position: absolute; bottom: 8px; left: 0; right: 0;
  display: flex; justify-content: center; gap: 6px;
}
.v04a-carousel-dot {
  width: 8px; height: 8px; border-radius: 50%; background: rgba(250, 240, 230, 0.45);
  border: none; cursor: pointer; transition: background 0.2s ease, transform 0.2s ease;
}
.v04a-carousel-dot.v04a-dot-active { background: var(--v04a-primary); transform: scale(1.3); }

/* ========== Section titles ========== */
.v04a-section { padding: 1.6rem 0; }
.v04a-section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.v04a-section-title { font-size: 1.9rem; font-weight: 800; color: var(--v04a-primary); }
.v04a-section-title i { margin-right: 0.5rem; }
.v04a-section-sub { color: var(--v04a-text-muted); font-size: 1.3rem; }

/* ========== Filter chips ========== */
.v04a-filter-bar { display: flex; gap: 0.6rem; overflow-x: auto; padding: 0.4rem 0 1rem; -webkit-overflow-scrolling: touch; }
.v04a-filter-bar::-webkit-scrollbar { display: none; }
.v04a-filter-chip {
  flex: 0 0 auto; padding: 0.5rem 1.2rem; border-radius: 20px;
  background: var(--v04a-bg-soft); color: var(--v04a-text); border: 1px solid var(--v04a-border);
  font-size: 1.25rem; font-weight: 600; cursor: pointer; white-space: nowrap; transition: all 0.2s ease;
}
.v04a-filter-chip.v04a-chip-active { background: var(--v04a-primary); color: #2C3E50; border-color: var(--v04a-primary); }

/* ========== Game grid ========== */
.v04a-game-section { margin-bottom: 1.8rem; }
.v04a-game-section h3 {
  font-size: 1.6rem; color: var(--v04a-primary); margin-bottom: 0.8rem;
  display: flex; align-items: center; gap: 0.5rem;
}
.v04a-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.8rem;
}
.v04a-card {
  background: var(--v04a-bg-soft); border: 1px solid var(--v04a-border);
  border-radius: 10px; overflow: hidden; cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  display: flex; flex-direction: column;
}
.v04a-card:hover { transform: translateY(-3px); box-shadow: var(--v04a-shadow); }
.v04a-card:active { transform: scale(0.97); }
.v04a-card-img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; background: #000; }
.v04a-card-name {
  font-size: 1.1rem; font-weight: 600; color: var(--v04a-text);
  padding: 0.5rem 0.4rem; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* ========== Info cards / features ========== */
.v04a-info-card {
  background: var(--v04a-bg-soft); border: 1px solid var(--v04a-border);
  border-radius: var(--v04a-radius); padding: 1.2rem; margin-bottom: 1rem;
}
.v04a-info-card h3 { color: var(--v04a-primary); font-size: 1.5rem; margin-bottom: 0.6rem; }
.v04a-info-card p { color: var(--v04a-text-muted); font-size: 1.35rem; }
.v04a-feature-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.8rem; }
.v04a-feature-item {
  background: var(--v04a-bg-soft); border-radius: 10px; padding: 1rem;
  text-align: center; border: 1px solid var(--v04a-border);
}
.v04a-feature-item i { font-size: 2.4rem; color: var(--v04a-primary); margin-bottom: 0.5rem; }
.v04a-feature-item h4 { font-size: 1.3rem; color: var(--v04a-text); margin-bottom: 0.3rem; }
.v04a-feature-item p { font-size: 1.15rem; color: var(--v04a-text-muted); }

/* ========== Testimonials ========== */
.v04a-testimonial {
  background: var(--v04a-bg-soft); border-left: 4px solid var(--v04a-primary);
  border-radius: 8px; padding: 1rem 1.2rem; margin-bottom: 0.9rem;
}
.v04a-testimonial p { font-size: 1.3rem; color: var(--v04a-text); font-style: italic; margin-bottom: 0.4rem; }
.v04a-testimonial .v04a-author { font-size: 1.15rem; color: var(--v04a-primary); font-weight: 700; }

/* ========== Payment / winners ========== */
.v04a-chip-row { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.v04a-pay-chip {
  background: var(--v04a-bg-soft); border: 1px solid var(--v04a-border);
  border-radius: 8px; padding: 0.6rem 1rem; font-size: 1.2rem; color: var(--v04a-text);
  display: flex; align-items: center; gap: 0.4rem;
}
.v04a-winner-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.7rem 1rem; background: var(--v04a-bg-soft); border-radius: 8px; margin-bottom: 0.6rem;
}
.v04a-winner-row .v04a-winner-name { font-size: 1.3rem; color: var(--v04a-text); }
.v04a-winner-row .v04a-winner-amount { font-size: 1.35rem; color: var(--v04a-primary); font-weight: 800; }

/* ========== CTA band ========== */
.v04a-cta-band {
  background: linear-gradient(135deg, var(--v04a-accent), var(--v04a-primary-deep));
  border-radius: var(--v04a-radius); padding: 1.4rem; text-align: center; margin: 1.6rem 0;
}
.v04a-cta-band h3 { color: #fff; font-size: 1.7rem; margin-bottom: 0.4rem; }
.v04a-cta-band p { color: rgba(255, 255, 255, 0.92); font-size: 1.25rem; margin-bottom: 0.9rem; }
.v04a-cta-band .v04a-btn { background: #fff; color: var(--v04a-accent); }

/* ========== FAQ ========== */
.v04a-faq-item {
  background: var(--v04a-bg-soft); border: 1px solid var(--v04a-border);
  border-radius: 8px; padding: 1rem 1.2rem; margin-bottom: 0.7rem;
}
.v04a-faq-item h4 { color: var(--v04a-primary); font-size: 1.35rem; margin-bottom: 0.4rem; }
.v04a-faq-item p { color: var(--v04a-text-muted); font-size: 1.25rem; }

/* ========== Footer ========== */
.v04a-footer {
  background: var(--v04a-bg-deep); border-top: 1px solid var(--v04a-border);
  padding: 2rem 0 100px; margin-top: 2rem;
}
.v04a-footer-inner { max-width: 430px; margin: 0 auto; padding: 0 1.2rem; }
.v04a-footer-brand { color: var(--v04a-text-muted); font-size: 1.25rem; margin-bottom: 1rem; line-height: 1.7rem; }
.v04a-footer-links { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: 1rem; }
.v04a-footer-links a {
  background: var(--v04a-bg-soft); border: 1px solid var(--v04a-border);
  padding: 0.5rem 0.9rem; border-radius: 6px; font-size: 1.15rem; color: var(--v04a-text);
}
.v04a-footer-links a:hover { color: var(--v04a-primary); border-color: var(--v04a-primary); }
.v04a-footer-promo { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: 1.2rem; }
.v04a-copyright { color: var(--v04a-text-muted); font-size: 1.1rem; border-top: 1px solid var(--v04a-border); padding-top: 1rem; }

/* ========== Mobile bottom nav ========== */
.v04a-bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 1000;
  height: 62px; background: var(--v04a-bg-deep);
  border-top: 1px solid var(--v04a-border); box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.4);
  display: flex; justify-content: space-around; align-items: stretch;
}
.v04a-bottom-nav-btn {
  flex: 1; min-width: 60px; min-height: 60px;
  background: transparent; border: none; color: var(--v04a-text-muted);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  font-size: 1.05rem; cursor: pointer; transition: color 0.2s ease, transform 0.18s ease;
  position: relative;
}
.v04a-bottom-nav-btn i { font-size: 22px; }
.v04a-bottom-nav-btn .material-icons,
.v04a-bottom-nav-btn .material-icons-outlined,
.v04a-bottom-nav-btn ion-icon { font-size: 24px; }
.v04a-bottom-nav-btn:active { transform: scale(0.92); }
.v04a-bottom-nav-btn:hover { color: var(--v04a-text); }
.v04a-bottom-nav-btn.v04a-nav-current { color: var(--v04a-primary); }
.v04a-bottom-nav-btn.v04a-nav-current::after {
  content: ''; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 28px; height: 3px; background: var(--v04a-primary); border-radius: 0 0 4px 4px;
}
.v04a-nav-badge {
  position: absolute; top: 6px; right: 18px; min-width: 16px; height: 16px;
  background: var(--v04a-accent); color: #fff; font-size: 1rem; font-weight: 700;
  border-radius: 8px; display: flex; align-items: center; justify-content: center; padding: 0 4px;
}

/* ========== Desktop: hide bottom nav, show desktop nav ========== */
.v04a-desktop-nav { display: none; }

@media (min-width: 769px) {
  .v04a-bottom-nav { display: none; }
  .v04a-footer { padding-bottom: 2rem; }
  .v04a-container { max-width: 760px; }
  .v04a-header-inner { max-width: 760px; }
  .v04a-mobile-menu-inner { max-width: 760px; }
  .v04a-footer-inner { max-width: 760px; }
  .v04a-grid { grid-template-columns: repeat(6, 1fr); }
  .v04a-feature-grid { grid-template-columns: repeat(4, 1fr); }
}

/* Mobile bottom padding so content is not hidden behind fixed nav */
@media (max-width: 768px) {
  .v04a-main { padding-bottom: 84px; }
}

/* Utility */
.v04a-text-center { text-align: center; }
.v04a-mt-1 { margin-top: 1rem; }
.v04a-mt-2 { margin-top: 2rem; }
.v04a-mb-1 { margin-bottom: 1rem; }
.v04a-hidden { display: none !important; }
.v04a-prose p { margin-bottom: 0.8rem; color: var(--v04a-text-muted); font-size: 1.35rem; }
.v04a-prose strong { color: var(--v04a-primary); }
