/* ===========================================================
   33win46 - theme-3ec6.css
   All custom classes use prefix "s3ec-".
   Palette: #8A2BE2 / #FFF8DC / #BBBBBB / #262626
   Mobile-first. Root font 62.5% (1rem = 10px).
   =========================================================== */

:root {
  --s3ec-primary: #8A2BE2;
  --s3ec-primary-dark: #6B1FB8;
  --s3ec-primary-light: #B07CE8;
  --s3ec-cream: #FFF8DC;
  --s3ec-gray: #BBBBBB;
  --s3ec-bg: #262626;
  --s3ec-bg-2: #1c1c1c;
  --s3ec-bg-3: #333333;
  --s3ec-text: #FFF8DC;
  --s3ec-text-muted: #BBBBBB;
  --s3ec-accent: #FFD24A;
  --s3ec-danger: #FF5A5A;
  --s3ec-success: #39D98A;
  --s3ec-radius: 12px;
  --s3ec-shadow: 0 4px 18px rgba(0, 0, 0, 0.45);
  --s3ec-header-h: 6rem;
  --s3ec-bottomnav-h: 6.4rem;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

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

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

img { max-width: 100%; display: block; }

a { color: var(--s3ec-primary-light); text-decoration: none; }
a:hover { color: var(--s3ec-cream); }

.s3ec-container { width: 100%; max-width: 430px; margin: 0 auto; padding: 0 1.4rem; }
.s3ec-wrapper { padding-bottom: 9rem; }

/* ---------------- Header ---------------- */
.s3ec-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: linear-gradient(180deg, #1c1c1c 0%, #262626 100%);
  border-bottom: 2px solid var(--s3ec-primary);
  box-shadow: var(--s3ec-shadow);
  max-width: 430px;
  margin: 0 auto;
}
.s3ec-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--s3ec-header-h);
  padding: 0 1.2rem;
  gap: 0.8rem;
}
.s3ec-logo {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--s3ec-cream);
  font-weight: 800;
  font-size: 2rem;
  letter-spacing: 0.5px;
}
.s3ec-logo img { width: 3rem; height: 3rem; border-radius: 6px; }
.s3ec-logo span { color: var(--s3ec-primary-light); }

.s3ec-header-actions { display: flex; align-items: center; gap: 0.6rem; }

