/* ===========================================================
 * 58uu - theme-3848.css
 * All custom classes use the "w3848-" prefix.
 * Palette: #F0F8FF | #141414 | #E0FFFF | #00BFFF
 * Mobile-first, max-width 430px.
 * =========================================================== */

:root {
  --w3848-primary: #00BFFF;
  --w3848-bg: #141414;
  --w3848-text: #F0F8FF;
  --w3848-soft: #E0FFFF;
  --w3848-card: #1f2429;
  --w3848-card2: #232a31;
  --w3848-border: #2c333a;
  --w3848-muted: #9fb3c1;
  --w3848-gold: #ffd166;
  --w3848-grad: linear-gradient(135deg, #00BFFF 0%, #0077cc 100%);
}

* { box-sizing: border-box; }

html {
  font-size: 62.5%; /* 1rem = 10px */
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--w3848-bg);
  color: var(--w3848-text);
  font-family: "Be Vietnam Pro", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  font-size: 1.5rem;
  line-height: 1.5rem;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

.w3848-wrapper {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1.2rem;
}

/* ----------------- Header ----------------- */
.w3848-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(20, 20, 20, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--w3848-border);
}
.w3848-header-inner {
  max-width: 430px;
  margin: 0 auto;
  padding: 0.6rem 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}
.w3848-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex: 1;
  min-width: 0;
}
.w3848-logo {
  width: 3rem; height: 3rem;
  border-radius: 0.7rem;
  background: var(--w3848-grad);
  display: flex; align-items: center; justify-content: center;
  color: #141414;
  font-weight: 800;
  font-size: 1.5rem;
}
.w3848-brand-name {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--w3848-text);
  white-space: nowrap;
}
.w3848-brand-name span { color: var(--w3848-primary); }

.w3848-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 3.6rem;
  padding: 0 1.2rem;
  border-radius: 2rem;
  font-weight: 700;
  font-size: 1.4rem;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, filter 0.15s ease;
}
.w3848-btn:active { transform: scale(0.96); }
.w3848-btn-primary { background: var(--w3848-grad); color: #141414; }
.w3848-btn-ghost {
  background: transparent;
  color: var(--w3848-text);
  border: 1px solid var(--w3848-primary);
}
.w3848-btn-block {
  width: 100%;
  display: flex;
  margin: 1rem 0;
}
.w3848-btn-lg { min-height: 4.6rem; font-size: 1.6rem; }

.w3848-menu-btn {
  background: transparent;
  border: none;
  color: var(--w3848-text);
  font-size: 1.9rem;
  width: 3.6rem; height: 3.6rem;
  border-radius: 0.6rem;
  cursor: pointer;
}

/* Expandable nav menu */
.w3848-mobile-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  background: #181d22;
  border-top: 1px solid var(--w3848-border);
}
.w3848-mobile-menu.w3848-open { max-height: 420px; }
.w3848-mobile-menu .w3848-wrapper { padding: 0.6rem 1.2rem 1rem; }
.w3848-menu-link {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 1.1rem 0.6rem;
  border-bottom: 1px solid var(--w3848-border);
  color: var(--w3848-text);
  font-size: 1.5rem;
}
.w3848-menu-link i { color: var(--w3848-primary); width: 2.2rem; text-align: center; }

/* ----------------- Hero carousel ----------------- */
.w3848-main { padding-top: 6rem; }
.w3848-hero {
  position: relative;
  margin: 1rem 0 1.4rem;
  border-radius: 1.4rem;
  overflow: hidden;
  box-shadow: 0 0.6rem 1.8rem rgba(0, 0, 0, 0.45);
}
.w3848-slide {
  display: none;
  position: relative;
}
.w3848-slide.w3848-active { display: block; }
.w3848-slide img { width: 100%; height: 200px; object-fit: cover; }
.w3848-slide-cap {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 1rem 1.2rem;
  background: linear-gradient(transparent, rgba(20, 20, 20, 0.88));
}
.w3848-slide-cap h2 { margin: 0 0 0.3rem; font-size: 1.7rem; color: var(--w3848-soft); }
.w3848-slide-cap p { margin: 0; font-size: 1.3rem; color: var(--w3848-muted); }
.w3848-slide-cap strong { color: var(--w3848-primary); }

