/* ============================================================
 * af88 apk - core stylesheet (prefix: v888-)
 * Palette: #2E4057 (deep) / #F0FDFF (light) + accents
 * Mobile-first, max-width 430px.
 * ============================================================ */

:root {
  --v888-bg: #2E4057;
  --v888-bg-deep: #1d2c3c;
  --v888-bg-soft: #3a5168;
  --v888-text: #F0FDFF;
  --v888-text-dim: #b6c7d6;
  --v888-primary: #F0FDFF;
  --v888-accent: #f5b301;
  --v888-accent-2: #ff6b4a;
  --v888-gold: #ffd24c;
  --v888-line: rgba(240, 253, 255, 0.12);
  --v888-radius: 14px;
  --v888-shadow: 0 6px 24px rgba(0, 0, 0, 0.28);
  --v888-max: 430px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  padding: 0;
  background: var(--v888-bg);
  color: var(--v888-text);
  font-family: "Segoe UI", "Helvetica Neue", Arial, "Noto Sans", system-ui, sans-serif;
  font-size: 1.5rem;
  line-height: 1.5rem;
  -webkit-font-smoothing: antialiased;
}

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

.v888-wrapper {
  max-width: var(--v888-max);
  margin: 0 auto;
  padding: 0 1.4rem;
  position: relative;
}

main { padding-bottom: 92px; }

/* ---------- Header ---------- */
.v888-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: linear-gradient(180deg, var(--v888-bg-deep) 0%, rgba(45,64,87,0.94) 100%);
  border-bottom: 1px solid var(--v888-line);
  transition: box-shadow .25s ease;
}
.v888-header--scrolled { box-shadow: var(--v888-shadow); }
.v888-header-inner {
  max-width: var(--v888-max);
  margin: 0 auto;
  height: 60px;
  padding: 0 1.2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .8rem;
}
.v888-brand {
  display: flex;
  align-items: center;
  gap: .8rem;
  color: var(--v888-text);
  font-weight: 700;
  font-size: 1.7rem;
}
.v888-brand img { width: 30px; height: 30px; border-radius: 6px; }
.v888-brand span { color: var(--v888-gold); letter-spacing: .3px; }
.v888-header-actions { display: flex; align-items: center; gap: .55rem; }
.v888-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  border: none;
  border-radius: 30px;
  padding: .8rem 1.4rem;
  font-size: 1.3rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform .15s ease, filter .2s ease;
  min-height: 40px;
}
.v888-btn:active { transform: scale(0.96); }
.v888-btn--login {
  background: transparent;
  color: var(--v888-text);
  border: 1px solid var(--v888-line);
  padding: .75rem 1.1rem;
}
.v888-btn--register {
  background: linear-gradient(135deg, var(--v888-accent) 0%, var(--v888-accent-2) 100%);
  color: #1d2c3c;
}
.v888-icon-btn {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(240,253,255,0.08);
  border: 1px solid var(--v888-line);
  color: var(--v888-text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* ---------- Mobile menu ---------- */
.v888-mobile-menu {
  position: fixed;
  top: 0; right: -100%;
  width: 78%;
  max-width: 320px;
  height: 100vh;
  background: var(--v888-bg-deep);
  padding: 4.5rem 1.5rem 2rem;
  z-index: 9999;
  transition: right .3s ease;
  overflow-y: auto;
}
.v888-mobile-menu--open { right: 0; }
.v888-mobile-menu a {
  display: block;
  padding: 1rem .8rem;
  color: var(--v888-text);
  border-bottom: 1px solid var(--v888-line);
  font-size: 1.45rem;
}
.v888-mobile-menu a:hover { color: var(--v888-gold); text-decoration: none; }
.v888-menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s ease;
}
.v888-menu-overlay--open { opacity: 1; visibility: visible; }
.v888-menu-close {
  position: absolute;
  top: 12px; right: 14px;
  background: transparent;
  border: none;
  color: var(--v888-text);
  font-size: 2.4rem;
  cursor: pointer;
}

/* ---------- Hero / Carousel ---------- */
.v888-hero {
  margin-top: 74px;
  margin-bottom: 1.4rem;
}
.v888-carousel {
  position: relative;
  border-radius: var(--v888-radius);
  overflow: hidden;
  box-shadow: var(--v888-shadow);
}
.v888-carousel-track { position: relative; }
.v888-carousel-slide {
  display: none;
  position: relative;
}
.v888-carousel-slide--active { display: block; }
.v888-carousel-slide img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}
.v888-carousel-cap {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 1.2rem 1.4rem;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,0.78));
}
.v888-carousel-cap h2 { margin: 0 0 .3rem; font-size: 1.8rem; color: var(--v888-gold); }
.v888-carousel-cap p { margin: 0; font-size: 1.25rem; color: var(--v888-text); }
.v888-carousel-dots {
  position: absolute;
  bottom: 10px; left: 0; right: 0;
  display: flex;
  justify-content: center;
  gap: .55rem;
  z-index: 2;
}
.v888-carousel-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(240,253,255,0.4);
  border: none;
  cursor: pointer;
}
.v888-carousel-dot--active { background: var(--v888-gold); width: 22px; border-radius: 6px; }

