/* ============================================================
 * nutstar.cyou - style-5bd1.css
 * All custom classes use prefix `s5bd-`. CSS variables use --s5bd-*.
 * Mobile-first layout, primary container capped at max-width: 430px.
 * Palette: #0000CD / #CCCCCC / #004D40 / #4169E1 / #1B263B / #E0F2F1
 * ============================================================ */

:root {
  --s5bd-blue: #0000CD;
  --s5bd-gray: #CCCCCC;
  --s5bd-teal: #004D40;
  --s5bd-royal: #4169E1;
  --s5bd-navy: #1B263B;
  --s5bd-mint: #E0F2F1;
  --s5bd-bg: #0E1830;
  --s5bd-bg-2: #14213D;
  --s5bd-text: #F5F8FF;
  --s5bd-muted: #B9C6E0;
  --s5bd-accent: #FFC94D;
  --s5bd-accent-2: #3DDC97;
  --s5bd-line: rgba(255, 255, 255, 0.08);
  --s5bd-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  --s5bd-radius: 14px;
  --s5bd-radius-lg: 22px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { font-size: 62.5%; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Segoe UI", "Helvetica Neue", Roboto, Arial, sans-serif;
  background: linear-gradient(180deg, #0B1430 0%, #0E1830 40%, #0B1226 100%);
  color: var(--s5bd-text);
  line-height: 1.5;
  font-size: 1.5rem;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0; line-height: 1.25; font-weight: 800; letter-spacing: -0.01em; }
p { margin: 0 0 1rem; }

/* ---------- Layout containers ---------- */
.s5bd-container {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  padding: 0 14px;
}
.s5bd-wrapper {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
}
.s5bd-section { padding: 26px 0; }
.s5bd-section-alt { background: linear-gradient(180deg, rgba(65,105,225,0.10), rgba(0,77,64,0.10)); }
.s5bd-hidden { display: none !important; }

/* ---------- Header ---------- */
.s5bd-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(11, 18, 40, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--s5bd-line);
  transition: padding 0.25s ease, background 0.25s ease;
}
.s5bd-header-scrolled { background: rgba(7, 12, 28, 0.98); }
.s5bd-header-inner {
  max-width: 430px;
  margin: 0 auto;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.s5bd-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}
.s5bd-logo img { width: 30px; height: 30px; border-radius: 8px; }
.s5bd-logo-text {
  font-weight: 900;
  font-size: 1.7rem;
  color: var(--s5bd-text);
  letter-spacing: 0.04em;
}
.s5bd-logo-text span { color: var(--s5bd-accent); }
.s5bd-header-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}
.s5bd-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 40px;
  padding: 0 16px;
  font-size: 1.35rem;
  font-weight: 800;
  border-radius: 999px;
  transition: transform 0.15s ease, box-shadow 0.2s ease, opacity 0.2s ease;
  white-space: nowrap;
}
.s5bd-btn:active { transform: scale(0.96); }
.s5bd-btn-primary {
  background: linear-gradient(135deg, #FFD24D 0%, #FFB300 100%);
  color: #1B263B;
  box-shadow: 0 6px 16px rgba(255, 179, 0, 0.35);
}
.s5bd-btn-secondary {
  background: linear-gradient(135deg, #4169E1 0%, #0000CD 100%);
  color: #fff;
  box-shadow: 0 6px 16px rgba(65, 105, 225, 0.35);
}
.s5bd-btn-ghost {
  background: rgba(255, 255, 255, 0.08);
  color: var(--s5bd-text);
  border: 1px solid var(--s5bd-line);
}
.s5bd-btn-block { width: 100%; }
.s5bd-btn-lg { min-height: 50px; font-size: 1.6rem; }

.s5bd-menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--s5bd-text);
  font-size: 1.8rem;
}

