/* ============================================================
 * nustar apk - Core Stylesheet (Basefile)
 * Prefix : sbb4-
 * Palette: #FFFFBA | #191970 | #1A1A2E | #880E4F | #BA55D3
 * Mobile-first, max-width 430px, root font 62.5% (1rem = 10px).
 * ============================================================ */

:root {
  --sbb4-primary: #BA55D3;
  --sbb4-accent: #FFFFBA;
  --sbb4-bg: #1A1A2E;
  --sbb4-bg-2: #191970;
  --sbb4-deep: #880E4F;
  --sbb4-text: #FFFFBA;
  --sbb4-text-soft: rgba(255, 255, 186, 0.78);
  --sbb4-card: rgba(25, 25, 112, 0.55);
  --sbb4-line: rgba(186, 85, 211, 0.35);
  --sbb4-radius: 1.2rem;
  --sbb4-shadow: 0 0.4rem 1.6rem rgba(0, 0, 0, 0.45);
}

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

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

body {
  font-family: "Segoe UI", "Helvetica Neue", Arial, system-ui, sans-serif;
  background: radial-gradient(circle at 20% 0%, #191970 0%, #1A1A2E 55%, #0d0d1f 100%);
  color: var(--sbb4-text);
  line-height: 1.5rem;
  font-size: 1.5rem;
  min-height: 100vh;
  overflow-x: hidden;
}

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

a { color: var(--sbb4-accent); text-decoration: none; }
a:hover, a:focus { color: #ffffff; }

.sbb4-wrapper {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  position: relative;
}

/* ============ Header / Top Nav ============ */
.sbb4-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  max-width: 430px;
  margin: 0 auto;
  height: 5.6rem;
  background: linear-gradient(90deg, #1A1A2E 0%, #191970 60%, #880E4F 100%);
  border-bottom: 0.1rem solid var(--sbb4-line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.2rem;
  z-index: 1000;
  box-shadow: var(--sbb4-shadow);
}

.sbb4-brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  min-width: 0;
}

.sbb4-logo {
  width: 2.8rem; height: 2.8rem;
  border-radius: 0.6rem;
  background: var(--sbb4-accent);
  display: flex; align-items: center; justify-content: center;
  color: #191970; font-weight: 800; font-size: 1.4rem;
  flex-shrink: 0;
}

.sbb4-brand-name {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--sbb4-accent);
  letter-spacing: 0.03rem;
  white-space: nowrap;
}

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

.sbb4-btn {
  border: none;
  border-radius: 0.8rem;
  padding: 0.7rem 1.3rem;
  font-size: 1.3rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  min-height: 4.4rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  text-decoration: none;
}

.sbb4-btn:hover, .sbb4-btn:active { transform: translateY(-0.1rem); }

.sbb4-btn-register {
  background: linear-gradient(90deg, #BA55D3 0%, #880E4F 100%);
  color: #ffffff;
  box-shadow: 0 0.3rem 0.9rem rgba(186, 85, 211, 0.45);
}

.sbb4-btn-login {
  background: transparent;
  color: var(--sbb4-accent);
  border: 0.15rem solid var(--sbb4-accent);
}

.sbb4-menu-btn {
  background: transparent;
  border: none;
  color: var(--sbb4-accent);
  font-size: 2.2rem;
  width: 4.4rem; height: 4.4rem;
  border-radius: 0.8rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}

.sbb4-menu-btn:hover { background: rgba(255, 255, 186, 0.12); }

/* ============ Mobile slide-down menu ============ */
.sbb4-mobile-menu {
  position: fixed;
  top: 5.6rem; left: 0; right: 0;
  max-width: 430px;
  margin: 0 auto;
  background: #1A1A2E;
  border-bottom: 0.1rem solid var(--sbb4-line);
  padding: 1rem 1.2rem 1.4rem;
  transform: translateY(-130%);
  transition: transform 0.28s ease;
  z-index: 9999;
  box-shadow: var(--sbb4-shadow);
}

.sbb4-mobile-menu.sbb4-menu-open { transform: translateY(0); }

.sbb4-mobile-menu a {
  display: block;
  padding: 1rem 1.2rem;
  color: var(--sbb4-text);
  font-size: 1.4rem;
  border-radius: 0.8rem;
  border-left: 0.3rem solid transparent;
  margin-bottom: 0.4rem;
}
.sbb4-mobile-menu a:hover, .sbb4-mobile-menu a:focus {
  background: rgba(186, 85, 211, 0.18);
  border-left-color: var(--sbb4-primary);
  color: #ffffff;
}

/* ============ Main / sections ============ */
.sbb4-main {
  padding-top: 6.4rem;
  padding-bottom: 1rem;
}

.sbb4-section {
  padding: 2rem 1.2rem 1rem;
}

.sbb4-section-alt {
  background: linear-gradient(180deg, rgba(25, 25, 112, 0.45) 0%, rgba(26, 26, 46, 0) 100%);
}

.sbb4-h1 {
  font-size: 2.2rem;
  line-height: 2.6rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 0.6rem;
  text-shadow: 0 0.2rem 0.6rem rgba(136, 14, 79, 0.6);
}

.sbb4-h2 {
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--sbb4-accent);
  margin-bottom: 0.8rem;
  padding-left: 1rem;
  border-left: 0.4rem solid var(--sbb4-primary);
}

.sbb4-h3 {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--sbb4-primary);
  margin: 1.2rem 0 0.6rem;
}

