/* H196A Casino - Core Stylesheet (prefix: sba8-) */
/* English comments only. Mobile-first responsive design. */

:root {
  --sba8-primary: #B22222;
  --sba8-accent: #FF1493;
  --sba8-warm: #FF8A80;
  --sba8-bg: #0F0F23;
  --sba8-bg2: #1a1a3a;
  --sba8-text: #FAFAFA;
  --sba8-muted: #b8b8d0;
  --sba8-gold: #FFD700;
  --sba8-green: #00e676;
}

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

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

body {
  font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: var(--sba8-bg);
  color: var(--sba8-text);
  line-height: 1.5rem;
  font-size: 1.4rem;
  overflow-x: hidden;
  max-width: 430px;
  margin: 0 auto;
  min-height: 100vh;
}

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

/* ===== Header ===== */
.sba8-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  max-width: 430px;
  margin: 0 auto;
  background: linear-gradient(135deg, #0a0a1f 0%, #1a1a3a 100%);
  border-bottom: 2px solid var(--sba8-primary);
  z-index: 1000;
  padding: 0.8rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 2px 12px rgba(0,0,0,0.6);
}

.sba8-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.sba8-logo img {
  width: 28px; height: 28px;
  border-radius: 6px;
}
.sba8-logo span {
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--sba8-gold);
  letter-spacing: 0.5px;
}

.sba8-header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.sba8-menu-btn {
  background: transparent;
  border: 1px solid var(--sba8-warm);
  color: var(--sba8-warm);
  width: 38px; height: 38px;
  border-radius: 8px;
  font-size: 1.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.sba8-btn {
  border: none;
  border-radius: 10px;
  padding: 0.7rem 1.1rem;
  font-size: 1.25rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
  min-height: 38px;
}
.sba8-btn:active { transform: scale(0.94); }
.sba8-btn-register {
  background: linear-gradient(135deg, #FF1493, #B22222);
  color: #fff;
  box-shadow: 0 3px 10px rgba(255,20,147,0.45);
}
.sba8-btn-login {
  background: linear-gradient(135deg, #FFD700, #FF8A80);
  color: #0F0F23;
  box-shadow: 0 3px 10px rgba(255,215,0,0.35);
}

/* ===== Mobile Menu ===== */
.sba8-mobile-menu {
  position: fixed;
  top: 0; left: -100%;
  width: 82%;
  max-width: 320px;
  height: 100vh;
  background: linear-gradient(180deg, #0a0a1f, #1a1a3a);
  z-index: 9999;
  padding: 6rem 1.5rem 2rem;
  transition: left 0.3s ease;
  overflow-y: auto;
  border-right: 2px solid var(--sba8-primary);
}
.sba8-mobile-menu.sba8-open { left: 0; }
.sba8-mobile-menu h3 {
  color: var(--sba8-gold);
  font-size: 1.5rem;
  margin: 1.5rem 0 0.8rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid rgba(255,138,128,0.3);
}
.sba8-mobile-menu a {
  display: block;
  padding: 0.9rem 0.5rem;
  color: var(--sba8-text);
  font-size: 1.35rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.sba8-mobile-menu a:hover { color: var(--sba8-accent); padding-left: 1rem; }

.sba8-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.65);
  z-index: 9998;
  display: none;
}
.sba8-overlay.sba8-open { display: block; }

.sba8-menu-close {
  position: absolute;
  top: 1.2rem; right: 1.2rem;
  background: var(--sba8-primary);
  color: #fff;
  border: none;
  width: 36px; height: 36px;
  border-radius: 50%;
  font-size: 1.8rem;
  cursor: pointer;
}

/* ===== Main ===== */
main { padding-top: 5.5rem; }
@media (max-width: 768px) { main { padding-bottom: 80px; } }

/* ===== Hero / Carousel ===== */
.sba8-hero {
  position: relative;
  margin: 1rem;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0,0,0,0.5);
}
.sba8-carousel { position: relative; }
.sba8-slides { display: flex; transition: transform 0.5s ease; }
.sba8-slide {
  min-width: 100%;
  position: relative;
}
.sba8-slide img { width: 100%; height: 180px; object-fit: cover; }
.sba8-slide-caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(15,15,35,0.95));
  padding: 1rem;
  text-align: center;
}
.sba8-slide-caption h2 {
  font-size: 1.7rem;
  color: var(--sba8-gold);
  margin-bottom: 0.3rem;
}
.sba8-slide-caption p { font-size: 1.15rem; color: var(--sba8-warm); }