/* ---------- Mobile menu ---------- */
.s5bd-mobile-menu {
  position: fixed;
  top: 60px; left: 0; right: 0;
  background: rgba(7, 12, 28, 0.99);
  border-bottom: 1px solid var(--s5bd-line);
  padding: 10px 14px 16px;
  transform: translateY(-130%);
  transition: transform 0.3s ease;
  z-index: 9999;
  max-height: 80vh;
  overflow-y: auto;
}
.s5bd-menu-open { transform: translateY(0); }
.s5bd-mobile-menu a {
  display: block;
  padding: 12px 10px;
  border-bottom: 1px solid var(--s5bd-line);
  font-weight: 700;
  font-size: 1.45rem;
  color: var(--s5bd-text);
}
.s5bd-mobile-menu a:last-child { border-bottom: 0; }
.s5bd-mobile-menu a i { margin-right: 10px; color: var(--s5bd-accent); width: 22px; text-align: center; }

/* ---------- Hero / Carousel ---------- */
.s5bd-main { padding-top: 64px; }
.s5bd-carousel {
  position: relative;
  border-radius: var(--s5bd-radius-lg);
  overflow: hidden;
  box-shadow: var(--s5bd-shadow);
  margin: 14px 0 4px;
}
.s5bd-carousel-track {
  display: flex;
  transition: transform 0.45s ease;
}
.s5bd-carousel-slide {
  position: relative;
  min-width: 100%;
  display: none;
}
.s5bd-carousel-slide.s5bd-active { display: block; }
.s5bd-carousel-slide img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}
.s5bd-carousel-caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 18px 16px 14px;
  background: linear-gradient(180deg, rgba(11,18,40,0) 0%, rgba(7,12,28,0.92) 100%);
}
.s5bd-carousel-caption h2 {
  font-size: 1.9rem;
  color: #fff;
  margin-bottom: 6px;
}
.s5bd-carousel-caption p {
  font-size: 1.25rem;
  color: var(--s5bd-mint);
  margin: 0;
}
.s5bd-carousel-dots {
  position: absolute;
  bottom: 10px; right: 12px;
  display: flex;
  gap: 6px;
}
.s5bd-carousel-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
}
.s5bd-carousel-dot.s5bd-active { background: var(--s5bd-accent); width: 22px; border-radius: 4px; }
.s5bd-carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 34px; height: 34px;
  border-radius: 50%;
  background: rgba(0,0,0,0.45);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem;
}
.s5bd-carousel-arrow.prev { left: 8px; }
.s5bd-carousel-arrow.next { right: 8px; }

/* ---------- Headings ---------- */
.s5bd-h1 {
  font-size: 2.5rem;
  margin: 18px 0 6px;
  color: #fff;
  text-align: center;
}
.s5bd-h1 span { color: var(--s5bd-accent); }
.s5bd-section-title {
  font-size: 2rem;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.s5bd-section-title i { color: var(--s5bd-accent); font-size: 1.9rem; }
.s5bd-section-sub {
  font-size: 1.25rem;
  color: var(--s5bd-muted);
  margin-bottom: 16px;
}
.s5bd-divider {
  height: 3px;
  width: 60px;
  background: linear-gradient(90deg, var(--s5bd-accent), var(--s5bd-royal));
  border-radius: 3px;
  margin: 6px 0 16px;
}

/* ---------- Filter chips ---------- */
.s5bd-filter-bar {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 6px 0 12px;
  -webkit-overflow-scrolling: touch;
}
.s5bd-filter-bar::-webkit-scrollbar { display: none; }
.s5bd-filter-chip {
  flex: 0 0 auto;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.07);
  color: var(--s5bd-muted);
  font-size: 1.25rem;
  font-weight: 700;
  border: 1px solid var(--s5bd-line);
}
.s5bd-filter-chip.s5bd-active {
  background: linear-gradient(135deg, var(--s5bd-royal), var(--s5bd-blue));
  color: #fff;
}

