/* c54 mobi - style-6dc5.css
   Mobile-first HTML5 casino/gaming stylesheet.
   All custom classes use the "v57d-" prefix for namespace isolation.
   Color palette: #8B4513 (saddle brown) | #AFEEEE (pale turquoise)
                  #0D1117 (deep ink) | #BC8F8F (rosy brown) | #E0FFFF (light cyan)
   Dark backgrounds + light text for high-contrast mobile readability.
   Root font-size = 62.5% so 1rem = 10px. Code comments in English.
*/

:root {
  --v57d-primary: #8B4513;
  --v57d-accent: #AFEEEE;
  --v57d-bg: #0D1117;
  --v57d-bg-2: #141b26;
  --v57d-bg-3: #1b2533;
  --v57d-muted: #BC8F8F;
  --v57d-light: #E0FFFF;
  --v57d-gold: #d9a866;
  --v57d-success: #4caf91;
  --v57d-danger: #c75a5a;
  --v57d-radius: 12px;
  --v57d-radius-lg: 20px;
  --v57d-shadow: 0 6px 22px rgba(0, 0, 0, 0.45);
  --v57d-header-h: 56px;
  --v57d-bottom-h: 62px;
  --v57d-max: 430px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: "Be Vietnam Pro", "Segoe UI", Roboto, Arial, sans-serif;
  background: radial-gradient(circle at 50% -10%, #1a2433 0%, var(--v57d-bg) 60%);
  color: var(--v57d-light);
  line-height: 1.5rem;
  font-size: 1.5rem;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.v57d-wrapper {
  width: 100%;
  max-width: var(--v57d-max);
  margin: 0 auto;
  min-height: 100vh;
  position: relative;
  background: linear-gradient(180deg, #0d1117 0%, #101723 40%, #0d1117 100%);
}

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

/* ---------- Header ---------- */
.v57d-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--v57d-header-h);
  z-index: 1000;
  background: linear-gradient(90deg, #0b1118 0%, #18222f 100%);
  border-bottom: 2px solid var(--v57d-primary);
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.6);
}
.v57d-header-inner {
  max-width: var(--v57d-max);
  height: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.2rem;
}
.v57d-logo {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--v57d-light);
  font-weight: 800;
  font-size: 1.7rem;
}
.v57d-logo img { width: 28px; height: 28px; border-radius: 6px; }
.v57d-logo b { color: var(--v57d-gold); }
.v57d-header-actions { display: flex; align-items: center; gap: 0.6rem; }
.v57d-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: none;
  border-radius: 999px;
  padding: 0.7rem 1.3rem;
  font-size: 1.3rem;
  font-weight: 700;
  cursor: pointer;
  min-height: 38px;
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}
.v57d-btn:active { transform: scale(0.94); }
.v57d-btn-primary {
  background: linear-gradient(135deg, var(--v57d-primary) 0%, #b07235 100%);
  color: var(--v57d-light);
  box-shadow: 0 4px 12px rgba(139, 69, 19, 0.5);
}
.v57d-btn-ghost {
  background: transparent;
  color: var(--v57d-accent);
  border: 1.5px solid var(--v57d-accent);
}
.v57d-menu-btn {
  background: transparent;
  border: none;
  color: var(--v57d-light);
  font-size: 2.2rem;
  cursor: pointer;
  min-width: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---------- Mobile nav drawer ---------- */
.v57d-mobile-nav {
  position: fixed;
  top: var(--v57d-header-h);
  right: 0;
  width: 78%;
  max-width: 320px;
  background: #0e151f;
  border-left: 1px solid #2a3441;
  border-bottom: 1px solid #2a3441;
  transform: translateX(110%);
  transition: transform 0.28s ease;
  z-index: 9999;
  padding: 1rem 0.6rem;
  height: calc(100vh - var(--v57d-header-h));
  overflow-y: auto;
}
.v57d-mobile-nav.v57d-menu-open { transform: translateX(0); }
.v57d-mobile-nav a {
  display: block;
  padding: 1rem 1.2rem;
  color: var(--v57d-light);
  border-radius: 10px;
  margin: 0.3rem 0;
  font-size: 1.5rem;
}
.v57d-mobile-nav a:active { background: var(--v57d-bg-3); }
.v57d-mobile-nav a i { color: var(--v57d-gold); margin-right: 0.8rem; }

/* ---------- Main / hero ---------- */
main { padding-top: calc(var(--v57d-header-h) + 6px); }
.v57d-section { padding: 1.6rem 1.2rem; }
.v57d-section-title {
  font-size: 2rem;
  font-weight: 800;
  margin: 0 0 1rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--v57d-light);
}
.v57d-section-title i { color: var(--v57d-gold); }
.v57d-section-title span.en { color: var(--v57d-accent); font-weight: 700; }

/* Carousel */
.v57d-carousel {
  position: relative;
  border-radius: var(--v57d-radius-lg);
  overflow: hidden;
  margin: 1rem 0;
  box-shadow: var(--v57d-shadow);
}
.v57d-carousel-track {
  display: flex;
  transition: transform 0.5s ease;
  will-change: transform;
}
.v57d-slide {
  flex: 0 0 100%;
  position: relative;
  cursor: pointer;
}
.v57d-slide img { width: 100%; height: 180px; object-fit: cover; }
.v57d-slide-caption {
  position: absolute;
  left: 1rem; bottom: 1rem;
  background: rgba(13, 17, 23, 0.78);
  padding: 0.6rem 1rem;
  border-radius: 10px;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--v57d-light);
  border-left: 3px solid var(--v57d-gold);
}
.v57d-carousel-dots {
  position: absolute;
  bottom: 0.7rem; right: 0.9rem;
  display: flex; gap: 0.5rem;
}
.v57d-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(224, 255, 255, 0.45);
}
.v57d-dot.v57d-dot-active { background: var(--v57d-gold); width: 18px; border-radius: 5px; }

