/* ============================================================
   GA 67 - style-af69.css
   All custom classes use the "saf6-" prefix.
   Palette: #141414 (bg) | #8470FF (primary) | #40E0D0 (accent)
   Mobile-first, max-width 430px container.
   ============================================================ */

:root {
  --saf6-bg: #141414;
  --saf6-bg-2: #1c1c20;
  --saf6-bg-3: #23232a;
  --saf6-primary: #8470FF;
  --saf6-accent: #40E0D0;
  --saf6-text: #f5f5f7;
  --saf6-text-muted: #b9b9c4;
  --saf6-border: #2c2c33;
  --saf6-gold: #ffd479;
  --saf6-danger: #ff6b6b;
}

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

html { font-size: 62.5%; }

body {
  background: var(--saf6-bg);
  color: var(--saf6-text);
  font-family: "Segoe UI", "Roboto", "Helvetica Neue", Arial, sans-serif;
  line-height: 1.5rem;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a { color: var(--saf6-accent); text-decoration: none; }

.saf6-container {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  min-height: 100vh;
  background: var(--saf6-bg);
  position: relative;
}

/* ---------- Header ---------- */
.saf6-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: linear-gradient(135deg, rgba(20,20,20,0.95), rgba(132,112,255,0.15));
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--saf6-border);
}
.saf6-header-inner {
  max-width: 430px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  height: 56px;
}
.saf6-logo {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: 1.6rem;
  color: var(--saf6-text);
  letter-spacing: 0.5px;
}
.saf6-logo img { width: 28px; height: 28px; border-radius: 6px; }
.saf6-logo span { background: linear-gradient(90deg, var(--saf6-primary), var(--saf6-accent)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.saf6-spacer { flex: 1; }
.saf6-btn {
  border: none;
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 1.3rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: transform 0.15s, opacity 0.15s;
}
.saf6-btn:active { transform: scale(0.94); opacity: 0.9; }
.saf6-btn-register {
  background: linear-gradient(90deg, var(--saf6-primary), #6a55e0);
  color: #fff;
}
.saf6-btn-login {
  background: transparent;
  color: var(--saf6-accent);
  border: 1px solid var(--saf6-accent);
}
.saf6-menu-btn {
  background: transparent;
  color: var(--saf6-text);
  border: none;
  font-size: 1.8rem;
  cursor: pointer;
  padding: 6px 8px;
  display: inline-flex;
  align-items: center;
}

/* Mobile expandable menu */
.saf6-mobile-menu {
  position: fixed;
  top: 56px; left: 0; right: 0;
  z-index: 9999;
  background: var(--saf6-bg-2);
  border-bottom: 1px solid var(--saf6-border);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.saf6-mobile-menu.saf6-menu-open { max-height: 420px; }
.saf6-mobile-menu ul { list-style: none; padding: 6px 0; }
.saf6-mobile-menu li a {
  display: block;
  padding: 12px 18px;
  color: var(--saf6-text);
  font-size: 1.4rem;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.saf6-mobile-menu li a:active { background: rgba(132,112,255,0.12); }

/* Hero / Carousel */
.saf6-hero {
  margin-top: 56px;
  position: relative;
  width: 100%;
  max-width: 430px;
  margin-left: auto;
  margin-right: auto;
  overflow: hidden;
  aspect-ratio: 16/9;
}
.saf6-carousel { position: relative; width: 100%; height: 100%; }
.saf6-slide {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  opacity: 0;
  transition: opacity 0.6s ease;
  cursor: pointer;
}
.saf6-slide img { width: 100%; height: 100%; object-fit: cover; }
.saf6-slide.saf6-slide-active { opacity: 1; }
.saf6-carousel-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(0deg, rgba(20,20,20,0.95), transparent);
  padding: 14px 16px 18px;
}
.saf6-carousel-title {
  color: var(--saf6-text);
  font-size: 1.6rem;
  font-weight: 700;
  text-shadow: 0 2px 6px rgba(0,0,0,0.6);
}
.saf6-carousel-sub {
  color: var(--saf6-accent);
  font-size: 1.2rem;
  margin-top: 2px;
}
.saf6-dots {
  position: absolute;
  bottom: 8px; left: 0; right: 0;
  display: flex; justify-content: center; gap: 6px;
}
.saf6-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: rgba(255,255,255,0.4);
  cursor: pointer; border: none; padding: 0;
}
.saf6-dot.saf6-dot-active { background: var(--saf6-accent); }

/* Section layout */
main.saf6-main {
  max-width: 430px;
  margin: 0 auto;
  padding: 14px 14px 80px;
}
.saf6-section { margin-top: 22px; }
.saf6-section-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--saf6-text);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}
.saf6-section-title i.material-icons,
.saf6-section-title i.fas,
.saf6-section-title i.bi {
  color: var(--saf6-accent);
  font-size: 1.8rem;
}
.saf6-section-title::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--saf6-border);
  margin-left: 6px;
}
.saf6-desc { color: var(--saf6-text-muted); font-size: 1.3rem; margin-bottom: 10px; }
.saf6-h1 {
  font-size: 2rem;
  font-weight: 800;
  line-height: 2.4rem;
  margin: 8px 0;
  background: linear-gradient(90deg, var(--saf6-primary), var(--saf6-accent));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Game grid */
.saf6-game-group { margin-bottom: 18px; }
.saf6-game-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.saf6-game-card {
  display: block;
  background: var(--saf6-bg-2);
  border: 1px solid var(--saf6-border);
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.15s, border-color 0.15s;
}
.saf6-game-card:active { transform: scale(0.97); border-color: var(--saf6-primary); }
.saf6-game-card img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  background: var(--saf6-bg-3);
}
.saf6-game-name {
  font-size: 1.1rem;
  color: var(--saf6-text);
  padding: 5px 6px;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.saf6-game-type {
  display: inline-block;
  font-size: 1rem;
  color: var(--saf6-primary);
  background: rgba(132,112,255,0.15);
  padding: 2px 8px;
  border-radius: 6px;
  margin-bottom: 6px;
}

/* Feature/promo cards */
.saf6-card {
  background: var(--saf6-bg-2);
  border: 1px solid var(--saf6-border);
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 10px;
}
.saf6-card h3 {
  font-size: 1.5rem;
  color: var(--saf6-primary);
  margin-bottom: 6px;
}
.saf6-card p { color: var(--saf6-text-muted); font-size: 1.25rem; }

.saf6-feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}
.saf6-feature-box {
  background: var(--saf6-bg-2);
  border-radius: 10px;
  padding: 12px;
  text-align: center;
  border: 1px solid var(--saf6-border);
}
.saf6-feature-box i { font-size: 2.2rem; color: var(--saf6-accent); }
.saf6-feature-box h4 { font-size: 1.3rem; margin: 6px 0 2px; color: var(--saf6-text); }
.saf6-feature-box p { font-size: 1.1rem; color: var(--saf6-text-muted); }