.sba8-carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.8rem 0;
  background: var(--sba8-bg2);
}
.sba8-dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
  cursor: pointer;
  border: none;
  transition: all 0.2s;
}
.sba8-dot.sba8-active {
  background: var(--sba8-accent);
  width: 24px;
  border-radius: 5px;
}

/* ===== Section ===== */
.sba8-section {
  margin: 1.5rem 1rem;
  padding: 1.3rem;
  background: linear-gradient(160deg, #15153a, #0d0d28);
  border-radius: 16px;
  border: 1px solid rgba(255,138,128,0.15);
}
.sba8-section-title {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--sba8-gold);
  margin-bottom: 1rem;
  padding-bottom: 0.6rem;
  border-bottom: 2px solid var(--sba8-primary);
}
.sba8-section-title i { font-size: 2rem; color: var(--sba8-accent); }
.sba8-section h2 {
  font-size: 1.8rem;
  color: var(--sba8-gold);
  margin-bottom: 0.8rem;
}
.sba8-section h3 {
  font-size: 1.4rem;
  color: var(--sba8-warm);
  margin: 0.8rem 0 0.4rem;
}
.sba8-section p {
  font-size: 1.3rem;
  color: var(--sba8-text);
  margin-bottom: 0.7rem;
  line-height: 1.6rem;
}
.sba8-section ul, .sba8-section ol {
  padding-left: 1.6rem;
  margin-bottom: 0.8rem;
}
.sba8-section li { font-size: 1.25rem; margin-bottom: 0.4rem; color: var(--sba8-text); }

/* ===== Game Grid ===== */
.sba8-cat-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--sba8-warm);
  margin: 1.2rem 0 0.6rem;
  padding-left: 0.4rem;
  border-left: 4px solid var(--sba8-accent);
}
.sba8-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.6rem;
}
@media (min-width: 380px) { .sba8-grid { gap: 0.8rem; } }
.sba8-game-card {
  background: linear-gradient(160deg, #1a1a3a, #0d0d28);
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  border: 1px solid rgba(255,255,255,0.08);
  transition: transform 0.2s, box-shadow 0.2s;
  text-align: center;
}
.sba8-game-card:active {
  transform: scale(0.95);
  box-shadow: 0 4px 14px rgba(255,20,147,0.5);
}
.sba8-game-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}
.sba8-game-name {
  font-size: 0.98rem;
  color: var(--sba8-text);
  padding: 0.3rem 0.2rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 600;
}

/* ===== Promo / CTA buttons ===== */
.sba8-cta {
  display: inline-block;
  background: linear-gradient(135deg, #FF1493, #B22222);
  color: #fff;
  padding: 0.85rem 1.6rem;
  border-radius: 30px;
  font-weight: 700;
  font-size: 1.3rem;
  margin: 0.6rem 0.3rem;
  cursor: pointer;
  border: none;
  box-shadow: 0 4px 14px rgba(255,20,147,0.4);
  transition: transform 0.15s;
}
.sba8-cta:active { transform: scale(0.95); }
.sba8-cta-gold {
  background: linear-gradient(135deg, #FFD700, #FF8A80);
  color: #0F0F23;
  box-shadow: 0 4px 14px rgba(255,215,0,0.4);
}
.sba8-promo-text {
  color: var(--sba8-accent);
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
}

/* ===== Info list / cards ===== */
.sba8-info-row {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  padding: 0.7rem 0;
  border-bottom: 1px dashed rgba(255,255,255,0.1);
}
.sba8-info-row i {
  color: var(--sba8-accent);
  font-size: 1.8rem;
  flex-shrink: 0;
  margin-top: 0.2rem;
}
.sba8-feature-card {
  background: rgba(255,255,255,0.04);
  border-radius: 12px;
  padding: 1rem;
  margin-bottom: 0.8rem;
  border-left: 3px solid var(--sba8-accent);
}
.sba8-feature-card h3 { color: var(--sba8-gold); margin-bottom: 0.4rem; }

.sba8-rtp-table { width: 100%; border-collapse: collapse; margin: 0.6rem 0; }
.sba8-rtp-table th, .sba8-rtp-table td {
  border: 1px solid rgba(255,255,255,0.15);
  padding: 0.6rem 0.5rem;
  font-size: 1.15rem;
  text-align: left;
}
.sba8-rtp-table th { background: var(--sba8-primary); color: #fff; }
.sba8-rtp-table tr:nth-child(even) { background: rgba(255,255,255,0.03); }

/* ===== Testimonials ===== */
.sba8-testimonial {
  background: rgba(255,255,255,0.04);
  border-radius: 12px;
  padding: 0.9rem;
  margin-bottom: 0.7rem;
  border-left: 3px solid var(--sba8-green);
}
.sba8-testimonial .sba8-stars { color: var(--sba8-gold); font-size: 1.2rem; }
.sba8-testimonial p { font-size: 1.2rem; font-style: italic; margin: 0.3rem 0; }
.sba8-testimonial .sba8-author { font-size: 1.1rem; color: var(--sba8-warm); font-weight: 700; }

/* ===== Payment ===== */
.sba8-pay-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
  text-align: center;
}
.sba8-pay-item {
  background: rgba(255,255,255,0.05);
  padding: 0.9rem 0.4rem;
  border-radius: 10px;
  border: 1px solid rgba(255,138,128,0.2);
}
.sba8-pay-item i { font-size: 2rem; color: var(--sba8-warm); }
.sba8-pay-item span { display: block; font-size: 1.05rem; margin-top: 0.3rem; }

/* ===== Winners ===== */
.sba8-winner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.6rem 0.8rem;
  background: rgba(255,255,255,0.04);
  border-radius: 10px;
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
}
.sba8-winner .sba8-amount { color: var(--sba8-green); font-weight: 700; }

/* ===== FAQ ===== */
.sba8-faq-item {
  background: rgba(255,255,255,0.04);
  border-radius: 10px;
  margin-bottom: 0.6rem;
  overflow: hidden;
}
.sba8-faq-q {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.8rem 1rem;
  cursor: pointer;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--sba8-gold);
}
.sba8-faq-a {
  padding: 0 1rem 0.9rem;
  font-size: 1.2rem;
  color: var(--sba8-text);
  display: none;
}
.sba8-faq-item.sba8-open .sba8-faq-a { display: block; }
.sba8-faq-icon { transition: transform 0.2s; }
.sba8-faq-item.sba8-open .sba8-faq-icon { transform: rotate(45deg); }

