/* ===============================================
 * Bunny Gaming - design-8ac2.css
 * All classes use s8ac- prefix
 * Mobile-first responsive design (max-width 430px)
 * Palette: #34495E | #262626 | #D3D3D3 | #9932CC | #BDC3C7
 * =============================================== */

:root {
  --s8ac-primary: #9932CC;
  --s8ac-bg: #262626;
  --s8ac-bg-dark: #1a1a1a;
  --s8ac-bg-deep: #34495E;
  --s8ac-text: #D3D3D3;
  --s8ac-text-light: #BDC3C7;
  --s8ac-accent: #9932CC;
  --s8ac-gold: #FFD700;
  --s8ac-border: rgba(211, 211, 211, 0.15);
  --s8ac-shadow: 0 4px 18px rgba(0, 0, 0, 0.45);
  --s8ac-radius: 12px;
}

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

html {
  font-size: 62.5%;
}

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

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

a {
  color: var(--s8ac-primary);
  text-decoration: none;
}

/* ============ Header ============ */
.s8ac-header {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  height: 56px;
  background: linear-gradient(135deg, var(--s8ac-bg-dark), var(--s8ac-bg-deep));
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  z-index: 1000;
  border-bottom: 1px solid var(--s8ac-border);
  transition: box-shadow 0.3s ease;
}

.s8ac-header-scrolled {
  box-shadow: var(--s8ac-shadow);
}

.s8ac-logo {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #fff;
  font-weight: 700;
  font-size: 1.4rem;
}

.s8ac-logo img {
  width: 28px;
  height: 28px;
  border-radius: 6px;
}

.s8ac-logo .s8ac-logo-text {
  background: linear-gradient(90deg, var(--s8ac-primary), #fff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.s8ac-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.s8ac-menu-btn {
  width: 36px;
  height: 36px;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  transition: background 0.2s;
}

.s8ac-menu-btn:hover {
  background: rgba(153, 50, 204, 0.25);
}

.s8ac-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 7px 14px;
  border-radius: 20px;
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: transform 0.15s, box-shadow 0.2s;
  white-space: nowrap;
}

.s8ac-btn:active {
  transform: scale(0.96);
}

.s8ac-btn-login {
  background: transparent;
  color: var(--s8ac-text-light);
  border: 1px solid var(--s8ac-primary);
}

.s8ac-btn-register {
  background: linear-gradient(135deg, var(--s8ac-primary), #7a1ea0);
  color: #fff;
  box-shadow: 0 2px 8px rgba(153, 50, 204, 0.5);
}

/* ============ Mobile Menu ============ */
.s8ac-menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
  z-index: 9998;
}

.s8ac-overlay-active {
  opacity: 1;
  pointer-events: auto;
}

.s8ac-mobile-menu {
  position: fixed;
  top: 0;
  right: -280px;
  width: 260px;
  max-width: 80%;
  height: 100vh;
  background: var(--s8ac-bg-dark);
  padding: 70px 0 20px;
  transition: right 0.3s ease;
  z-index: 9999;
  overflow-y: auto;
  border-left: 1px solid var(--s8ac-border);
}

.s8ac-menu-open {
  right: 0;
}

.s8ac-mobile-menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  color: var(--s8ac-text);
  font-size: 1.3rem;
  border-bottom: 1px solid var(--s8ac-border);
  transition: background 0.2s, color 0.2s;
}

.s8ac-mobile-menu a:hover {
  background: rgba(153, 50, 204, 0.18);
  color: #fff;
}

.s8ac-mobile-menu a i,
.s8ac-mobile-menu a span.material-icons-outlined {
  font-size: 1.8rem;
  color: var(--s8ac-primary);
}

.s8ac-menu-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 1.8rem;
  cursor: pointer;
}

/* ============ Main / Layout ============ */
main {
  padding-top: 56px;
  padding-bottom: 20px;
}

@media (max-width: 768px) {
  main {
    padding-bottom: 88px;
  }
}

.s8ac-container {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  padding: 0 12px;
}