.sbb4-lead {
  font-size: 1.45rem;
  color: var(--sbb4-text-soft);
  margin-bottom: 1rem;
}

.sbb4-p {
  font-size: 1.42rem;
  color: var(--sbb4-text-soft);
  margin-bottom: 0.9rem;
}

.sbb4-strong { color: var(--sbb4-accent); font-weight: 700; }

.sbb4-promo-text {
  color: var(--sbb4-accent);
  font-weight: 800;
  cursor: pointer;
  border-bottom: 0.15rem dashed var(--sbb4-primary);
}

.sbb4-promo-text:hover { color: #ffffff; border-bottom-color: #ffffff; }

/* ============ Hero carousel ============ */
.sbb4-hero {
  position: relative;
  width: 100%;
  border-radius: 0;
  overflow: hidden;
  margin-bottom: 0.6rem;
}

.sbb4-slides { position: relative; width: 100%; aspect-ratio: 16 / 9; }

.sbb4-slide {
  position: absolute; inset: 0;
  opacity: 0;
  transition: opacity 0.6s ease;
  cursor: pointer;
}
.sbb4-slide img { width: 100%; height: 100%; object-fit: cover; }
.sbb4-slide.sbb4-slide-active { opacity: 1; }

.sbb4-slide-cap {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 1rem 1.2rem 2.4rem;
  background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(26,26,46,0.92) 100%);
  font-size: 1.5rem; font-weight: 700; color: #ffffff;
}

.sbb4-dots {
  position: absolute; bottom: 0.8rem; left: 0; right: 0;
  display: flex; justify-content: center; gap: 0.6rem;
  z-index: 5;
}
.sbb4-dot {
  width: 0.9rem; height: 0.9rem; border-radius: 50%;
  background: rgba(255,255,186,0.45);
  border: none; cursor: pointer; padding: 0;
}
.sbb4-dot.sbb4-dot-active { background: var(--sbb4-primary); transform: scale(1.2); }

/* ============ Filter chips ============ */
.sbb4-chips {
  display: flex; gap: 0.6rem; flex-wrap: wrap;
  margin: 0.6rem 0 1rem;
}
.sbb4-chip {
  padding: 0.5rem 1rem;
  border-radius: 2rem;
  background: var(--sbb4-card);
  border: 0.12rem solid var(--sbb4-line);
  color: var(--sbb4-text-soft);
  font-size: 1.2rem;
  cursor: pointer;
  font-weight: 600;
}
.sbb4-chip.sbb4-chip-active {
  background: linear-gradient(90deg, #BA55D3, #880E4F);
  color: #ffffff; border-color: transparent;
}

/* ============ Game grid ============ */
.sbb4-game-group { margin-bottom: 1.6rem; }
.sbb4-game-group-title {
  font-size: 1.5rem; font-weight: 700;
  color: var(--sbb4-accent);
  margin-bottom: 0.8rem;
  display: flex; align-items: center; gap: 0.5rem;
}

.sbb4-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.7rem;
}