/* ---------- Section / Headings ---------- */
.v888-section { padding: 1.8rem 0; }
.v888-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.2rem;
}
.v888-section-title {
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--v888-text);
  position: relative;
  padding-left: 1.2rem;
}
.v888-section-title::before {
  content: "";
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
  width: 5px; height: 1.8rem;
  background: var(--v888-gold);
  border-radius: 4px;
}
.v888-section-title em { font-style: normal; color: var(--v888-gold); }
.v888-link-more { font-size: 1.2rem; color: var(--v888-gold); }
.v888-muted { color: var(--v888-text-dim); }

/* ---------- Filter chips ---------- */
.v888-filter-bar {
  display: flex;
  gap: .6rem;
  overflow-x: auto;
  padding-bottom: .6rem;
  margin-bottom: 1rem;
}
.v888-filter-chip {
  flex: 0 0 auto;
  padding: .6rem 1.2rem;
  border-radius: 20px;
  border: 1px solid var(--v888-line);
  background: rgba(240,253,255,0.05);
  color: var(--v888-text);
  font-size: 1.2rem;
  cursor: pointer;
  white-space: nowrap;
}
.v888-filter-chip--active {
  background: linear-gradient(135deg, var(--v888-accent), var(--v888-accent-2));
  color: #1d2c3c;
  font-weight: 700;
  border-color: transparent;
}

/* ---------- Game grid ---------- */
.v888-game-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .9rem;
}
.v888-game-card {
  background: var(--v888-bg-soft);
  border: 1px solid var(--v888-line);
  border-radius: 12px;
  padding: .7rem;
  text-align: center;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease;
  overflow: hidden;
}
.v888-game-card:active { transform: scale(0.96); }
.v888-game-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: .5rem;
}
.v888-game-card-name {
  font-size: 1.15rem;
  color: var(--v888-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 600;
}
.v888-game-card:hover { box-shadow: 0 4px 18px rgba(245,179,1,0.25); border-color: var(--v888-gold); }

/* ---------- Feature / promo cards ---------- */
.v888-card {
  background: var(--v888-bg-soft);
  border: 1px solid var(--v888-line);
  border-radius: var(--v888-radius);
  padding: 1.4rem;
  margin-bottom: 1.2rem;
}
.v888-feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
.v888-feature-item {
  background: var(--v888-bg-soft);
  border-radius: 12px;
  padding: 1.2rem;
  text-align: center;
  border: 1px solid var(--v888-line);
}
.v888-feature-item .v888-feature-icon {
  font-size: 2.6rem;
  color: var(--v888-gold);
  margin-bottom: .5rem;
}
.v888-feature-item h3 { font-size: 1.4rem; margin: 0 0 .3rem; color: var(--v888-text); }
.v888-feature-item p { font-size: 1.2rem; margin: 0; color: var(--v888-text-dim); }

/* ---------- RTP stat ---------- */
.v888-stat-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: .8rem;
}
.v888-stat {
  background: var(--v888-bg-soft);
  padding: 1.1rem;
  border-radius: 10px;
  text-align: center;
  border: 1px solid var(--v888-line);
}
.v888-stat-num {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--v888-gold);
  display: block;
}
.v888-stat-label { font-size: 1.15rem; color: var(--v888-text-dim); }

/* ---------- Testimonial ---------- */
.v888-testimonial {
  background: var(--v888-bg-soft);
  border-left: 3px solid var(--v888-gold);
  padding: 1.1rem 1.3rem;
  border-radius: 8px;
  margin-bottom: 1rem;
}
.v888-testimonial p { margin: 0 0 .5rem; font-size: 1.3rem; color: var(--v888-text); }
.v888-testimonial span { font-size: 1.15rem; color: var(--v888-gold); font-weight: 700; }

/* ---------- Payment ---------- */
.v888-payment-row {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
}
.v888-payment-chip {
  background: var(--v888-bg-soft);
  border: 1px solid var(--v888-line);
  border-radius: 8px;
  padding: .7rem 1rem;
  font-size: 1.2rem;
  color: var(--v888-text);
  display: inline-flex;
  align-items: center;
  gap: .4rem;
}