.w3848-dots {
  position: absolute;
  bottom: 0.8rem; right: 1rem;
  display: flex; gap: 0.5rem;
}
.w3848-dot {
  width: 0.7rem; height: 0.7rem;
  border-radius: 50%;
  background: rgba(240, 248, 255, 0.45);
  border: none; cursor: pointer;
}
.w3848-dot.w3848-active { background: var(--w3848-primary); }

/* ----------------- Section ----------------- */
.w3848-section { margin: 2rem 0; }
.w3848-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}
.w3848-section-title {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--w3848-soft);
  display: flex; align-items: center; gap: 0.6rem;
  margin: 0;
}
.w3848-section-title i { color: var(--w3848-primary); }
.w3848-section-more { font-size: 1.3rem; color: var(--w3848-primary); }

.w3848-text-link { color: var(--w3848-primary); font-weight: 700; }
.w3848-text-link:hover { text-decoration: underline; }

.w3848-h1 {
  font-size: 2.1rem;
  font-weight: 800;
  color: var(--w3848-text);
  margin: 1.4rem 0 0.8rem;
  line-height: 1.35;
}
.w3848-h1 span { color: var(--w3848-primary); }
.w3848-lead {
  font-size: 1.5rem;
  color: var(--w3848-muted);
  margin: 0 0 1.2rem;
}
.w3848-h2 {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--w3848-soft);
  margin: 1.8rem 0 0.8rem;
  line-height: 1.35;
}
.w3848-p {
  font-size: 1.5rem;
  color: var(--w3848-text);
  margin: 0 0 1rem;
  line-height: 1.55;
}

/* ----------------- Game grid ----------------- */
.w3848-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
}
.w3848-game {
  display: block;
  background: var(--w3848-card);
  border: 1px solid var(--w3848-border);
  border-radius: 1rem;
  padding: 0.7rem;
  text-align: center;
  transition: transform 0.15s ease, border-color 0.15s ease;
  cursor: pointer;
}
.w3848-game:hover {
  transform: translateY(-2px);
  border-color: var(--w3848-primary);
}
.w3848-game img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 0.7rem;
  margin-bottom: 0.5rem;
}
.w3848-game-name {
  font-size: 1.2rem;
  color: var(--w3848-text);
  font-weight: 600;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  min-height: 3rem;
}

/* ----------------- Card / feature ----------------- */
.w3848-card {
  background: var(--w3848-card);
  border: 1px solid var(--w3848-border);
  border-radius: 1.2rem;
  padding: 1.3rem;
  margin-bottom: 1rem;
}
.w3848-card-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--w3848-soft);
  margin: 0 0 0.6rem;
}
.w3848-feature-row {
  display: flex; align-items: center; gap: 1rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--w3848-border);
}
.w3848-feature-row:last-child { border-bottom: none; }
.w3848-feature-icon {
  width: 3.6rem; height: 3.6rem;
  border-radius: 0.8rem;
  background: rgba(0, 191, 255, 0.12);
  color: var(--w3848-primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem;
  flex-shrink: 0;
}

/* RTP compact bars */
.w3848-rtp-row { margin-bottom: 0.9rem; }
.w3848-rtp-top {
  display: flex; justify-content: space-between;
  font-size: 1.35rem; margin-bottom: 0.3rem;
}
.w3848-rtp-bar {
  height: 0.8rem;
  background: #0c0f12;
  border-radius: 0.6rem;
  overflow: hidden;
}
.w3848-rtp-fill {
  height: 100%;
  background: var(--w3848-grad);
  border-radius: 0.6rem;
}

/* Testimonial */
.w3848-quote {
  background: var(--w3848-card2);
  border-left: 3px solid var(--w3848-primary);
  border-radius: 0.8rem;
  padding: 1rem 1.2rem;
  margin-bottom: 0.9rem;
}
.w3848-quote p { margin: 0 0 0.5rem; font-size: 1.4rem; color: var(--w3848-text); }
.w3848-quote .w3848-by { font-size: 1.25rem; color: var(--w3848-muted); }

/* Payment chips */
.w3848-chips { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.w3848-chip {
  background: var(--w3848-card2);
  border: 1px solid var(--w3848-border);
  color: var(--w3848-text);
  border-radius: 0.7rem;
  padding: 0.6rem 1rem;
  font-size: 1.3rem;
  display: inline-flex; align-items: center; gap: 0.4rem;
}

/* Winner showcase */
.w3848-winner {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--w3848-border);
  font-size: 1.35rem;
}
.w3848-winner:last-child { border-bottom: none; }
.w3848-winner b { color: var(--w3848-gold); }
.w3848-winner small { color: var(--w3848-muted); }

/* Steps */
.w3848-steps { counter-reset: step; }
.w3848-step {
  position: relative;
  padding: 0.6rem 0 0.6rem 3.4rem;
  margin-bottom: 0.5rem;
  font-size: 1.4rem;
}
.w3848-step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0; top: 0.4rem;
  width: 2.4rem; height: 2.4rem;
  border-radius: 50%;
  background: var(--w3848-grad);
  color: #141414;
  font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
}

