/* SC8888 layout stylesheet - all custom classes use the v616- prefix */
:root {
  --v616-bg: #1E1E1E;
  --v616-bg-2: #2a2a2a;
  --v616-bg-3: #161616;
  --v616-primary: #E91E63;
  --v616-primary-2: #ff4d85;
  --v616-accent: #A0522D;
  --v616-text: #F5DEB3;
  --v616-text-light: #FFCCCB;
  --v616-text-dim: #b8a98a;
  --v616-border: #3a3a3a;
  --v616-radius: 12px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 62.5%; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  background: var(--v616-bg);
  color: var(--v616-text);
  line-height: 1.5rem;
  -webkit-font-smoothing: antialiased;
  max-width: 430px;
  margin: 0 auto;
  position: relative;
}

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

/* ---------- Layout ---------- */
.v616-container { width: 100%; padding: 0 1.2rem; }
.v616-wrapper { padding: 1.2rem; }
.v616-section { padding: 2rem 1.2rem; }
.v616-section-title {
  font-size: 1.9rem; font-weight: 800; color: var(--v616-text-light);
  margin-bottom: 1rem; display: flex; align-items: center; gap: .6rem;
}
.v616-section-title .material-icons,
.v616-section-title i { color: var(--v616-primary); font-size: 2.2rem; }

/* ---------- Header ---------- */
.v616-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: linear-gradient(180deg, #1a1a1a 0%, #241419 100%);
  border-bottom: 2px solid var(--v616-primary);
  max-width: 430px; margin: 0 auto;
}
.v616-header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: .6rem 1rem; height: 5.4rem;
}
.v616-logo { display: flex; align-items: center; gap: .6rem; }
.v616-logo img { width: 2.8rem; height: 2.8rem; border-radius: 6px; }
.v616-logo span { font-size: 1.6rem; font-weight: 800; color: var(--v616-text-light); }
.v616-logo span b { color: var(--v616-primary); }