/* ---------- Winners ---------- */
.v888-winner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: .9rem 1.1rem;
  background: var(--v888-bg-soft);
  border-radius: 10px;
  margin-bottom: .6rem;
  border: 1px solid var(--v888-line);
}
.v888-winner-name { font-size: 1.3rem; color: var(--v888-text); font-weight: 600; }
.v888-winner-amount { color: var(--v888-gold); font-weight: 800; font-size: 1.35rem; }

/* ---------- FAQ ---------- */
.v888-faq-item {
  background: var(--v888-bg-soft);
  border: 1px solid var(--v888-line);
  border-radius: 10px;
  padding: 1.1rem 1.3rem;
  margin-bottom: .8rem;
}
.v888-faq-item h3 { font-size: 1.4rem; margin: 0 0 .4rem; color: var(--v888-gold); }
.v888-faq-item p { margin: 0; font-size: 1.25rem; color: var(--v888-text); }

/* ---------- Long text ---------- */
.v888-prose p { font-size: 1.35rem; color: var(--v888-text); margin: 0 0 .9rem; line-height: 1.7; }
.v888-prose strong { color: var(--v888-gold); }
.v888-step-list { padding-left: 1.2rem; margin: 0 0 1rem; }
.v888-step-list li { font-size: 1.3rem; margin-bottom: .6rem; color: var(--v888-text); }

/* ---------- CTA banner ---------- */
.v888-cta {
  background: linear-gradient(135deg, var(--v888-accent) 0%, var(--v888-accent-2) 100%);
  border-radius: var(--v888-radius);
  padding: 1.6rem;
  text-align: center;
  color: #1d2c3c;
  margin: 1.5rem 0;
}
.v888-cta h2 { margin: 0 0 .4rem; font-size: 1.9rem; color: #1d2c3c; }
.v888-cta p { margin: 0 0 1rem; font-size: 1.3rem; }
.v888-cta .v888-btn { background: #1d2c3c; color: var(--v888-gold); }

/* ---------- Footer ---------- */
.v888-footer {
  background: var(--v888-bg-deep);
  padding: 2.2rem 0 1.6rem;
  border-top: 1px solid var(--v888-line);
}
.v888-footer-desc {
  font-size: 1.25rem;
  color: var(--v888-text-dim);
  margin-bottom: 1.2rem;
  line-height: 1.6;
}
.v888-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem 1.2rem;
  margin-bottom: 1.2rem;
}
.v888-footer-links a { font-size: 1.2rem; color: var(--v888-text-dim); }
.v888-footer-copy {
  font-size: 1.1rem;
  color: var(--v888-text-dim);
  text-align: center;
  border-top: 1px solid var(--v888-line);
  padding-top: 1rem;
}

/* ---------- Mobile bottom nav ---------- */
.v888-bottom-nav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: 62px;
  background: linear-gradient(180deg, var(--v888-bg-deep), #14202d);
  border-top: 1px solid var(--v888-line);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
  box-shadow: 0 -4px 18px rgba(0,0,0,0.32);
}
.v888-bottom-nav-btn {
  background: none;
  border: none;
  color: var(--v888-text-dim);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  min-height: 60px;
  cursor: pointer;
  gap: 2px;
  transition: transform .18s ease, color .2s ease;
}
.v888-bottom-nav-btn .material-icons,
.v888-bottom-nav-btn ion-icon,
.v888-bottom-nav-btn i { font-size: 24px; }
.v888-bottom-nav-btn span { font-size: 1.05rem; }
.v888-bottom-nav-btn:active { transform: scale(0.9); }
.v888-bottom-nav-btn:hover { color: var(--v888-text); }
.v888-bottom-nav-btn--active { color: var(--v888-gold); }
.v888-bottom-nav-btn--promo {
  background: linear-gradient(135deg, var(--v888-accent), var(--v888-accent-2));
  color: #1d2c3c;
  border-radius: 50%;
  width: 56px; height: 56px;
  margin-top: -22px;
  box-shadow: 0 4px 14px rgba(245,179,1,0.5);
  border: 3px solid var(--v888-bg-deep);
}
.v888-bottom-nav-btn--promo span { font-size: 1rem; }

@media (min-width: 769px) {
  .v888-bottom-nav { display: none; }
  main { padding-bottom: 1rem; }
}
@media (min-width: 600px) and (max-width: 768px) {
  .v888-game-grid { grid-template-columns: repeat(4, 1fr); }
}
