/* ===========================================================
   bet app - theme-004b.css
   Mobile-first styles for bet-app.click
   All custom classes use the "s004-" prefix.
   Palette: #DDA0DD | #4B0082 | #AD1457 | #1C2833 | #DDA0DD
   Comments in English only.
   =========================================================== */

:root {
  --s004-primary: #4B0082;
  --s004-accent: #DDA0DD;
  --s004-accent2: #AD1457;
  --s004-bg: #1C2833;
  --s004-bg-2: #16202b;
  --s004-bg-3: #202d3b;
  --s004-text: #DDA0DD;
  --s004-text-soft: #c9b6dd;
  --s004-text-light: #f3e9fb;
  --s004-line: rgba(221, 160, 221, 0.18);
  --s004-gold: #ffd76b;
  --s004-radius: 1.2rem;
  --s004-shadow: 0 0.4rem 1.2rem rgba(0,0,0,0.35);
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  padding: 0;
  font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--s004-bg);
  color: var(--s004-text-light);
  line-height: 1.5rem;
  max-width: 430px;
  margin-left: auto;
  margin-right: auto;
  -webkit-font-smoothing: antialiased;
}

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

.s004-container { width: 100%; max-width: 430px; margin: 0 auto; padding: 0 1.2rem; }
.s004-wrapper { padding-top: 6.2rem; padding-bottom: 9rem; }

/* ---------- Header / Top Navigation ---------- */
.s004-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  max-width: 430px;
  margin: 0 auto;
  z-index: 1000;
  background: linear-gradient(135deg, var(--s004-primary), #2a0a4d 80%);
  border-bottom: 1px solid var(--s004-line);
  box-shadow: var(--s004-shadow);
}
.s004-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 1rem;
  min-height: 5.6rem;
}
.s004-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--s004-text-light);
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: 0.04rem;
}
.s004-logo img { width: 2.8rem; height: 2.8rem; border-radius: 0.6rem; }
.s004-logo span { background: linear-gradient(90deg, var(--s004-accent), var(--s004-gold)); -webkit-background-clip: text; background-clip: text; color: transparent; }

.s004-header-actions { display: flex; align-items: center; gap: 0.5rem; }
.s004-menu-btn {
  background: transparent; border: 0; color: var(--s004-text-light);
  font-size: 2.2rem; cursor: pointer; padding: 0 0.4rem; min-width: 4.4rem; min-height: 4.4rem;
  display: inline-flex; align-items: center; justify-content: center;
}

.s004-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.2rem; cursor: pointer; border: 0;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.s004-btn:active { transform: scale(0.96); }
.s004-btn-login { background: transparent; border: 1px solid var(--s004-accent); color: var(--s004-accent); }
.s004-btn-register { background: linear-gradient(90deg, var(--s004-accent2), var(--s004-primary)); color: #fff; box-shadow: 0 0.4rem 1rem rgba(173,20,87,0.35); }

.s004-mobile-nav {
  max-height: 0; overflow: hidden; transition: max-height 0.3s ease;
  background: var(--s004-bg-2); border-top: 1px solid var(--s004-line);
}
.s004-mobile-nav.s004-nav-open { max-height: 60rem; }
.s004-mobile-nav ul { list-style: none; margin: 0; padding: 0.4rem 0; }
.s004-mobile-nav a {
  display: block; padding: 1.1rem 1.4rem; color: var(--s004-text-light);
  font-size: 1.25rem; border-bottom: 1px solid var(--s004-line);
}
.s004-mobile-nav a:hover { background: rgba(221,160,221,0.08); color: var(--s004-accent); }

/* ---------- Carousel ---------- */
.s004-carousel { position: relative; margin: 1rem 0 1.4rem; border-radius: var(--s004-radius); overflow: hidden; box-shadow: var(--s004-shadow); }
.s004-slide { display: none; position: relative; }
.s004-slide img { width: 100%; height: auto; }
.s004-slide-caption { position: absolute; left: 0; right: 0; bottom: 0; padding: 1rem 1.2rem; background: linear-gradient(transparent, rgba(28,40,51,0.85)); color: var(--s004-text-light); font-weight: 700; font-size: 1.3rem; }
.s004-carousel-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); background: rgba(0,0,0,0.35);
  color: #fff; border: 0; width: 3.2rem; height: 3.2rem; border-radius: 50%; font-size: 1.6rem; cursor: pointer;
}
.s004-carousel-arrow.s004-prev { left: 0.6rem; }
.s004-carousel-arrow.s004-next { right: 0.6rem; }
.s004-dots { position: absolute; bottom: 0.8rem; left: 50%; transform: translateX(-50%); display: flex; gap: 0.5rem; }
.s004-dot { width: 0.8rem; height: 0.8rem; border-radius: 50%; background: rgba(255,255,255,0.5); }
.s004-dot.s004-dot-active { background: var(--s004-gold); }