.s8ac-section {
  padding: 22px 0;
}

.s8ac-section-title {
  font-size: 1.7rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.s8ac-section-title i,
.s8ac-section-title span.material-icons-outlined {
  color: var(--s8ac-primary);
}

.s8ac-section-desc {
  font-size: 1.25rem;
  color: var(--s8ac-text-light);
  margin-bottom: 14px;
  line-height: 1.6rem;
}

/* ============ Hero / Carousel ============ */
.s8ac-carousel {
  position: relative;
  width: 100%;
  height: 180px;
  border-radius: var(--s8ac-radius);
  overflow: hidden;
  margin-top: 12px;
  box-shadow: var(--s8ac-shadow);
}

.s8ac-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.6s ease;
  cursor: pointer;
}

.s8ac-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.s8ac-slide-active {
  opacity: 1;
}

.s8ac-slide-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 10px 14px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.85));
  color: #fff;
  font-size: 1.25rem;
  font-weight: 600;
}

.s8ac-carousel-dots {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 2;
}

.s8ac-carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  border: none;
  cursor: pointer;
}

.s8ac-dot-active {
  background: var(--s8ac-primary);
  width: 20px;
  border-radius: 4px;
}

/* ============ Filter Bar ============ */
.s8ac-filter-bar {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 6px 0 12px;
  margin: 0 -12px;
  padding-left: 12px;
  padding-right: 12px;
  scrollbar-width: none;
}

.s8ac-filter-bar::-webkit-scrollbar {
  display: none;
}

.s8ac-filter-btn {
  padding: 6px 12px;
  border-radius: 16px;
  background: var(--s8ac-bg-deep);
  color: var(--s8ac-text-light);
  font-size: 1.15rem;
  border: 1px solid var(--s8ac-border);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
}

.s8ac-filter-active {
  background: var(--s8ac-primary);
  color: #fff;
  border-color: var(--s8ac-primary);
}

/* ============ Game Grid ============ */
.s8ac-game-group {
  margin-bottom: 24px;
}

.s8ac-game-group-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  margin: 10px 0;
  display: flex;
  align-items: center;
  gap: 8px;
  border-left: 4px solid var(--s8ac-primary);
  padding-left: 10px;
}

.s8ac-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

@media (max-width: 360px) {
  .s8ac-game-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.s8ac-game-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 6px;
  background: var(--s8ac-bg-dark);
  border-radius: 10px;
  border: 1px solid var(--s8ac-border);
  cursor: pointer;
  transition: transform 0.18s, box-shadow 0.2s, border-color 0.2s;
}

.s8ac-game-card:hover,
.s8ac-game-card:active {
  transform: translateY(-3px);
  border-color: var(--s8ac-primary);
  box-shadow: 0 4px 14px rgba(153, 50, 204, 0.35);
}

.s8ac-game-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 8px;
}

.s8ac-game-name {
  font-size: 1.05rem;
  color: var(--s8ac-text-light);
  text-align: center;
  line-height: 1.2rem;
  height: 2.4rem;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

/* ============ Info Cards ============ */
.s8ac-card {
  background: var(--s8ac-bg-dark);
  border-radius: var(--s8ac-radius);
  padding: 14px;
  margin-bottom: 12px;
  border: 1px solid var(--s8ac-border);
  box-shadow: var(--s8ac-shadow);
}

.s8ac-card h3 {
  font-size: 1.4rem;
  color: #fff;
  margin-bottom: 8px;
}

.s8ac-card p {
  font-size: 1.2rem;
  color: var(--s8ac-text-light);
  line-height: 1.6rem;
  margin-bottom: 6px;
}

.s8ac-card ul {
  list-style: none;
  padding: 0;
}

.s8ac-card ul li {
  font-size: 1.2rem;
  color: var(--s8ac-text-light);
  padding: 5px 0 5px 18px;
  position: relative;
  line-height: 1.5rem;
}

.s8ac-card ul li::before {
  content: '▶';
  position: absolute;
  left: 0;
  color: var(--s8ac-primary);
  font-size: 1rem;
}

/* ============ CTA Button (inline) ============ */
.s8ac-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0;
}