.s3ec-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-weight: 700;
  font-size: 1.35rem;
  border: none;
  border-radius: 999px;
  padding: 0.8rem 1.4rem;
  cursor: pointer;
  transition: transform 0.15s ease, filter 0.15s ease, background 0.15s ease;
  min-height: 3.6rem;
  line-height: 1;
}
.s3ec-btn:active { transform: scale(0.95); }
.s3ec-btn-primary {
  background: linear-gradient(135deg, var(--s3ec-primary) 0%, var(--s3ec-primary-light) 100%);
  color: #fff;
  box-shadow: 0 3px 10px rgba(138, 43, 226, 0.55);
}
.s3ec-btn-primary:hover { filter: brightness(1.1); color: #fff; }
.s3ec-btn-ghost {
  background: transparent;
  color: var(--s3ec-cream);
  border: 1.5px solid var(--s3ec-primary-light);
}
.s3ec-btn-ghost:hover { background: rgba(138, 43, 226, 0.18); color: #fff; }
.s3ec-btn-accent {
  background: linear-gradient(135deg, #FFD24A 0%, #FF9F1F 100%);
  color: #262626;
}

.s3ec-menu-btn {
  background: transparent;
  border: none;
  color: var(--s3ec-cream);
  font-size: 2.2rem;
  width: 3.6rem;
  height: 3.6rem;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.s3ec-menu-btn:active { background: rgba(138, 43, 226, 0.25); }

/* ---------------- Nav menu ---------------- */
.s3ec-nav {
  position: fixed;
  top: var(--s3ec-header-h);
  left: 0; right: 0;
  max-width: 430px;
  margin: 0 auto;
  background: var(--s3ec-bg-2);
  border-bottom: 2px solid var(--s3ec-primary);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  z-index: 9999;
}
.s3ec-nav.s3ec-nav-open { max-height: 60rem; }
.s3ec-nav ul { list-style: none; padding: 0.8rem 1.4rem 1.4rem; }
.s3ec-nav li { border-bottom: 1px solid rgba(187, 187, 187, 0.15); }
.s3ec-nav li:last-child { border-bottom: none; }
.s3ec-nav a {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 1.2rem 0.4rem;
  color: var(--s3ec-cream);
  font-size: 1.45rem;
  font-weight: 600;
}
.s3ec-nav a i.material-icons,
.s3ec-nav a i.fas,
.s3ec-nav a i.bi {
  color: var(--s3ec-primary-light);
  font-size: 1.9rem;
  width: 2.2rem;
  text-align: center;
}
.s3ec-nav a:hover { color: var(--s3ec-primary-light); }

/* ---------------- Main / sections ---------------- */
main { padding-top: var(--s3ec-header-h); }
.s3ec-section { padding: 2.4rem 0; }
.s3ec-section-alt { background: var(--s3ec-bg-2); }

.s3ec-section-title {
  font-size: 2rem;
  font-weight: 800;
  color: var(--s3ec-cream);
  margin-bottom: 0.6rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.s3ec-section-title::before {
  content: "";
  width: 5px;
  height: 2rem;
  background: linear-gradient(180deg, var(--s3ec-primary), var(--s3ec-primary-light));
  border-radius: 3px;
}
.s3ec-section-sub { color: var(--s3ec-text-muted); font-size: 1.35rem; margin-bottom: 1.4rem; }

/* ---------------- Carousel ---------------- */
.s3ec-carousel {
  position: relative;
  border-radius: var(--s3ec-radius);
  overflow: hidden;
  box-shadow: var(--s3ec-shadow);
  margin-bottom: 1.6rem;
}
.s3ec-slide {
  display: none;
  position: relative;
  cursor: pointer;
}
.s3ec-slide.s3ec-slide-active { display: block; }
.s3ec-slide img { width: 100%; height: 19rem; object-fit: cover; }
.s3ec-slide-cap {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 1.2rem 1.4rem;
  background: linear-gradient(0deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0) 100%);
  color: #fff;
}
.s3ec-slide-cap h3 { font-size: 1.6rem; color: var(--s3ec-cream); margin-bottom: 0.2rem; }
.s3ec-slide-cap p { font-size: 1.2rem; color: var(--s3ec-gray); }

.s3ec-carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(138, 43, 226, 0.75);
  color: #fff;
  border: none;
  width: 3rem; height: 3rem;
  border-radius: 50%;
  font-size: 1.6rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.s3ec-carousel-arrow:hover { background: var(--s3ec-primary); }
.s3ec-arrow-prev { left: 0.6rem; }
.s3ec-arrow-next { right: 0.6rem; }

.s3ec-dots {
  position: absolute;
  bottom: 0.8rem; left: 0; right: 0;
  display: flex; justify-content: center; gap: 0.5rem;
  z-index: 2;
}
.s3ec-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255, 248, 220, 0.45);
  border: none; cursor: pointer; padding: 0;
}
.s3ec-dot.s3ec-dot-active { background: var(--s3ec-primary-light); width: 22px; border-radius: 4px; }

/* ---------------- Hero / H1 ---------------- */
.s3ec-hero { padding: 1.6rem 0 0.4rem; }
.s3ec-hero h1 {
  font-size: 2.4rem;
  line-height: 1.25;
  color: var(--s3ec-cream);
  margin-bottom: 0.8rem;
  font-weight: 800;
}
.s3ec-hero h1 span { color: var(--s3ec-primary-light); }
.s3ec-hero p { color: var(--s3ec-text-muted); font-size: 1.4rem; margin-bottom: 1.2rem; }
.s3ec-hero-cta { display: flex; gap: 0.8rem; flex-wrap: wrap; }

/* ---------------- Chips / filters ---------------- */
.s3ec-chips {
  display: flex;
  gap: 0.7rem;
  overflow-x: auto;
  padding: 0.4rem 0 1.2rem;
  -webkit-overflow-scrolling: touch;
}
.s3ec-chips::-webkit-scrollbar { display: none; }
.s3ec-chip {
  flex: 0 0 auto;
  padding: 0.7rem 1.3rem;
  border-radius: 999px;
  background: var(--s3ec-bg-3);
  color: var(--s3ec-cream);
  font-size: 1.3rem;
  font-weight: 600;
  border: 1.5px solid transparent;
  cursor: pointer;
  white-space: nowrap;
}
.s3ec-chip.s3ec-chip-active,
.s3ec-chip:hover {
  background: linear-gradient(135deg, var(--s3ec-primary), var(--s3ec-primary-light));
  color: #fff;
}

/* ---------------- Game grid ---------------- */
.s3ec-cat-head {
  display: flex; align-items: center; justify-content: space-between;
  margin: 1.8rem 0 1rem;
}
.s3ec-cat-head h2 { font-size: 1.7rem; color: var(--s3ec-cream); font-weight: 700; }
.s3ec-cat-head h2 i { color: var(--s3ec-primary-light); margin-right: 0.4rem; }

.s3ec-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
}
.s3ec-game {
  background: var(--s3ec-bg-3);
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  border: 1px solid rgba(138, 43, 226, 0.18);
}
.s3ec-game:hover, .s3ec-game:active {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(138, 43, 226, 0.35);
  border-color: var(--s3ec-primary-light);
}
.s3ec-game-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: #000;
}
.s3ec-game-name {
  padding: 0.5rem 0.6rem;
  font-size: 1.15rem;
  color: var(--s3ec-cream);
  text-align: center;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.s3ec-game-badge {
  position: absolute;
  top: 0.3rem; left: 0.3rem;
  background: var(--s3ec-danger);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
}

/* ---------------- Card ---------------- */
.s3ec-card {
  background: var(--s3ec-bg-3);
  border-radius: var(--s3ec-radius);
  padding: 1.6rem;
  margin-bottom: 1.2rem;
  border: 1px solid rgba(138, 43, 226, 0.22);
}
.s3ec-card h3 { color: var(--s3ec-cream); font-size: 1.6rem; margin-bottom: 0.6rem; font-weight: 700; }
.s3ec-card h3 i { color: var(--s3ec-primary-light); margin-right: 0.4rem; }
.s3ec-card p { color: var(--s3ec-text-muted); font-size: 1.35rem; margin-bottom: 0.8rem; }
.s3ec-card a.s3ec-link {
  color: var(--s3ec-accent);
  font-weight: 700;
  text-decoration: underline;
}

/* ---------------- Features list ---------------- */
.s3ec-feature-list { list-style: none; }
.s3ec-feature-list li {
  display: flex; gap: 0.9rem; align-items: flex-start;
  padding: 0.9rem 0;
  border-bottom: 1px dashed rgba(187, 187, 187, 0.18);
  color: var(--s3ec-text);
  font-size: 1.35rem;
}
.s3ec-feature-list li:last-child { border-bottom: none; }
.s3ec-feature-list i { color: var(--s3ec-primary-light); font-size: 1.7rem; margin-top: 0.1rem; }

/* ---------------- RTP bar ---------------- */
.s3ec-rtp-row { margin-bottom: 0.9rem; }
.s3ec-rtp-row .s3ec-rtp-top {
  display: flex; justify-content: space-between;
  font-size: 1.3rem; margin-bottom: 0.3rem;
  color: var(--s3ec-cream);
}
.s3ec-rtp-bar {
  height: 8px; border-radius: 4px;
  background: rgba(187, 187, 187, 0.2);
  overflow: hidden;
}
.s3ec-rtp-bar > span {
  display: block; height: 100%;
  background: linear-gradient(90deg, var(--s3ec-primary), var(--s3ec-accent));
}

/* ---------------- Testimonial ---------------- */
.s3ec-testi {
  background: var(--s3ec-bg-3);
  border-left: 4px solid var(--s3ec-primary);
  padding: 1.2rem 1.4rem;
  border-radius: 8px;
  margin-bottom: 1rem;
}
.s3ec-testi p { color: var(--s3ec-cream); font-size: 1.3rem; font-style: italic; margin-bottom: 0.5rem; }
.s3ec-testi .s3ec-testi-by { color: var(--s3ec-primary-light); font-size: 1.2rem; font-weight: 700; }

/* ---------------- Payment ---------------- */
.s3ec-pay-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.7rem;
}
.s3ec-pay-item {
  background: var(--s3ec-bg-3);
  border-radius: 8px;
  padding: 0.9rem 0.4rem;
  text-align: center;
  color: var(--s3ec-cream);
  font-size: 1.1rem;
  border: 1px solid rgba(138, 43, 226, 0.18);
}
.s3ec-pay-item i { font-size: 2.2rem; color: var(--s3ec-primary-light); display: block; margin-bottom: 0.3rem; }