.v616-header-actions { display: flex; align-items: center; gap: .5rem; }
.v616-menu-btn {
  background: none; border: none; color: var(--v616-text); font-size: 2rem;
  cursor: pointer; padding: .4rem; display: flex; align-items: center;
}
.v616-btn {
  border: none; border-radius: 8px; cursor: pointer; font-weight: 700;
  font-size: 1.2rem; padding: .6rem 1rem; min-height: 36px;
  transition: transform .15s ease, opacity .15s ease;
}
.v616-btn:active { transform: scale(.95); }
.v616-btn-login { background: transparent; color: var(--v616-text-light); border: 1px solid var(--v616-primary); }
.v616-btn-register { background: var(--v616-primary); color: #fff; box-shadow: 0 2px 8px rgba(233,30,99,.35); }

/* ---------- Mobile menu ---------- */
.v616-mobile-menu {
  max-height: 0; overflow: hidden; transition: max-height .3s ease;
  background: var(--v616-bg-3); border-top: 1px solid var(--v616-border);
}
.v616-mobile-menu.v616-menu-open { max-height: 420px; }
.v616-mobile-menu ul { list-style: none; padding: .4rem 1rem; }
.v616-mobile-menu li { border-bottom: 1px solid var(--v616-border); }
.v616-mobile-menu li:last-child { border-bottom: none; }
.v616-mobile-menu a {
  display: flex; align-items: center; gap: .8rem; padding: 1rem .4rem;
  color: var(--v616-text); font-size: 1.35rem; font-weight: 600;
}
.v616-mobile-menu a i, .v616-mobile-menu a .material-icons { color: var(--v616-primary); width: 2rem; }

/* ---------- Hero / Carousel ---------- */
.v616-carousel {
  position: relative; margin-top: 5.4rem; overflow: hidden; border-radius: 0 0 14px 14px;
}
.v616-slides { position: relative; height: 17rem; }
.v616-slide {
  position: absolute; inset: 0; opacity: 0; transition: opacity .5s ease;
  cursor: pointer;
}
.v616-slide img { width: 100%; height: 100%; object-fit: cover; }
.v616-slide.v616-slide-active { opacity: 1; }
.v616-slide-cap {
  position: absolute; left: 1rem; bottom: 1rem; right: 1rem;
  background: rgba(0,0,0,.55); padding: .6rem .8rem; border-radius: 8px;
  font-size: 1.25rem; font-weight: 700; color: var(--v616-text-light);
}
.v616-dots { position: absolute; bottom: .6rem; left: 0; right: 0; text-align: center; }
.v616-dot {
  display: inline-block; width: 7px; height: 7px; margin: 0 3px;
  border-radius: 50%; background: rgba(255,255,255,.4); cursor: pointer;
}
.v616-dot.v616-dot-active { background: var(--v616-primary); }

/* ---------- Hero CTA ---------- */
.v616-hero-cta { padding: 1.4rem 1.2rem; text-align: center; }
.v616-hero-cta h1 {
  font-size: 2.2rem; color: var(--v616-text-light); margin-bottom: .6rem; line-height: 2.6rem;
}
.v616-hero-cta h1 b { color: var(--v616-primary); }
.v616-hero-cta p { color: var(--v616-text-dim); margin-bottom: 1rem; font-size: 1.3rem; }
.v616-cta-big {
  display: inline-block; background: linear-gradient(90deg, var(--v616-primary), var(--v616-accent));
  color: #fff; font-weight: 800; font-size: 1.5rem; padding: 1rem 2rem; border-radius: 30px;
  box-shadow: 0 4px 14px rgba(233,30,99,.4); cursor: pointer;
}

/* ---------- Game grid ---------- */
.v616-cat-head {
  display: flex; align-items: center; gap: .6rem; margin: 1.6rem 0 .8rem;
}
.v616-cat-head i, .v616-cat-head .material-icons { color: var(--v616-primary); font-size: 2rem; }
.v616-cat-head h2 { font-size: 1.7rem; color: var(--v616-text-light); }
.v616-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: .7rem;
}
.v616-game {
  display: flex; flex-direction: column; align-items: center; cursor: pointer;
  background: var(--v616-bg-2); border-radius: 10px; padding: .5rem; text-align: center;
  border: 1px solid var(--v616-border); transition: transform .15s ease, border-color .15s ease;
}
.v616-game:active { transform: scale(.96); border-color: var(--v616-primary); }
.v616-game img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; }
.v616-game span { font-size: 1.05rem; color: var(--v616-text); margin-top: .4rem; line-height: 1.3rem; }

/* ---------- Cards / features ---------- */
.v616-card {
  background: var(--v616-bg-2); border: 1px solid var(--v616-border); border-radius: var(--v616-radius);
  padding: 1.2rem; margin-bottom: 1rem;
}
.v616-card h3 { font-size: 1.5rem; color: var(--v616-text-light); margin-bottom: .6rem; }
.v616-card p { font-size: 1.25rem; color: var(--v616-text-dim); }
.v616-feature-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: .8rem; }
.v616-feature {
  background: var(--v616-bg-2); border-radius: 10px; padding: 1rem; text-align: center;
  border: 1px solid var(--v616-border);
}
.v616-feature i, .v616-feature .material-icons { color: var(--v616-primary); font-size: 2.4rem; }
.v616-feature h4 { font-size: 1.3rem; color: var(--v616-text-light); margin: .4rem 0; }
.v616-feature p { font-size: 1.1rem; color: var(--v616-text-dim); }

/* ---------- RTP compact ---------- */
.v616-rtp-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: .7rem .2rem; border-bottom: 1px dashed var(--v616-border); font-size: 1.2rem;
}
.v616-rtp-row:last-child { border-bottom: none; }
.v616-rtp-bar { width: 6rem; height: 6px; background: var(--v616-bg-3); border-radius: 4px; overflow: hidden; }
.v616-rtp-fill { height: 100%; background: linear-gradient(90deg, var(--v616-primary), var(--v616-accent)); }

/* ---------- Testimonials ---------- */
.v616-testi {
  background: var(--v616-bg-2); border-left: 3px solid var(--v616-primary);
  border-radius: 8px; padding: 1rem; margin-bottom: .8rem;
}
.v616-testi .v616-testi-name { font-size: 1.3rem; font-weight: 700; color: var(--v616-text-light); }
.v616-testi p { font-size: 1.2rem; color: var(--v616-text-dim); margin-top: .3rem; }