.s8ac-cta-primary {
  display: inline-block;
  padding: 10px 22px;
  background: linear-gradient(135deg, var(--s8ac-primary), #7a1ea0);
  color: #fff;
  font-size: 1.3rem;
  font-weight: 700;
  border-radius: 24px;
  cursor: pointer;
  border: none;
  box-shadow: 0 4px 14px rgba(153, 50, 204, 0.5);
  transition: transform 0.15s;
}

.s8ac-cta-primary:active {
  transform: scale(0.97);
}

.s8ac-cta-text {
  color: var(--s8ac-primary);
  font-weight: 700;
  font-size: 1.25rem;
  cursor: pointer;
  text-decoration: underline;
}

/* ============ RTP Table ============ */
.s8ac-rtp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1.15rem;
}

.s8ac-rtp-table th,
.s8ac-rtp-table td {
  padding: 8px 6px;
  text-align: left;
  border-bottom: 1px solid var(--s8ac-border);
}

.s8ac-rtp-table th {
  color: #fff;
  background: var(--s8ac-bg-deep);
  font-size: 1.1rem;
}

.s8ac-rtp-table td {
  color: var(--s8ac-text-light);
}

.s8ac-rtp-high {
  color: #2ecc71;
  font-weight: 700;
}

/* ============ Features List ============ */
.s8ac-feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.s8ac-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px;
  background: var(--s8ac-bg-dark);
  border-radius: 10px;
  border: 1px solid var(--s8ac-border);
}

.s8ac-feature-icon {
  width: 36px;
  height: 36px;
  min-width: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: rgba(153, 50, 204, 0.18);
  color: var(--s8ac-primary);
  font-size: 1.8rem;
}

.s8ac-feature-text h4 {
  font-size: 1.3rem;
  color: #fff;
  margin-bottom: 4px;
}

.s8ac-feature-text p {
  font-size: 1.15rem;
  color: var(--s8ac-text-light);
  line-height: 1.5rem;
}

/* ============ Testimonials ============ */
.s8ac-testimonial {
  padding: 12px;
  background: var(--s8ac-bg-dark);
  border-radius: 10px;
  border-left: 3px solid var(--s8ac-primary);
  margin-bottom: 10px;
}

.s8ac-testimonial p {
  font-size: 1.2rem;
  color: var(--s8ac-text-light);
  font-style: italic;
  margin-bottom: 6px;
  line-height: 1.5rem;
}

.s8ac-testimonial-author {
  font-size: 1.1rem;
  color: var(--s8ac-primary);
  font-weight: 600;
}

/* ============ Winners ============ */
.s8ac-winner-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  background: var(--s8ac-bg-dark);
  border-radius: 10px;
  margin-bottom: 8px;
  border: 1px solid var(--s8ac-border);
}

.s8ac-winner-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--s8ac-primary), #7a1ea0);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 1.2rem;
}

.s8ac-winner-info {
  flex: 1;
}

.s8ac-winner-name {
  font-size: 1.2rem;
  color: #fff;
  font-weight: 600;
}

.s8ac-winner-amount {
  font-size: 1.15rem;
  color: var(--s8ac-gold);
  font-weight: 700;
}

.s8ac-winner-game {
  font-size: 1rem;
  color: var(--s8ac-text-light);
}

/* ============ Payment Methods ============ */
.s8ac-payment-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.s8ac-payment-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 10px 6px;
  background: var(--s8ac-bg-dark);
  border-radius: 10px;
  border: 1px solid var(--s8ac-border);
  text-align: center;
}

.s8ac-payment-icon {
  font-size: 2rem;
  color: var(--s8ac-primary);
}

.s8ac-payment-name {
  font-size: 1.05rem;
  color: var(--s8ac-text-light);
}