/* ---------------- Winners ---------------- */
.s3ec-winner {
  display: flex; align-items: center; gap: 0.8rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid rgba(187, 187, 187, 0.12);
  font-size: 1.3rem;
}
.s3ec-winner:last-child { border-bottom: none; }
.s3ec-winner .s3ec-winner-av {
  width: 3rem; height: 3rem; border-radius: 50%;
  background: linear-gradient(135deg, var(--s3ec-primary), var(--s3ec-primary-light));
  color: #fff; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; flex-shrink: 0;
}
.s3ec-winner .s3ec-winner-amt { color: var(--s3ec-accent); font-weight: 800; margin-left: auto; }

/* ---------------- App download CTA ---------------- */
.s3ec-app-cta {
  background: linear-gradient(135deg, var(--s3ec-primary-dark) 0%, var(--s3ec-primary) 100%);
  border-radius: var(--s3ec-radius);
  padding: 1.8rem;
  text-align: center;
  margin: 1.4rem 0;
  border: 1px solid var(--s3ec-primary-light);
}
.s3ec-app-cta h3 { color: #fff; font-size: 1.8rem; margin-bottom: 0.4rem; }
.s3ec-app-cta p { color: var(--s3ec-cream); font-size: 1.3rem; margin-bottom: 1rem; }
.s3ec-app-buttons { display: flex; gap: 0.7rem; justify-content: center; flex-wrap: wrap; }

/* ---------------- FAQ ---------------- */
.s3ec-faq { margin-bottom: 1rem; background: var(--s3ec-bg-3); border-radius: 8px; overflow: hidden; }
.s3ec-faq summary {
  padding: 1.2rem 1.4rem;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--s3ec-cream);
  cursor: pointer;
  list-style: none;
  display: flex; align-items: center; justify-content: space-between;
}
.s3ec-faq summary::-webkit-details-marker { display: none; }
.s3ec-faq summary::after {
  content: "+";
  color: var(--s3ec-primary-light);
  font-size: 1.8rem;
  font-weight: 700;
}
.s3ec-faq[open] summary::after { content: "−"; }
.s3ec-faq-body { padding: 0 1.4rem 1.2rem; color: var(--s3ec-text-muted); font-size: 1.3rem; }