/* ---------- Headings / Hero ---------- */
.s004-section { margin: 1.6rem 0; }
.s004-h1 { font-size: 2rem; line-height: 2.6rem; margin: 1.2rem 0 0.6rem; color: var(--s004-text-light); font-weight: 800; }
.s004-h2 { font-size: 1.7rem; line-height: 2.3rem; margin: 1.8rem 0 0.8rem; color: var(--s004-accent); font-weight: 700; }
.s004-h3 { font-size: 1.4rem; margin: 1.2rem 0 0.5rem; color: var(--s004-text); font-weight: 700; }
.s004-lead { color: var(--s004-text-soft); font-size: 1.25rem; margin: 0.4rem 0 1rem; }

.s004-hero {
  background: linear-gradient(135deg, #2a0a4d, var(--s004-bg-3));
  border: 1px solid var(--s004-line); border-radius: var(--s004-radius);
  padding: 1.4rem; margin: 1rem 0;
}
.s004-hero .s004-cta { margin-top: 1rem; display: inline-flex; }

.s004-cta {
  display: inline-flex; align-items: center; gap: 0.5rem; min-height: 4.4rem; padding: 0 1.6rem;
  background: linear-gradient(90deg, var(--s004-accent2), var(--s004-primary)); color: #fff;
  border-radius: 2.4rem; font-weight: 800; font-size: 1.3rem; cursor: pointer; border: 0;
  box-shadow: 0 0.4rem 1rem rgba(173,20,87,0.35); transition: transform 0.15s ease;
}
.s004-cta:active { transform: scale(0.96); }
.s004-text-link { color: var(--s004-accent); font-weight: 700; }
.s004-text-link:hover { color: var(--s004-gold); }

/* ---------- Game sections / grid ---------- */
.s004-chips { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 1rem 0; }
.s004-chip {
  padding: 0.6rem 1rem; border-radius: 2rem; background: var(--s004-bg-3); color: var(--s004-text-soft);
  font-size: 1.15rem; cursor: pointer; border: 1px solid var(--s004-line);
}
.s004-chip.s004-chip-active { background: var(--s004-primary); color: #fff; border-color: var(--s004-accent); }

.s004-game-section { margin: 1.6rem 0; }
.s004-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.8rem;
}
.s004-card {
  background: var(--s004-bg-3); border: 1px solid var(--s004-line); border-radius: 1rem;
  overflow: hidden; text-align: center; cursor: pointer; transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.s004-card:active { transform: scale(0.97); }
.s004-card img { width: 100%; height: auto; aspect-ratio: 1/1; object-fit: cover; }
.s004-card-name { padding: 0.5rem 0.3rem; font-size: 1.05rem; color: var(--s004-text-light); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- Info / Feature cards ---------- */
.s004-feature-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.8rem; margin: 1rem 0; }
.s004-feature {
  background: var(--s004-bg-3); border: 1px solid var(--s004-line); border-radius: 1rem;
  padding: 1rem; color: var(--s004-text-light);
}
.s004-feature .s004-ic { font-size: 1.8rem; color: var(--s004-accent); }
.s004-feature h3 { margin: 0.4rem 0; font-size: 1.3rem; color: var(--s004-text-light); }
.s004-feature p { margin: 0; font-size: 1.1rem; color: var(--s004-text-soft); }

.s004-rtp-row { display: flex; justify-content: space-between; padding: 0.7rem 0; border-bottom: 1px solid var(--s004-line); font-size: 1.15rem; }
.s004-rtp-row span:last-child { color: var(--s004-gold); font-weight: 700; }

.s004-testimonial { background: var(--s004-bg-3); border: 1px solid var(--s004-line); border-radius: 1rem; padding: 1rem; margin: 0.6rem 0; }
.s004-testimonial .s004-stars { color: var(--s004-gold); }
.s004-testimonial p { margin: 0.4rem 0 0; font-size: 1.15rem; color: var(--s004-text-soft); }
.s004-testimonial .s004-author { font-size: 1.05rem; color: var(--s004-accent); font-weight: 700; }

.s004-pay { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 1rem 0; }
.s004-pay span { background: var(--s004-bg-3); border: 1px solid var(--s004-line); border-radius: 0.8rem; padding: 0.6rem 1rem; font-size: 1.1rem; color: var(--s004-text-light); }

.s004-winner { display: flex; justify-content: space-between; padding: 0.7rem 0; border-bottom: 1px solid var(--s004-line); font-size: 1.15rem; }
.s004-winner span:last-child { color: var(--s004-gold); font-weight: 700; }

.s004-trick { background: var(--s004-bg-3); border-left: 3px solid var(--s004-accent); border-radius: 0.6rem; padding: 0.8rem 1rem; margin: 0.6rem 0; font-size: 1.15rem; color: var(--s004-text-soft); }

.s004-achievement { display: flex; align-items: center; gap: 0.8rem; padding: 0.7rem 0; border-bottom: 1px solid var(--s004-line); }
.s004-achievement .s004-ic { font-size: 1.8rem; color: var(--s004-gold); }
.s004-achievement div { font-size: 1.15rem; }

.s004-app-cta {
  background: linear-gradient(135deg, var(--s004-primary), var(--s004-accent2));
  border-radius: var(--s004-radius); padding: 1.2rem; text-align: center; margin: 1.4rem 0; color: #fff;
}
.s004-app-cta h3 { color: #fff; margin: 0 0 0.4rem; }
.s004-app-cta p { margin: 0 0 1rem; color: #f3e9fb; font-size: 1.15rem; }

/* ---------- Footer ---------- */
.s004-footer {
  background: var(--s004-bg-2); border-top: 1px solid var(--s004-line); margin-top: 2rem; padding: 1.6rem 1.2rem 2.4rem;
}
.s004-footer p { color: var(--s004-text-soft); font-size: 1.15rem; line-height: 1.8rem; }
.s004-footer-links { display: flex; flex-wrap: wrap; gap: 0.6rem 1.2rem; margin: 1rem 0; }
.s004-footer-links a { color: var(--s004-accent); font-size: 1.15rem; }
.s004-footer-promo { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 1rem 0; }
.s004-footer-promo button { min-height: 4rem; padding: 0 1.2rem; border-radius: 2rem; background: linear-gradient(90deg, var(--s004-accent2), var(--s004-primary)); color: #fff; font-weight: 700; font-size: 1.15rem; border: 0; cursor: pointer; }
.s004-footer-copy { color: var(--s004-text-soft); font-size: 1.05rem; margin-top: 1rem; }

/* ---------- Mobile bottom navigation ---------- */
.s004-bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0; max-width: 430px; margin: 0 auto;
  height: 6rem; background: linear-gradient(180deg, #2a0a4d, #12071f);
  border-top: 1px solid var(--s004-line); z-index: 1000;
  display: flex; justify-content: space-around; align-items: stretch;
  box-shadow: 0 -0.3rem 1rem rgba(0,0,0,0.35);
}
.s004-bottom-nav-btn {
  flex: 1; min-width: 6rem; min-height: 6rem; background: transparent; border: 0; color: var(--s004-text-soft);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.2rem; cursor: pointer;
  transition: color 0.15s ease, transform 0.15s ease;
}
.s004-bottom-nav-btn:active { transform: scale(0.92); }
.s004-bottom-nav-btn .s004-ic { font-size: 2.2rem; line-height: 1; }
.s004-bottom-nav-btn .s004-label { font-size: 1rem; }
.s004-bottom-nav-btn.s004-nav-current { color: var(--s004-gold); }
.s004-bottom-nav-btn.s004-nav-current .s004-ic { color: var(--s004-accent); }
.s004-bottom-nav-btn .s004-badge {
  position: absolute; top: 0.6rem; right: 1.4rem; background: var(--s004-accent2); color: #fff;
  font-size: 0.85rem; min-width: 1.5rem; height: 1.5rem; border-radius: 0.8rem; display: flex; align-items: center; justify-content: center; padding: 0 0.3rem;
}

/* ---------- Desktop rules ---------- */
@media (min-width: 769px) {
  .s004-bottom-nav { display: none; }
  body { max-width: 900px; }
  .s004-header { max-width: 900px; }
  .s004-grid { grid-template-columns: repeat(5, 1fr); }
  .s004-feature-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- Mobile bottom padding clearance ---------- */
@media (max-width: 768px) {
  main.s004-main { padding-bottom: 8rem; }
  .s004-wrapper { padding-bottom: 9rem; }
}

.s004-back-top {
  position: fixed; right: 1.2rem; bottom: 7.2rem; z-index: 999;
  width: 4rem; height: 4rem; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--s004-primary); color: #fff; font-size: 1.6rem;
  box-shadow: var(--s004-shadow);
}