/* ===== Footer ===== */
.sba8-footer {
  background: linear-gradient(180deg, #0a0a1f, #050514);
  padding: 1.5rem 1rem 2rem;
  margin-top: 1.5rem;
  border-top: 2px solid var(--sba8-primary);
}
.sba8-footer p { font-size: 1.15rem; color: var(--sba8-muted); margin-bottom: 0.5rem; }
.sba8-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.8rem 0;
}
.sba8-footer-links a {
  font-size: 1.1rem;
  color: var(--sba8-warm);
  padding: 0.3rem 0.6rem;
  background: rgba(255,255,255,0.04);
  border-radius: 6px;
}
.sba8-footer-copyright {
  text-align: center;
  font-size: 1.1rem;
  color: var(--sba8-muted);
  padding-top: 0.8rem;
  border-top: 1px solid rgba(255,255,255,0.08);
}

/* ===== Bottom Nav ===== */
.sba8-bottom-nav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  max-width: 430px;
  margin: 0 auto;
  height: 60px;
  background: linear-gradient(180deg, #1a1a3a, #0a0a1f);
  border-top: 2px solid var(--sba8-primary);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
  box-shadow: 0 -4px 16px rgba(0,0,0,0.5);
}
.sba8-nav-btn {
  background: transparent;
  border: none;
  color: var(--sba8-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  min-height: 60px;
  cursor: pointer;
  font-size: 1rem;
  gap: 0.15rem;
  transition: color 0.2s, transform 0.2s;
}
.sba8-nav-btn i, .sba8-nav-btn .material-icons, .sba8-nav-btn ion-icon {
  font-size: 22px;
}
.sba8-nav-btn ion-icon { font-size: 24px; }
.sba8-nav-btn:hover, .sba8-nav-btn:active { color: var(--sba8-accent); transform: scale(1.1); }
.sba8-nav-btn.sba8-active { color: var(--sba8-gold); }
.sba8-nav-btn.sba8-promo { color: var(--sba8-warm); }
.sba8-nav-btn span { font-size: 1rem; }

@media (min-width: 769px) { .sba8-bottom-nav { display: none; } }

/* Desktop navigation support */
@media (min-width: 769px) {
  body { max-width: 1100px; }
  .sba8-header, .sba8-bottom-nav { max-width: 1100px; }
  .sba8-header { padding: 1rem 2rem; }
  main { max-width: 1100px; margin: 0 auto; }
  .sba8-section, .sba8-hero { max-width: 1040px; margin-left: auto; margin-right: auto; }
  .sba8-grid { grid-template-columns: repeat(6, 1fr); }
}