.sbb4-game {
  display: flex; flex-direction: column; align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.3rem;
  background: var(--sbb4-card);
  border-radius: 0.8rem;
  border: 0.1rem solid var(--sbb4-line);
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  min-width: 0;
}
.sbb4-game:hover, .sbb4-game:active {
  transform: translateY(-0.2rem) scale(1.04);
  box-shadow: 0 0.4rem 1.2rem rgba(186, 85, 211, 0.5);
  border-color: var(--sbb4-primary);
}
.sbb4-game img {
  width: 100%; aspect-ratio: 1 / 1; object-fit: cover;
  border-radius: 0.6rem;
}
.sbb4-game-name {
  font-size: 1.05rem;
  color: var(--sbb4-text-soft);
  text-align: center;
  line-height: 1.2rem;
  height: 2.4rem;
  overflow: hidden;
  width: 100%;
  word-break: break-word;
}

/* ============ Cards / features ============ */
.sbb4-card {
  background: var(--sbb4-card);
  border: 0.1rem solid var(--sbb4-line);
  border-radius: var(--sbb4-radius);
  padding: 1.4rem;
  margin-bottom: 1.2rem;
  box-shadow: var(--sbb4-shadow);
}

.sbb4-card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.8rem;
}

.sbb4-mini-card {
  background: rgba(26, 26, 46, 0.6);
  border: 0.1rem solid var(--sbb4-line);
  border-radius: 0.9rem;
  padding: 1rem;
  text-align: center;
}
.sbb4-mini-card i, .sbb4-mini-card .material-icons-outlined {
  font-size: 2.2rem; color: var(--sbb4-primary); margin-bottom: 0.4rem; display: block;
}
.sbb4-mini-card .sbb4-mc-title { font-size: 1.2rem; font-weight: 700; color: var(--sbb4-accent); }
.sbb4-mini-card .sbb4-mc-desc { font-size: 1.05rem; color: var(--sbb4-text-soft); margin-top: 0.3rem; }

/* ============ FAQ ============ */
.sbb4-faq-item {
  background: rgba(26, 26, 46, 0.6);
  border: 0.1rem solid var(--sbb4-line);
  border-radius: 0.8rem;
  padding: 1rem 1.2rem;
  margin-bottom: 0.7rem;
}
.sbb4-faq-q { font-size: 1.3rem; font-weight: 700; color: var(--sbb4-accent); margin-bottom: 0.4rem; }
.sbb4-faq-a { font-size: 1.3rem; color: var(--sbb4-text-soft); }