/* CTA banner */
.w3848-cta {
  background: var(--w3848-grad);
  border-radius: 1.4rem;
  padding: 1.4rem;
  text-align: center;
  color: #141414;
  margin: 1.6rem 0;
}
.w3848-cta h3 { margin: 0 0 0.4rem; font-size: 1.8rem; }
.w3848-cta p { margin: 0 0 1rem; font-size: 1.35rem; color: #0d2230; }
.w3848-cta .w3848-btn { background: #141414; color: var(--w3848-soft); }

/* App download CTA */
.w3848-app-row {
  display: flex; align-items: center; gap: 1rem;
  background: var(--w3848-card2);
  border: 1px solid var(--w3848-border);
  border-radius: 1.2rem;
  padding: 1.1rem;
  margin-bottom: 0.9rem;
}
.w3848-app-row .w3848-feature-icon { background: rgba(0,191,255,0.18); }
.w3848-app-row h4 { margin: 0 0 0.3rem; font-size: 1.5rem; color: var(--w3848-soft); }
.w3848-app-row p { margin: 0; font-size: 1.3rem; color: var(--w3848-muted); }

/* ----------------- Footer ----------------- */
.w3848-footer {
  margin-top: 2rem;
  background: #0f1316;
  border-top: 1px solid var(--w3848-border);
  padding: 2rem 0 6rem;
}
.w3848-footer h4 {
  font-size: 1.5rem;
  color: var(--w3848-soft);
  margin: 1.2rem 0 0.6rem;
}
.w3848-footer p { font-size: 1.35rem; color: var(--w3848-muted); line-height: 1.55; }
.w3848-footer-links {
  display: flex; flex-wrap: wrap; gap: 0.6rem 1.2rem;
  margin: 0.6rem 0;
}
.w3848-footer-links a { font-size: 1.3rem; color: var(--w3848-text); }
.w3848-footer-links a:hover { color: var(--w3848-primary); }
.w3848-footer-copy {
  font-size: 1.2rem;
  color: var(--w3848-muted);
  border-top: 1px solid var(--w3848-border);
  padding-top: 1rem;
  margin-top: 1rem;
  text-align: center;
}

/* ----------------- Bottom nav ----------------- */
.w3848-bottomnav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(15, 19, 22, 0.98);
  backdrop-filter: blur(8px);
  border-top: 1px solid var(--w3848-border);
  display: flex;
  justify-content: space-around;
  align-items: stretch;
  height: 62px;
  padding: 0.3rem 0;
}
.w3848-bottomnav-btn {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--w3848-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  font-size: 1.1rem;
  cursor: pointer;
  min-width: 60px;
  min-height: 56px;
  transition: color 0.15s ease, transform 0.15s ease;
}
.w3848-bottomnav-btn:active { transform: scale(0.92); }
.w3848-bottomnav-btn i,
.w3848-bottomnav-btn .material-icons-outlined,
.w3848-bottomnav-btn ion-icon { font-size: 22px; }
.w3848-bottomnav-btn.w3848-current { color: var(--w3848-primary); }
.w3848-bottomnav-btn.w3848-promo { color: var(--w3848-gold); }

/* ----------------- Desktop ----------------- */
@media (min-width: 769px) {
  .w3848-bottomnav { display: none; }
  body { padding-bottom: 0; }
}

/* Mobile content clearance for fixed bottom nav */
@media (max-width: 768px) {
  .w3848-footer { padding-bottom: 8rem; }
  main.w3848-main { padding-bottom: 8rem; }
}

/* Desktop wider shell */
@media (min-width: 431px) {
  body { background: #0b0e10; }
  .w3848-header, .w3848-footer { background-clip: padding-box; }
}