/* CTA promo buttons */
.saf6-cta {
  display: inline-block;
  background: linear-gradient(90deg, var(--saf6-primary), var(--saf6-accent));
  color: #0c0c12;
  font-weight: 700;
  border-radius: 999px;
  padding: 10px 18px;
  font-size: 1.35rem;
  cursor: pointer;
  border: none;
  text-align: center;
}
.saf6-cta-block { text-align: center; padding: 16px; }

/* RTP table */
.saf6-rtp-table { width: 100%; border-collapse: collapse; font-size: 1.2rem; }
.saf6-rtp-table th, .saf6-rtp-table td {
  padding: 8px 6px;
  border-bottom: 1px solid var(--saf6-border);
  text-align: left;
}
.saf6-rtp-table th { color: var(--saf6-accent); }
.saf6-rtp-table td.saf6-rtp-val { color: var(--saf6-gold); font-weight: 700; text-align: right; }

/* Testimonials */
.saf6-testimonial {
  background: var(--saf6-bg-2);
  border-left: 3px solid var(--saf6-accent);
  border-radius: 8px;
  padding: 10px 12px;
  margin-bottom: 8px;
  font-size: 1.25rem;
  color: var(--saf6-text-muted);
}
.saf6-testimonial strong { color: var(--saf6-text); display: block; margin-bottom: 2px; }

/* Winner showcase */
.saf6-winner {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--saf6-bg-2);
  padding: 8px;
  border-radius: 8px;
  margin-bottom: 6px;
}
.saf6-winner img { width: 36px; height: 36px; border-radius: 50%; }
.saf6-winner-name { font-size: 1.2rem; color: var(--saf6-text); font-weight: 600; }
.saf6-winner-amount { font-size: 1.2rem; color: var(--saf6-gold); font-weight: 700; margin-left: auto; }

/* Payment methods */
.saf6-pay-grid { display: flex; flex-wrap: wrap; gap: 6px; }
.saf6-pay-item {
  background: var(--saf6-bg-2);
  border: 1px solid var(--saf6-border);
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 1.1rem;
  color: var(--saf6-text);
}

/* Reveal animation */
.saf6-reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.5s, transform 0.5s; }
.saf6-reveal.saf6-revealed { opacity: 1; transform: translateY(0); }

/* Footer */
.saf6-footer {
  max-width: 430px;
  margin: 0 auto;
  background: var(--saf6-bg-2);
  border-top: 1px solid var(--saf6-border);
  padding: 18px 14px 30px;
}
.saf6-footer-brand {
  color: var(--saf6-text-muted);
  font-size: 1.2rem;
  margin-bottom: 10px;
}
.saf6-footer-links {
  display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px;
}
.saf6-footer-btn {
  background: var(--saf6-bg-3);
  color: var(--saf6-accent);
  border: 1px solid var(--saf6-border);
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 1.15rem;
}
.saf6-footer-copy {
  color: var(--saf6-text-muted);
  font-size: 1.1rem;
  text-align: center;
  border-top: 1px solid var(--saf6-border);
  padding-top: 10px;
}

/* Mobile bottom nav */
.saf6-bottom-nav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 1000;
  height: 62px;
  background: var(--saf6-bg-2);
  border-top: 1px solid var(--saf6-border);
  display: flex;
  justify-content: space-around;
  align-items: center;
}
.saf6-bottom-nav .saf6-nav-item {
  background: transparent;
  border: none;
  color: var(--saf6-text-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  min-height: 60px;
  font-size: 1.1rem;
  gap: 2px;
  cursor: pointer;
  transition: color 0.15s, transform 0.15s;
}
.saf6-bottom-nav .saf6-nav-item i { font-size: 24px; }
.saf6-bottom-nav .saf6-nav-item:active { transform: scale(0.92); color: var(--saf6-accent); }
.saf6-bottom-nav .saf6-nav-item.saf6-nav-active { color: var(--saf6-accent); }
.saf6-nav-badge {
  position: absolute;
  top: 6px; right: 18px;
  background: var(--saf6-danger);
  color: #fff;
  border-radius: 999px;
  font-size: 0.9rem;
  min-width: 14px;
  height: 14px;
  padding: 0 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Desktop: hide bottom nav, widen container */
@media (min-width: 769px) {
  .saf6-bottom-nav { display: none; }
  .saf6-container, .saf6-header-inner, main.saf6-main, .saf6-hero, .saf6-footer { max-width: 768px; }
}

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

.saf6-sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); border: 0;
}