/* ============ App Download CTA ============ */
.s8ac-app-cta {
  background: linear-gradient(135deg, var(--s8ac-bg-deep), var(--s8ac-primary));
  border-radius: var(--s8ac-radius);
  padding: 16px;
  text-align: center;
  margin: 14px 0;
}

.s8ac-app-cta h3 {
  font-size: 1.5rem;
  color: #fff;
  margin-bottom: 6px;
}

.s8ac-app-cta p {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 12px;
}

.s8ac-app-buttons {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

/* ============ FAQ ============ */
.s8ac-faq-item {
  background: var(--s8ac-bg-dark);
  border-radius: 10px;
  border: 1px solid var(--s8ac-border);
  margin-bottom: 8px;
  overflow: hidden;
}

.s8ac-faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 14px;
  cursor: pointer;
  font-size: 1.25rem;
  font-weight: 600;
  color: #fff;
}

.s8ac-faq-question i {
  color: var(--s8ac-primary);
  transition: transform 0.25s;
}

.s8ac-faq-open .s8ac-faq-question i {
  transform: rotate(45deg);
}

.s8ac-faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0 14px;
  font-size: 1.2rem;
  color: var(--s8ac-text-light);
  line-height: 1.5rem;
}

.s8ac-faq-open .s8ac-faq-answer {
  max-height: 300px;
  padding: 0 14px 12px;
}

/* ============ Footer ============ */
.s8ac-footer {
  background: var(--s8ac-bg-dark);
  padding: 20px 12px 80px;
  border-top: 1px solid var(--s8ac-border);
  text-align: center;
}

.s8ac-footer-brand {
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}

.s8ac-footer-desc {
  font-size: 1.15rem;
  color: var(--s8ac-text-light);
  line-height: 1.5rem;
  margin-bottom: 14px;
}

.s8ac-footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 12px;
  margin-bottom: 14px;
}

.s8ac-footer-links a {
  color: var(--s8ac-primary);
  font-size: 1.15rem;
  text-decoration: underline;
}

.s8ac-footer-promo {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin-bottom: 14px;
}

.s8ac-footer-promo .s8ac-btn {
  padding: 6px 12px;
  font-size: 1.1rem;
}

.s8ac-footer-copy {
  font-size: 1.05rem;
  color: var(--s8ac-text-light);
  opacity: 0.7;
}

/* ============ Bottom Navigation ============ */
.s8ac-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  height: 60px;
  background: linear-gradient(180deg, var(--s8ac-bg-deep), var(--s8ac-bg-dark));
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
  border-top: 1px solid var(--s8ac-border);
  box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.4);
}

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

.s8ac-bottom-nav-btn {
  flex: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  background: transparent;
  border: none;
  color: var(--s8ac-text-light);
  cursor: pointer;
  min-width: 60px;
  min-height: 60px;
  transition: color 0.2s, transform 0.15s;
  position: relative;
}

.s8ac-bottom-nav-btn:active {
  transform: scale(0.92);
}

.s8ac-bottom-nav-btn i,
.s8ac-bottom-nav-btn span.material-icons-outlined,
.s8ac-bottom-nav-btn ion-icon {
  font-size: 22px;
}

.s8ac-bottom-nav-btn .s8ac-nav-label {
  font-size: 1rem;
  line-height: 1rem;
}

.s8ac-bottom-nav-btn.s8ac-nav-active {
  color: var(--s8ac-primary);
}

.s8ac-bottom-nav-btn.s8ac-nav-active::before {
  content: '';
  position: absolute;
  top: 0;
  left: 30%;
  right: 30%;
  height: 3px;
  background: var(--s8ac-primary);
  border-radius: 0 0 3px 3px;
}

.s8ac-nav-badge {
  position: absolute;
  top: 6px;
  right: 22%;
  min-width: 14px;
  height: 14px;
  padding: 0 3px;
  border-radius: 7px;
  background: #e74c3c;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ============ Desktop tweaks ============ */
@media (min-width: 431px) {
  .s8ac-carousel {
    height: 220px;
  }
}
