/* jili77 theme stylesheet - all classes use v6db- prefix */
:root {
  --v6db-primary: #DAA520;
  --v6db-primary-dark: #CD853F;
  --v6db-bg: #0D1117;
  --v6db-bg-soft: #161B22;
  --v6db-bg-card: #1C2230;
  --v6db-text: #FAFAD2;
  --v6db-text-muted: #D2B48C;
  --v6db-accent: #CD853F;
  --v6db-muted: #6C757D;
  --v6db-success: #28a745;
  --v6db-danger: #dc3545;
  --v6db-radius: 12px;
  --v6db-header-h: 56px;
  --v6db-bnav-h: 62px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--v6db-bg);
  color: var(--v6db-text);
  font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.5rem;
  font-size: 1.5rem;
  overflow-x: hidden;
}

html, body { max-width: 100%; }

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

/* Layout containers */
.v6db-wrapper { max-width: 430px; margin: 0 auto; min-height: 100vh; position: relative; background: var(--v6db-bg); }
.v6db-container { padding: 0 14px; }

/* Header */
.v6db-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--v6db-header-h);
  background: linear-gradient(90deg, #0D1117 0%, #1C2230 60%, #0D1117 100%);
  border-bottom: 1px solid rgba(218,165,32,0.35);
}
.v6db-header-inner {
  max-width: 430px; margin: 0 auto; height: 100%;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 12px;
}
.v6db-brand { display: flex; align-items: center; gap: 8px; color: var(--v6db-text); }
.v6db-brand img { width: 28px; height: 28px; border-radius: 6px; }
.v6db-brand-name { font-size: 1.7rem; font-weight: 700; color: var(--v6db-primary); letter-spacing: 0.3px; }
.v6db-header-actions { display: flex; align-items: center; gap: 8px; }
.v6db-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 8px 14px; border-radius: 999px; font-size: 1.35rem; font-weight: 700;
  border: none; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease;
  min-height: 38px; line-height: 1; white-space: nowrap;
}
.v6db-btn:active { transform: scale(0.96); }
.v6db-btn-login { background: transparent; color: var(--v6db-text); border: 1px solid var(--v6db-primary); }
.v6db-btn-register { background: linear-gradient(90deg, #DAA520, #CD853F); color: #0D1117; box-shadow: 0 2px 10px rgba(218,165,32,0.35); }
.v6db-menu-btn {
  background: transparent; border: 0; color: var(--v6db-primary);
  font-size: 2rem; cursor: pointer; padding: 4px 8px; line-height: 1;
}

/* Mobile slide-down menu */
.v6db-mobile-menu {
  position: fixed; top: var(--v6db-header-h); left: 0; right: 0; z-index: 9999;
  background: #0D1117; border-bottom: 1px solid rgba(218,165,32,0.25);
  max-height: 0; overflow: hidden; transition: max-height .25s ease;
}
.v6db-mobile-menu.v6db-menu-open { max-height: 80vh; overflow-y: auto; }
.v6db-mobile-menu-inner { max-width: 430px; margin: 0 auto; padding: 10px 14px 18px; }
.v6db-mobile-menu a {
  display: block; padding: 12px 10px; border-bottom: 1px solid rgba(210,180,140,0.12);
  color: var(--v6db-text); font-size: 1.45rem;
}
.v6db-mobile-menu a:hover { color: var(--v6db-primary); }
.v6db-mobile-menu .v6db-cta-row { display: flex; gap: 10px; margin-top: 10px; }
.v6db-mobile-menu .v6db-cta-row .v6db-btn { flex: 1; }

/* Hero / Carousel */
.v6db-main { padding-top: calc(var(--v6db-header-h) + 8px); padding-bottom: 80px; }
.v6db-hero { position: relative; overflow: hidden; border-radius: 0; }
.v6db-slides { position: relative; }
.v6db-slide {
  display: none; position: relative; cursor: pointer;
}
.v6db-slide.v6db-slide-active { display: block; }
.v6db-slide img { width: 100%; height: 220px; object-fit: cover; border-radius: 0; }
.v6db-slide-overlay {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: linear-gradient(transparent, rgba(13,17,23,0.92));
  padding: 16px 16px 18px;
}
.v6db-slide-title { font-size: 1.7rem; font-weight: 800; color: var(--v6db-text); margin: 0 0 4px; }
.v6db-slide-sub { font-size: 1.3rem; color: var(--v6db-text-muted); margin: 0; }
.v6db-dots { display: flex; gap: 6px; justify-content: center; padding: 8px 0; background: #0b0f14; }
.v6db-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(210,180,140,0.35); cursor: pointer; }
.v6db-dot.v6db-dot-active { background: var(--v6db-primary); }

/* Sections */
.v6db-section { padding: 18px 0; }
.v6db-section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.v6db-section-title { font-size: 1.7rem; font-weight: 800; color: var(--v6db-primary); margin: 0; display: flex; align-items: center; gap: 8px; }
.v6db-section-more { color: var(--v6db-text-muted); font-size: 1.25rem; }

/* Game grid */
.v6db-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.v6db-card {
  background: var(--v6db-bg-card); border-radius: var(--v6db-radius); overflow: hidden;
  border: 1px solid rgba(218,165,32,0.15); cursor: pointer; transition: transform .15s ease, border-color .15s ease;
}
.v6db-card:hover { transform: translateY(-2px); border-color: rgba(218,165,32,0.55); }
.v6db-card-img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; background: #0b0f14; }
.v6db-card-name {
  font-size: 1.2rem; color: var(--v6db-text); padding: 6px 8px; text-align: center;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.v6db-card-tag {
  position: absolute; top: 6px; left: 6px; background: var(--v6db-primary); color: #0D1117;
  font-size: 1rem; padding: 2px 6px; border-radius: 6px; font-weight: 700;
}
.v6db-card-wrap { position: relative; }

/* Buttons / CTAs */
.v6db-cta-row { display: flex; gap: 10px; flex-wrap: wrap; }
.v6db-cta { background: linear-gradient(90deg, #DAA520, #CD853F); color: #0D1117; padding: 12px 18px; border-radius: 999px; font-weight: 800; display: inline-flex; gap: 6px; align-items: center; }
.v6db-cta-ghost { background: transparent; color: var(--v6db-primary); border: 1px solid var(--v6db-primary); padding: 12px 18px; border-radius: 999px; font-weight: 700; display: inline-flex; gap: 6px; align-items: center; }

/* Text / SEO blocks */
.v6db-prose { color: var(--v6db-text); font-size: 1.4rem; }
.v6db-prose p { margin: 0 0 10px; line-height: 1.55; }
.v6db-prose h2 { color: var(--v6db-primary); font-size: 1.7rem; margin: 16px 0 8px; }
.v6db-prose h3 { color: var(--v6db-text); font-size: 1.5rem; margin: 12px 0 6px; }
.v6db-prose a { color: var(--v6db-primary); font-weight: 700; text-decoration: underline; }
.v6db-prose ul { padding-left: 18px; margin: 6px 0 12px; }
.v6db-prose li { margin-bottom: 4px; }

/* Info / feature cards */
.v6db-features { display: grid; grid-template-columns: 1fr; gap: 10px; }
.v6db-feature {
  display: flex; gap: 10px; align-items: flex-start; padding: 12px;
  background: var(--v6db-bg-card); border-radius: var(--v6db-radius);
  border-left: 3px solid var(--v6db-primary);
}
.v6db-feature-ico { color: var(--v6db-primary); font-size: 2.2rem; line-height: 1; }
.v6db-feature-title { font-size: 1.45rem; font-weight: 700; color: var(--v6db-text); margin: 0 0 4px; }
.v6db-feature-text { font-size: 1.3rem; color: var(--v6db-text-muted); margin: 0; }

/* RTP table */
.v6db-rtp-table { width: 100%; border-collapse: collapse; background: var(--v6db-bg-card); border-radius: var(--v6db-radius); overflow: hidden; }
.v6db-rtp-table th, .v6db-rtp-table td { padding: 9px 10px; font-size: 1.3rem; text-align: left; border-bottom: 1px solid rgba(210,180,140,0.12); }
.v6db-rtp-table th { color: var(--v6db-primary); background: #161B22; }
.v6db-rtp-table td { color: var(--v6db-text); }

/* Testimonials */
.v6db-testi { background: var(--v6db-bg-card); border-radius: var(--v6db-radius); padding: 12px; margin-bottom: 10px; border-left: 3px solid var(--v6db-primary-dark); }
.v6db-testi-name { font-weight: 700; color: var(--v6db-primary); font-size: 1.35rem; }
.v6db-testi-stars { color: #FFD700; font-size: 1.2rem; margin: 2px 0 4px; }
.v6db-testi-text { color: var(--v6db-text); font-size: 1.3rem; margin: 0; }

/* Payment chips */
.v6db-pay-row { display: flex; flex-wrap: wrap; gap: 8px; }
.v6db-pay {
  flex: 1 1 30%; text-align: center; padding: 10px 6px; background: var(--v6db-bg-card);
  border-radius: 10px; border: 1px solid rgba(218,165,32,0.18);
  color: var(--v6db-text); font-size: 1.25rem;
}
.v6db-pay i { color: var(--v6db-primary); display: block; margin-bottom: 4px; font-size: 2rem; }

/* Winners ticker */
.v6db-winner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 10px; background: var(--v6db-bg-card); border-radius: 8px; margin-bottom: 6px;
  font-size: 1.25rem;
}
.v6db-winner-name { color: var(--v6db-text); font-weight: 600; }
.v6db-winner-amount { color: var(--v6db-primary); font-weight: 800; }

/* FAQ */
.v6db-faq-item { background: var(--v6db-bg-card); border-radius: 10px; padding: 10px 12px; margin-bottom: 8px; border-left: 3px solid var(--v6db-primary); }
.v6db-faq-q { font-weight: 700; color: var(--v6db-primary); font-size: 1.35rem; margin: 0 0 4px; }
.v6db-faq-a { color: var(--v6db-text); font-size: 1.3rem; margin: 0; }

/* Footer */
.v6db-footer { background: #0b0f14; border-top: 1px solid rgba(218,165,32,0.2); padding: 20px 14px 24px; }
.v6db-footer h3 { color: var(--v6db-primary); font-size: 1.5rem; margin: 0 0 8px; }
.v6db-footer p { color: var(--v6db-text-muted); font-size: 1.25rem; margin: 0 0 12px; line-height: 1.5; }
.v6db-footer-links { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 14px; }
.v6db-footer-links a { color: var(--v6db-text); font-size: 1.25rem; padding: 4px 0; }
.v6db-footer-cta { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.v6db-copy { color: var(--v6db-muted); font-size: 1.15rem; text-align: center; padding-top: 8px; border-top: 1px solid rgba(210,180,140,0.08); }

/* Mobile bottom navigation */
.v6db-bnav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 1000; height: var(--v6db-bnav-h);
  background: linear-gradient(180deg, #161B22, #0D1117);
  border-top: 1px solid rgba(218,165,32,0.35);
  display: flex; justify-content: space-around; align-items: center;
  max-width: 430px; margin: 0 auto;
}
.v6db-bnav-item {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  color: var(--v6db-text-muted); font-size: 1.05rem; cursor: pointer; gap: 2px;
  min-width: 60px; min-height: 60px; transition: color .15s ease, transform .15s ease;
  background: transparent; border: 0;
}
.v6db-bnav-item i, .v6db-bnav-item .material-icons-outlined { font-size: 22px; }
.v6db-bnav-item:hover { color: var(--v6db-primary); }
.v6db-bnav-item:active { transform: scale(0.92); }
.v6db-bnav-active { color: var(--v6db-primary) !important; }
.v6db-bnav-active::after {
  content: ""; display: block; width: 22px; height: 3px; border-radius: 2px; background: var(--v6db-primary); margin-top: 2px;
}
.v6db-bnav-badge {
  position: absolute; top: 8px; right: 22%; background: var(--v6db-danger); color: #fff;
  font-size: 0.9rem; padding: 1px 5px; border-radius: 10px; font-weight: 700;
}
.v6db-bnav-wrap { position: relative; flex: 1; display: flex; justify-content: center; }

/* Helper pills */
.v6db-pill { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 1.1rem; background: rgba(218,165,32,0.18); color: var(--v6db-primary); margin-right: 6px; }
.v6db-note { font-size: 1.2rem; color: var(--v6db-muted); font-style: italic; }

/* Responsive: hide bottom nav on desktop */
@media (min-width: 769px) {
  .v6db-bnav { display: none; }
  .v6db-main { padding-bottom: 24px; }
}

@media (max-width: 768px) {
  .v6db-main { padding-bottom: calc(var(--v6db-bnav-h) + 16px); }
}