/* Hero CTA */
.v57d-hero {
  padding: 1.4rem 1.2rem 0.4rem;
  text-align: center;
}
.v57d-hero h1 {
  font-size: 2.4rem;
  line-height: 1.25;
  margin: 0 0 0.6rem;
  color: var(--v57d-light);
}
.v57d-hero h1 b { color: var(--v57d-gold); }
.v57d-hero p { color: #c7d3e0; margin: 0 0 1rem; font-size: 1.4rem; }
.v57d-hero-cta { display: flex; gap: 0.8rem; justify-content: center; flex-wrap: wrap; }

/* ---------- Filter chips ---------- */
.v57d-filters {
  display: flex;
  gap: 0.6rem;
  overflow-x: auto;
  padding: 0.4rem 0 1rem;
  -webkit-overflow-scrolling: touch;
}
.v57d-filters::-webkit-scrollbar { display: none; }
.v57d-filter-chip {
  flex: 0 0 auto;
  padding: 0.6rem 1.2rem;
  border-radius: 999px;
  background: var(--v57d-bg-2);
  color: #b9c6d6;
  font-size: 1.3rem;
  font-weight: 600;
  border: 1px solid #2a3441;
  cursor: pointer;
}
.v57d-filter-chip.v57d-nav-active {
  background: linear-gradient(135deg, var(--v57d-primary), #b07235);
  color: var(--v57d-light);
  border-color: var(--v57d-gold);
}

/* ---------- Game grid ---------- */
.v57d-game-section { margin-bottom: 1.4rem; }
.v57d-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.7rem;
}
.v57d-game-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--v57d-bg-2);
  border-radius: var(--v57d-radius);
  padding: 0.6rem 0.4rem 0.5rem;
  border: 1px solid #243040;
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease;
  overflow: hidden;
}
.v57d-game-card:active { transform: scale(0.95); border-color: var(--v57d-gold); }
.v57d-game-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 8px;
}
.v57d-game-name {
  font-size: 1.05rem;
  text-align: center;
  margin-top: 0.4rem;
  color: #d4e0ee;
  line-height: 1.2;
  height: 2.6rem;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.v57d-game-tag {
  font-size: 0.95rem;
  color: var(--v57d-gold);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 700;
  margin-top: 0.2rem;
}

/* ---------- Cards / generic blocks ---------- */
.v57d-card {
  background: linear-gradient(160deg, var(--v57d-bg-2), #0e151f);
  border: 1px solid #243040;
  border-radius: var(--v57d-radius-lg);
  padding: 1.4rem;
  margin: 1rem 0;
  box-shadow: var(--v57d-shadow);
}
.v57d-card h2 {
  font-size: 1.9rem;
  margin: 0 0 0.8rem;
  color: var(--v57d-light);
}
.v57d-card h3 {
  font-size: 1.6rem;
  margin: 1rem 0 0.5rem;
  color: var(--v57d-accent);
}
.v57d-card p { color: #c3cfdc; margin: 0 0 0.8rem; }
.v57d-card ul { padding-left: 1.6rem; color: #c3cfdc; }
.v57d-card li { margin-bottom: 0.5rem; }
.v57d-card a { color: var(--v57d-gold); font-weight: 700; }
.v57d-card strong { color: var(--v57d-light); }

/* Inline promo link */
.v57d-promo-link {
  color: var(--v57d-gold);
  font-weight: 800;
  cursor: pointer;
  border-bottom: 2px dotted var(--v57d-gold);
}

/* Feature / highlights list */
.v57d-features { display: grid; gap: 0.8rem; }
.v57d-feature {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: var(--v57d-bg-2);
  padding: 1rem;
  border-radius: var(--v57d-radius);
  border-left: 3px solid var(--v57d-gold);
}
.v57d-feature i { font-size: 2.2rem; color: var(--v57d-accent); min-width: 28px; }
.v57d-feature h4 { margin: 0 0 0.3rem; font-size: 1.5rem; color: var(--v57d-light); }
.v57d-feature p { margin: 0; font-size: 1.3rem; color: #b7c4d4; }

/* Stat grid (RTP / achievements) */
.v57d-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.7rem;
}
.v57d-stat {
  background: var(--v57d-bg-2);
  border-radius: var(--v57d-radius);
  padding: 1rem;
  text-align: center;
  border: 1px solid #243040;
}
.v57d-stat .num { font-size: 2.2rem; font-weight: 800; color: var(--v57d-gold); }
.v57d-stat .lbl { font-size: 1.15rem; color: #aeb9c8; margin-top: 0.3rem; }

/* Testimonials */
.v57d-testimonials { display: grid; gap: 0.8rem; }
.v57d-testimonial {
  background: var(--v57d-bg-2);
  border-radius: var(--v57d-radius);
  padding: 1rem 1.2rem;
  border-left: 3px solid var(--v57d-accent);
}
.v57d-testimonial .who { color: var(--v57d-gold); font-weight: 700; font-size: 1.3rem; }
.v57d-testimonial .stars { color: #f2c14e; font-size: 1.3rem; margin: 0.3rem 0; }
.v57d-testimonial p { margin: 0; color: #c3cfdc; font-size: 1.35rem; }

/* Payment methods */
.v57d-payments {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  justify-content: center;
}
.v57d-payment {
  background: var(--v57d-bg-2);
  border: 1px solid #2a3441;
  border-radius: 10px;
  padding: 0.8rem 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.25rem;
  color: #cfd9e6;
}
.v57d-payment i { color: var(--v57d-accent); font-size: 1.8rem; }

/* Winners strip */
.v57d-winners {
  display: flex;
  gap: 0.7rem;
  overflow-x: auto;
  padding: 0.4rem 0.1rem 0.8rem;
}
.v57d-winners::-webkit-scrollbar { display: none; }
.v57d-winner {
  flex: 0 0 auto;
  background: var(--v57d-bg-2);
  border: 1px solid #2a3441;
  border-radius: 10px;
  padding: 0.7rem 1rem;
  min-width: 150px;
}
.v57d-winner .name { color: var(--v57d-gold); font-weight: 700; font-size: 1.3rem; }
.v57d-winner .amt { color: var(--v57d-success); font-weight: 800; font-size: 1.5rem; }
.v57d-winner .game { color: #97a4b5; font-size: 1.15rem; }

/* App download CTA */
.v57d-app-cta {
  background: linear-gradient(135deg, #1a2330, #0e151f);
  border: 1px solid var(--v57d-primary);
  border-radius: var(--v57d-radius-lg);
  padding: 1.4rem;
  text-align: center;
  margin: 1rem 0;
}
.v57d-app-cta h3 { color: var(--v57d-light); margin: 0 0 0.5rem; font-size: 1.8rem; }
.v57d-app-cta p { color: #b7c4d4; margin: 0 0 1rem; }
.v57d-app-buttons { display: flex; gap: 0.7rem; justify-content: center; flex-wrap: wrap; }

/* FAQ */
.v57d-faq-item {
  background: var(--v57d-bg-2);
  border: 1px solid #243040;
  border-radius: var(--v57d-radius);
  margin-bottom: 0.7rem;
  overflow: hidden;
}
.v57d-faq-q {
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  color: var(--v57d-light);
  font-size: 1.4rem;
  font-weight: 700;
  padding: 1.1rem 1.2rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.6rem;
}
.v57d-faq-q i { color: var(--v57d-gold); transition: transform 0.2s ease; }
.v57d-faq-open .v57d-faq-q i { transform: rotate(180deg); }
.v57d-faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  color: #c3cfdc;
  padding: 0 1.2rem;
}

/* Reveal animation */
.v57d-reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.5s ease, transform 0.5s ease; }
.v57d-reveal.v57d-revealed { opacity: 1; transform: translateY(0); }

/* Back to top */
.v57d-back-top {
  position: fixed;
  right: 1.2rem;
  bottom: calc(var(--v57d-bottom-h) + 1.2rem);
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--v57d-primary);
  color: var(--v57d-light);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 900;
}
.v57d-back-top.v57d-back-show { opacity: 1; pointer-events: auto; }

/* ---------- Footer ---------- */
.v57d-footer {
  background: #0a0f16;
  border-top: 2px solid var(--v57d-primary);
  padding: 1.6rem 1.2rem 2rem;
  margin-top: 1rem;
}
.v57d-footer-brand { color: #aeb9c8; font-size: 1.3rem; margin-bottom: 1rem; line-height: 1.6; }
.v57d-footer-brand b { color: var(--v57d-gold); }
.v57d-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  margin: 0.6rem 0 1rem;
}
.v57d-footer-links a { color: var(--v57d-accent); font-size: 1.25rem; }
.v57d-footer-promos { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 0.6rem 0 1rem; }
.v57d-footer-promos .v57d-btn { font-size: 1.2rem; padding: 0.6rem 1.1rem; }
.v57d-footer-copy { color: #6b7787; font-size: 1.15rem; border-top: 1px solid #1c2531; padding-top: 1rem; }

/* ---------- Mobile bottom nav ---------- */
.v57d-bottom-nav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: var(--v57d-bottom-h);
  background: linear-gradient(180deg, #11192355, #0a0f16 30%);
  backdrop-filter: blur(8px);
  border-top: 1.5px solid var(--v57d-primary);
  display: flex;
  justify-content: space-around;
  align-items: stretch;
  z-index: 1000;
}
.v57d-bottom-nav-inner {
  max-width: var(--v57d-max);
  width: 100%;
  margin: 0 auto;
  display: flex;
  justify-content: space-around;
  align-items: stretch;
}
.v57d-nav-btn {
  flex: 1;
  min-width: 60px;
  min-height: 60px;
  background: transparent;
  border: none;
  color: #9aa7b7;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  cursor: pointer;
  position: relative;
  padding: 0.4rem 0;
  transition: color 0.18s ease, transform 0.18s ease;
}
.v57d-nav-btn i, .v57d-nav-btn .material-icons-outlined, .v57d-nav-btn .ionicon { font-size: 24px; }
.v57d-nav-btn .v57d-nav-label { font-size: 1.05rem; font-weight: 600; }
.v57d-nav-btn:active { transform: scale(0.92); color: var(--v57d-gold); }
.v57d-nav-btn.v57d-nav-current { color: var(--v57d-gold); }
.v57d-nav-btn.v57d-nav-current::before {
  content: "";
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 26px; height: 3px;
  border-radius: 0 0 4px 4px;
  background: var(--v57d-gold);
}
.v57d-nav-btn.v57d-nav-promo {
  color: var(--v57d-accent);
}
.v57d-nav-btn.v57d-nav-promo .v57d-nav-label { color: var(--v57d-gold); font-weight: 700; }
.v57d-nav-badge {
  position: absolute;
  top: 4px; right: 18px;
  background: var(--v57d-danger);
  color: #fff;
  font-size: 0.9rem;
  border-radius: 999px;
  padding: 0 0.4rem;
  min-width: 16px; height: 16px;
  display: flex; align-items: center; justify-content: center;
  line-height: 1;
}

/* Desktop: hide bottom nav, widen wrapper */
@media (min-width: 769px) {
  .v57d-bottom-nav { display: none; }
  body { background: #0d1117; }
}

/* Mobile bottom padding so content is not hidden by the nav bar */
@media (max-width: 768px) {
  main { padding-bottom: calc(var(--v57d-bottom-h) + 16px); }
  .v57d-footer { padding-bottom: calc(var(--v57d-bottom-h) + 1.6rem); }
}

/* Small phones: 3-col grid to avoid cramping */
@media (max-width: 360px) {
  .v57d-game-grid { grid-template-columns: repeat(3, 1fr); }
  .v57d-hero h1 { font-size: 2rem; }
}