/* ---------- Winners ---------- */
.v616-winner {
  display: flex; align-items: center; gap: .8rem; padding: .6rem .2rem;
  border-bottom: 1px solid var(--v616-border); font-size: 1.2rem;
}
.v616-winner:last-child { border-bottom: none; }
.v616-winner b { color: var(--v616-primary-2); }

/* ---------- Payment ---------- */
.v616-pay-row { display: flex; flex-wrap: wrap; gap: .6rem; }
.v616-pay {
  flex: 1 1 30%; background: var(--v616-bg-2); border: 1px solid var(--v616-border);
  border-radius: 8px; padding: .8rem; text-align: center; font-size: 1.1rem; color: var(--v616-text);
}
.v616-pay i, .v616-pay .material-icons { color: var(--v616-text-light); font-size: 1.8rem; }

/* ---------- Download CTA ---------- */
.v616-download {
  background: linear-gradient(135deg, #2a1419, #1E1E1E); border: 1px solid var(--v616-primary);
  border-radius: var(--v616-radius); padding: 1.4rem; text-align: center;
}
.v616-download h3 { color: var(--v616-text-light); font-size: 1.6rem; margin-bottom: .5rem; }
.v616-download p { color: var(--v616-text-dim); font-size: 1.2rem; margin-bottom: 1rem; }
.v616-download-btns { display: flex; gap: .6rem; justify-content: center; }

/* ---------- Inline SEO text link ---------- */
.v616-inlink { color: var(--v616-primary-2); font-weight: 700; text-decoration: underline; }

/* ---------- Footer ---------- */
.v616-footer {
  background: var(--v616-bg-3); border-top: 2px solid var(--v616-primary);
  padding: 1.6rem 1.2rem 1rem;
}
.v616-footer p { font-size: 1.2rem; color: var(--v616-text-dim); margin-bottom: .8rem; }
.v616-footer-links { display: flex; flex-wrap: wrap; gap: .5rem; margin: .8rem 0; }
.v616-footer-links a {
  font-size: 1.15rem; color: var(--v616-text-light); background: var(--v616-bg-2);
  padding: .4rem .8rem; border-radius: 6px; border: 1px solid var(--v616-border);
}
.v616-footer-links a:active { border-color: var(--v616-primary); }
.v616-footer-copy { font-size: 1.1rem; color: var(--v616-text-dim); text-align: center; margin-top: .8rem; }

/* ---------- Mobile bottom nav ---------- */
.v616-bnav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 1000;
  max-width: 430px; margin: 0 auto; height: 60px;
  background: linear-gradient(180deg, #241419, #161616);
  border-top: 2px solid var(--v616-primary);
  display: flex; justify-content: space-around; align-items: center;
}
.v616-bnav-btn {
  background: none; border: none; color: var(--v616-text-dim); cursor: pointer;
  min-width: 60px; min-height: 60px; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 2px; flex: 1;
  transition: color .15s ease, transform .15s ease;
}
.v616-bnav-btn i, .v616-bnav-btn .material-icons { font-size: 22px; }
.v616-bnav-btn span { font-size: 10px; }
.v616-bnav-btn:active { transform: scale(.9); }
.v616-bnav-btn.v616-bnav-active { color: var(--v616-primary); }
.v616-bnav-btn.v616-bnav-active i, .v616-bnav-btn.v616-bnav-active .material-icons { color: var(--v616-primary-2); }
.v616-bnav-badge {
  position: absolute; top: 4px; right: 18px; background: var(--v616-primary); color: #fff;
  font-size: 9px; font-weight: 700; border-radius: 8px; padding: 0 4px; line-height: 14px;
}

/* ---------- Desktop / responsive ---------- */
@media (min-width: 769px) {
  .v616-bnav { display: none; }
  body { max-width: 430px; }
}

@media (max-width: 768px) {
  main { padding-bottom: 80px; }
}