/* ============ CTA band ============ */
.sbb4-cta {
  background: linear-gradient(90deg, #880E4F 0%, #BA55D3 100%);
  border-radius: var(--sbb4-radius);
  padding: 1.6rem 1.4rem;
  text-align: center;
  margin: 1.2rem 0;
  box-shadow: 0 0.4rem 1.4rem rgba(186, 85, 211, 0.5);
}
.sbb4-cta h3 { color: #ffffff; font-size: 1.7rem; margin-bottom: 0.5rem; }
.sbb4-cta p { color: rgba(255,255,255,0.9); font-size: 1.3rem; margin-bottom: 1rem; }
.sbb4-cta .sbb4-btn { background: #ffffff; color: #880E4F; font-size: 1.4rem; padding: 1rem 2rem; }

/* ============ Testimonials / winners ============ */
.sbb4-tlist { display: flex; flex-direction: column; gap: 0.7rem; }
.sbb4-titem {
  display: flex; align-items: center; gap: 0.8rem;
  background: rgba(26, 26, 46, 0.6);
  border: 0.1rem solid var(--sbb4-line);
  border-radius: 0.8rem; padding: 0.8rem 1rem;
}
.sbb4-tavatar {
  width: 3.2rem; height: 3.2rem; border-radius: 50%;
  background: linear-gradient(135deg, #BA55D3, #191970);
  display: flex; align-items: center; justify-content: center;
  color: #ffffff; font-weight: 800; font-size: 1.3rem; flex-shrink: 0;
}
.sbb4-tname { font-size: 1.2rem; font-weight: 700; color: var(--sbb4-accent); }
.sbb4-tmeta { font-size: 1.05rem; color: var(--sbb4-text-soft); }

/* ============ Payment / app row ============ */
.sbb4-pill-row {
  display: flex; flex-wrap: wrap; gap: 0.6rem;
}
.sbb4-pill {
  background: rgba(255, 255, 186, 0.12);
  border: 0.1rem solid var(--sbb4-line);
  border-radius: 2rem;
  padding: 0.5rem 1rem;
  font-size: 1.15rem; color: var(--sbb4-text);
  display: inline-flex; align-items: center; gap: 0.4rem;
}

/* ============ Footer ============ */
.sbb4-footer {
  background: #0d0d1f;
  border-top: 0.1rem solid var(--sbb4-line);
  padding: 2rem 1.2rem 1rem;
  margin-top: 1.6rem;
}
.sbb4-footer-brand { font-size: 1.3rem; color: var(--sbb4-text-soft); margin-bottom: 1rem; }
.sbb4-footer-links {
  display: flex; flex-wrap: wrap; gap: 0.5rem 1rem;
  margin-bottom: 1rem;
}
.sbb4-footer-links a {
  font-size: 1.2rem; color: var(--sbb4-text-soft);
  border-bottom: 0.1rem dashed transparent;
}
.sbb4-footer-links a:hover { color: var(--sbb4-accent); border-bottom-color: var(--sbb4-primary); }

.sbb4-footer-promo {
  display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 1rem 0;
}
.sbb4-footer-promo .sbb4-btn { padding: 0.7rem 1.1rem; font-size: 1.2rem; }

.sbb4-footer-copy {
  font-size: 1.1rem; color: rgba(255,255,186,0.5);
  text-align: center; border-top: 0.1rem solid var(--sbb4-line); padding-top: 1rem;
}

/* ============ Mobile bottom nav ============ */
.sbb4-bottomnav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  max-width: 430px;
  margin: 0 auto;
  height: 6rem;
  background: linear-gradient(90deg, #1A1A2E 0%, #191970 100%);
  border-top: 0.12rem solid var(--sbb4-primary);
  display: flex;
  justify-content: space-around;
  align-items: stretch;
  z-index: 1000;
  box-shadow: 0 -0.3rem 1rem rgba(0,0,0,0.5);
}

.sbb4-navbtn {
  flex: 1;
  min-width: 6rem;
  min-height: 6rem;
  background: transparent;
  border: none;
  color: var(--sbb4-text-soft);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  cursor: pointer;
  text-decoration: none;
  padding: 0.3rem;
  transition: color 0.2s ease, transform 0.2s ease;
  position: relative;
}
.sbb4-navbtn i, .sbb4-navbtn .material-icons-outlined, .sbb4-navbtn .material-icons,
.sbb4-navbtn ion-icon {
  font-size: 2.4rem; line-height: 1;
}
.sbb4-navbtn ion-icon { font-size: 2.4rem; }
.sbb4-navbtn .sbb4-nav-label { font-size: 1.05rem; font-weight: 600; }
.sbb4-navbtn:hover, .sbb4-navbtn:active { color: var(--sbb4-accent); transform: translateY(-0.15rem) scale(1.05); }
.sbb4-navbtn.sbb4-navbtn-active { color: var(--sbb4-primary); }
.sbb4-navbtn.sbb4-navbtn-active::after {
  content: ""; position: absolute; top: 0; left: 25%; right: 25%; height: 0.25rem;
  background: linear-gradient(90deg, #BA55D3, #FFFFBA); border-radius: 0 0 0.4rem 0.4rem;
}

/* ============ Desktop / responsive ============ */
@media (min-width: 769px) {
  .sbb4-bottomnav { display: none; }
  .sbb4-menu-btn { display: none; }
  .sbb4-wrapper { max-width: 430px; }
}

@media (max-width: 768px) {
  .sbb4-main { padding-bottom: 8rem; }
  .sbb4-footer { padding-bottom: 7rem; }
}

/* ============ Utilities ============ */
.sbb4-center { text-align: center; }
.sbb4-mt { margin-top: 1.2rem; }
.sbb4-mb { margin-bottom: 1.2rem; }
.sbb4-hidden { display: none !important; }
.sbb4-divider {
  height: 0.1rem; background: var(--sbb4-line); margin: 1.4rem 0; border: none;
}