/* ---------------- Footer ---------------- */
.s3ec-footer {
  background: var(--s3ec-bg-2);
  border-top: 2px solid var(--s3ec-primary);
  padding: 2.4rem 1.4rem 2rem;
  margin-top: 1.6rem;
}
.s3ec-footer-about { color: var(--s3ec-text-muted); font-size: 1.3rem; margin-bottom: 1.2rem; }
.s3ec-footer-links {
  display: flex; flex-wrap: wrap; gap: 0.6rem 1rem;
  margin-bottom: 1.2rem;
}
.s3ec-footer-links a {
  color: var(--s3ec-cream);
  font-size: 1.25rem;
  text-decoration: underline;
}
.s3ec-footer-promos {
  display: flex; flex-wrap: wrap; gap: 0.6rem;
  margin: 1rem 0;
}
.s3ec-footer-copy {
  color: var(--s3ec-gray);
  font-size: 1.15rem;
  text-align: center;
  border-top: 1px solid rgba(187, 187, 187, 0.18);
  padding-top: 1rem;
  margin-top: 0.6rem;
}

/* ---------------- Bottom nav ---------------- */
.s3ec-bottomnav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  max-width: 430px;
  margin: 0 auto;
  height: var(--s3ec-bottomnav-h);
  background: linear-gradient(180deg, #1c1c1c 0%, #000 100%);
  border-top: 2px solid var(--s3ec-primary);
  display: flex;
  justify-content: space-around;
  align-items: stretch;
  z-index: 1000;
  box-shadow: 0 -3px 14px rgba(0, 0, 0, 0.6);
}
.s3ec-bottomnav-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  color: var(--s3ec-gray);
  text-decoration: none;
  background: transparent;
  border: none;
  cursor: pointer;
  min-width: 60px;
  min-height: 60px;
  padding: 0.4rem 0.2rem;
  font-size: 1.05rem;
  font-weight: 600;
  transition: color 0.15s ease, transform 0.15s ease;
}
.s3ec-bottomnav-btn i,
.s3ec-bottomnav-btn .material-icons {
  font-size: 2.2rem;
}
.s3ec-bottomnav-btn:active { transform: scale(0.9); }
.s3ec-bottomnav-btn:hover { color: var(--s3ec-primary-light); }
.s3ec-bottomnav-btn.s3ec-bottomnav-active { color: var(--s3ec-primary-light); }
.s3ec-bottomnav-btn.s3ec-bottomnav-promo {
  color: var(--s3ec-accent);
}
.s3ec-bottomnav-btn.s3ec-bottomnav-promo i { color: var(--s3ec-accent); }

/* ---------------- Desktop ---------------- */
@media (min-width: 769px) {
  body { max-width: 430px; }
  .s3ec-bottomnav { display: none; }
  .s3ec-wrapper { padding-bottom: 2rem; }
}

/* ---------------- Mobile bottom padding ---------------- */
@media (max-width: 768px) {
  main { padding-bottom: calc(var(--s3ec-bottomnav-h) + 1rem); }
}

/* ---------------- Helpers ---------------- */
.s3ec-text-center { text-align: center; }
.s3ec-mt-1 { margin-top: 0.6rem; }
.s3ec-mt-2 { margin-top: 1.2rem; }
.s3ec-mb-2 { margin-bottom: 1.2rem; }
.s3ec-hidden { display: none !important; }