/* ---------- Game grid ---------- */
.s5bd-game-section { margin-bottom: 26px; }
.s5bd-game-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.s5bd-card {
  background: linear-gradient(180deg, rgba(65,105,225,0.10), rgba(0,77,64,0.10));
  border: 1px solid var(--s5bd-line);
  border-radius: var(--s5bd-radius);
  padding: 8px;
  text-align: center;
  transition: transform 0.18s ease, box-shadow 0.2s ease;
  cursor: pointer;
  overflow: hidden;
}
.s5bd-card:active { transform: scale(0.96); }
.s5bd-card-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 10px;
  background: #0B1430;
  margin-bottom: 6px;
}
.s5bd-card-name {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--s5bd-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.s5bd-card-tag {
  display: inline-block;
  font-size: 1rem;
  color: var(--s5bd-mint);
  background: rgba(0,77,64,0.55);
  padding: 2px 8px;
  border-radius: 6px;
  margin-top: 4px;
}

/* ---------- Feature blocks ---------- */
.s5bd-grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.s5bd-feature-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--s5bd-line);
  border-radius: var(--s5bd-radius);
  padding: 16px 14px;
}
.s5bd-feature-card i { font-size: 2.4rem; color: var(--s5bd-accent); }
.s5bd-feature-card h3 { font-size: 1.45rem; margin: 8px 0 6px; color: #fff; }
.s5bd-feature-card p { font-size: 1.2rem; color: var(--s5bd-muted); margin: 0; }

.s5bd-prose { font-size: 1.4rem; color: var(--s5bd-muted); line-height: 1.7; }
.s5bd-prose strong { color: var(--s5bd-accent); font-weight: 800; }
.s5bd-prose a { color: var(--s5bd-royal); text-decoration: underline; font-weight: 700; }
.s5bd-prose h2 { color: #fff; font-size: 1.85rem; margin: 14px 0 8px; }
.s5bd-prose h3 { color: #fff; font-size: 1.55rem; margin: 12px 0 6px; }
.s5bd-prose ul { padding-left: 20px; margin: 8px 0 12px; list-style: disc; }
.s5bd-prose li { margin-bottom: 4px; }

/* ---------- Promo banner CTA ---------- */
.s5bd-cta {
  background: linear-gradient(135deg, #1B263B 0%, #004D40 100%);
  border: 1px solid var(--s5bd-line);
  border-radius: var(--s5bd-radius-lg);
  padding: 18px;
  text-align: center;
  margin: 14px 0;
}
.s5bd-cta h3 { font-size: 1.7rem; color: #fff; margin-bottom: 6px; }
.s5bd-cta p { font-size: 1.25rem; color: var(--s5bd-mint); margin-bottom: 12px; }

/* ---------- Testimonials ---------- */
.s5bd-testimonial {
  background: rgba(255,255,255,0.04);
  border-left: 3px solid var(--s5bd-accent);
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 10px;
}
.s5bd-testimonial p { font-size: 1.25rem; color: var(--s5bd-text); margin: 0 0 6px; font-style: italic; }
.s5bd-testimonial .s5bd-stars { color: var(--s5bd-accent); font-size: 1.2rem; margin-bottom: 4px; }
.s5bd-testimonial .s5bd-author { font-size: 1.15rem; color: var(--s5bd-muted); font-weight: 700; }

/* ---------- Payment chips ---------- */
.s5bd-pay-row { display: flex; flex-wrap: wrap; gap: 8px; }
.s5bd-pay {
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--s5bd-line);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 1.2rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.s5bd-pay i { color: var(--s5bd-accent-2); }

/* ---------- Winners ticker ---------- */
.s5bd-winners {
  background: rgba(0,77,64,0.30);
  border: 1px solid var(--s5bd-line);
  border-radius: var(--s5bd-radius);
  overflow: hidden;
}
.s5bd-winner-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  border-bottom: 1px solid var(--s5bd-line);
  font-size: 1.2rem;
}
.s5bd-winner-row:last-child { border-bottom: 0; }
.s5bd-winner-name { font-weight: 700; color: #fff; }
.s5bd-winner-game { color: var(--s5bd-muted); }
.s5bd-winner-amount { color: var(--s5bd-accent); font-weight: 800; }

/* ---------- FAQ ---------- */
.s5bd-faq-item {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--s5bd-line);
  border-radius: 12px;
  margin-bottom: 10px;
  overflow: hidden;
}
.s5bd-faq-q {
  width: 100%;
  text-align: left;
  padding: 14px;
  font-size: 1.35rem;
  font-weight: 700;
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.s5bd-faq-q i { color: var(--s5bd-accent); transition: transform 0.25s ease; }
.s5bd-faq-item.s5bd-open .s5bd-faq-q i { transform: rotate(45deg); }
.s5bd-faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0 14px;
  color: var(--s5bd-muted);
  font-size: 1.25rem;
}
.s5bd-faq-item.s5bd-open .s5bd-faq-a { max-height: 400px; padding: 0 14px 14px; }

/* ---------- Reveal animation ---------- */
.s5bd-reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.5s ease, transform 0.5s ease; }
.s5bd-reveal.s5bd-visible { opacity: 1; transform: translateY(0); }

/* ---------- Footer ---------- */
.s5bd-footer {
  background: #070C1C;
  border-top: 1px solid var(--s5bd-line);
  padding: 26px 0 100px;
  margin-top: 30px;
}
.s5bd-footer h4 { font-size: 1.4rem; color: #fff; margin-bottom: 10px; }
.s5bd-footer p { font-size: 1.2rem; color: var(--s5bd-muted); }
.s5bd-footer-links { display: flex; flex-direction: column; gap: 6px; margin: 8px 0; }
.s5bd-footer-links a { font-size: 1.2rem; color: var(--s5bd-muted); }
.s5bd-footer-links a:hover { color: var(--s5bd-accent); }
.s5bd-footer-bottom {
  border-top: 1px solid var(--s5bd-line);
  margin-top: 18px;
  padding-top: 14px;
  text-align: center;
  color: var(--s5bd-muted);
  font-size: 1.15rem;
}

/* ---------- Back to top ---------- */
.s5bd-back-top {
  position: fixed;
  right: 14px;
  bottom: 78px;
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--s5bd-royal);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem;
  box-shadow: var(--s5bd-shadow);
  z-index: 999;
  opacity: 0.95;
}

/* ---------- Mobile bottom navigation ---------- */
.s5bd-bottom-nav {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  height: 62px;
  background: linear-gradient(180deg, rgba(13,20,46,0.98), rgba(7,12,28,0.99));
  border-top: 1px solid var(--s5bd-line);
  display: flex;
  justify-content: space-around;
  align-items: stretch;
  z-index: 1000;
  box-shadow: 0 -6px 20px rgba(0,0,0,0.35);
}
.s5bd-bottom-nav-btn {
  flex: 1 1 0;
  min-width: 60px;
  min-height: 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: var(--s5bd-muted);
  font-size: 1.05rem;
  font-weight: 700;
  transition: color 0.2s ease, transform 0.18s ease;
  position: relative;
}
.s5bd-bottom-nav-btn i,
.s5bd-bottom-nav-btn .material-icons-outlined,
.s5bd-bottom-nav-btn .ion { font-size: 22px; }
.s5bd-bottom-nav-btn:active { transform: scale(0.92); }
.s5bd-bottom-nav-btn.s5bd-current { color: var(--s5bd-accent); }
.s5bd-bottom-nav-btn.s5bd-current::before {
  content: "";
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 28px; height: 3px;
  background: var(--s5bd-accent);
  border-radius: 0 0 4px 4px;
}
.s5bd-bottom-nav-btn.s5bd-nav-promo {
  color: #fff;
}
.s5bd-bottom-nav-btn.s5bd-nav-promo i { color: var(--s5bd-accent); }

/* ---------- Desktop: hide bottom nav, widen container ---------- */
@media (min-width: 769px) {
  .s5bd-bottom-nav { display: none; }
  .s5bd-container, .s5bd-wrapper, .s5bd-header-inner { max-width: 760px; }
  .s5bd-game-grid { grid-template-columns: repeat(6, 1fr); }
  .s5bd-grid-2 { grid-template-columns: repeat(4, 1fr); }
}

/* ---------- Mobile bottom padding ---------- */
@media (max-width: 768px) {
  .s5bd-main { padding-bottom: 80px; }
  main { padding-bottom: 80px; }
}
