/* ===========================================================
   Super Ace App - Core Layout Stylesheet (css/layout.css)
   All custom classes use the "g1b6-" prefix.
   =========================================================== */

:root {
  --g1b6-bg: #1E1E1E;
  --g1b6-bg-2: #495057;
  --g1b6-text: #FAFAD2;
  --g1b6-muted: #d9d4b6;
  --g1b6-accent: #FFA500;
  --g1b6-accent-2: #DEB887;
  --g1b6-blue: #B0E0E6;
  --g1b6-card: #262626;
  --g1b6-card-2: #2f2f2f;
  --g1b6-border: #3a3a3a;
  --g1b6-radius: 14px;
  --g1b6-shadow: 0 6px 22px rgba(0, 0, 0, 0.45);
  --g1b6-gradient: linear-gradient(135deg, #FFA500 0%, #DEB887 60%, #B0E0E6 100%);
  --g1b6-header-h: 60px;
  --g1b6-bottomnav-h: 62px;
}

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

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

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

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

a { color: var(--g1b6-accent); text-decoration: none; }
a:hover { color: var(--g1b6-blue); }

h1, h2, h3, h4 { line-height: 1.3; font-weight: 700; color: var(--g1b6-text); }

/* ---------- Container ---------- */
.g1b6-container { width: 100%; padding: 0 14px; }
.g1b6-wrapper { max-width: 430px; margin: 0 auto; padding: 0 14px; }
.g1b6-section { padding: 22px 0; }
.g1b6-section--alt { background: #232323; }

/* ---------- Header ---------- */
.g1b6-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: linear-gradient(180deg, #1a1a1a 0%, #1E1E1E 100%);
  border-bottom: 2px solid var(--g1b6-accent);
  box-shadow: 0 2px 10px rgba(0,0,0,0.5);
}
.g1b6-header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: var(--g1b6-header-h); padding: 0 12px;
}
.g1b6-logo { display: flex; align-items: center; gap: 8px; color: var(--g1b6-text); }
.g1b6-logo img { width: 28px; height: 28px; border-radius: 6px; }
.g1b6-logo-text { font-size: 1.45rem; font-weight: 800; letter-spacing: .3px; }
.g1b6-logo-text span { color: var(--g1b6-accent); }

.g1b6-header-actions { display: flex; align-items: center; gap: 8px; }
.g1b6-btn {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 1.3rem; font-weight: 700;
  padding: 8px 14px; border-radius: 999px;
  border: none; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease;
  font-family: inherit;
}
.g1b6-btn:active { transform: scale(0.96); }
.g1b6-btn--login {
  background: transparent; color: var(--g1b6-text);
  border: 1.5px solid var(--g1b6-accent-2);
}
.g1b6-btn--register {
  background: var(--g1b6-gradient); color: #1a1a1a;
  box-shadow: 0 3px 10px rgba(255,165,0,0.45);
}
.g1b6-btn--block {
  display: flex; width: 100%; justify-content: center; padding: 12px;
  font-size: 1.5rem;
}
.g1b6-btn--ghost { background: rgba(255,255,255,0.06); color: var(--g1b6-text); }

.g1b6-menu-toggle {
  background: transparent; border: none; color: var(--g1b6-text);
  font-size: 2rem; cursor: pointer; padding: 4px 8px;
}

/* ---------- Mobile Menu ---------- */
.g1b6-mobile-menu {
  position: fixed; top: 0; right: -100%;
  width: 80%; max-width: 320px; height: 100vh;
  background: #1a1a1a; z-index: 9999;
  box-shadow: -4px 0 24px rgba(0,0,0,0.6);
  transition: right .25s ease; padding: 20px 16px; overflow-y: auto;
}
.g1b6-mobile-menu.g1b6-open { right: 0; }
.g1b6-menu-backdrop {
  position: fixed; inset: 0; background: rgba(0,0,0,0.55);
  z-index: 9998; opacity: 0; pointer-events: none; transition: opacity .25s ease;
}
.g1b6-menu-backdrop.g1b6-open { opacity: 1; pointer-events: auto; }
.g1b6-menu-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.g1b6-menu-close { background: transparent; border: none; color: var(--g1b6-text); font-size: 2.2rem; cursor: pointer; }
.g1b6-menu-list { list-style: none; }
.g1b6-menu-list li { border-bottom: 1px solid var(--g1b6-border); }
.g1b6-menu-list a {
  display: block; padding: 14px 8px; color: var(--g1b6-text);
  font-size: 1.45rem; font-weight: 600;
}
.g1b6-menu-list a:hover { color: var(--g1b6-accent); padding-left: 14px; }

/* ---------- Hero / Carousel ---------- */
.g1b6-hero { padding: 14px 0 4px; }
.g1b6-carousel {
  position: relative; border-radius: var(--g1b6-radius); overflow: hidden;
  box-shadow: var(--g1b6-shadow);
}
.g1b6-carousel-track { display: flex; transition: transform .4s ease; }
.g1b6-slide {
  min-width: 100%; position: relative; cursor: pointer;
}
.g1b6-slide img { width: 100%; height: 200px; object-fit: cover; }
.g1b6-slide-overlay {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 18px 14px 14px;
  background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.78) 100%);
  color: var(--g1b6-text);
}
.g1b6-slide-overlay h2 { color: var(--g1b6-text); font-size: 1.8rem; margin-bottom: 4px; }
.g1b6-slide-overlay p { font-size: 1.25rem; color: var(--g1b6-muted); }
.g1b6-carousel-dots {
  position: absolute; bottom: 8px; left: 0; right: 0;
  display: flex; justify-content: center; gap: 6px; z-index: 2;
}
.g1b6-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(250,250,210,0.4); cursor: pointer; }
.g1b6-dot.g1b6-active { background: var(--g1b6-accent); width: 22px; border-radius: 4px; }

/* ---------- Section heading ---------- */
.g1b6-section-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 12px; padding: 0 2px;
}
.g1b6-section-head h2 {
  font-size: 1.75rem; color: var(--g1b6-text); position: relative; padding-left: 12px;
}
.g1b6-section-head h2::before {
  content: ""; position: absolute; left: 0; top: 4px; bottom: 4px;
  width: 4px; border-radius: 2px; background: var(--g1b6-gradient);
}
.g1b6-section-head .g1b6-link-more { font-size: 1.25rem; color: var(--g1b6-accent); font-weight: 600; }

/* ---------- Game Grid ---------- */
.g1b6-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;
}
.g1b6-grid--4 { grid-template-columns: repeat(4, 1fr); }
.g1b6-card {
  background: var(--g1b6-card); border: 1px solid var(--g1b6-border);
  border-radius: 12px; overflow: hidden; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
  display: flex; flex-direction: column;
}
.g1b6-card:hover, .g1b6-card:active {
  transform: translateY(-3px); border-color: var(--g1b6-accent);
  box-shadow: 0 8px 18px rgba(255,165,0,0.18);
}
.g1b6-card-img { aspect-ratio: 1 / 1; background: #000; position: relative; }
.g1b6-card-img img { width: 100%; height: 100%; object-fit: cover; }
.g1b6-card-hot {
  position: absolute; top: 4px; left: 4px; background: var(--g1b6-accent);
  color: #1a1a1a; font-size: 1rem; font-weight: 800; padding: 2px 6px;
  border-radius: 6px; text-transform: uppercase;
}
.g1b6-card-name {
  font-size: 1.18rem; color: var(--g1b6-text); padding: 6px 8px;
  text-align: center; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* ---------- Featured / Spotlight ---------- */
.g1b6-featured {
  display: grid; grid-template-columns: 1fr; gap: 12px;
}
.g1b6-spotlight {
  background: linear-gradient(135deg, #2a2a2a, #1E1E1E);
  border: 1px solid var(--g1b6-accent-2); border-radius: var(--g1b6-radius);
  padding: 16px; display: flex; gap: 14px; align-items: center;
}
.g1b6-spotlight img { width: 96px; height: 96px; border-radius: 10px; object-fit: cover; flex-shrink: 0; }
.g1b6-spotlight-body { flex: 1; min-width: 0; }
.g1b6-spotlight h3 { color: var(--g1b6-accent); font-size: 1.55rem; margin-bottom: 4px; }
.g1b6-spotlight p { font-size: 1.2rem; color: var(--g1b6-muted); margin-bottom: 8px; }

/* ---------- Promo CTA banner ---------- */
.g1b6-cta {
  background: var(--g1b6-gradient);
  border-radius: var(--g1b6-radius);
  padding: 18px 16px; color: #1a1a1a; text-align: center;
  box-shadow: var(--g1b6-shadow); margin: 16px 0;
}
.g1b6-cta h3 { color: #1a1a1a; font-size: 1.7rem; margin-bottom: 6px; }
.g1b6-cta p { color: #2a2a2a; font-size: 1.25rem; margin-bottom: 10px; }
.g1b6-cta .g1b6-btn { background: #1E1E1E; color: var(--g1b6-accent); }

/* ---------- Features list ---------- */
.g1b6-feature-list { display: grid; grid-template-columns: 1fr; gap: 10px; }
.g1b6-feature {
  display: flex; gap: 12px; align-items: flex-start;
  background: var(--g1b6-card); border: 1px solid var(--g1b6-border);
  border-radius: 12px; padding: 12px 14px;
}
.g1b6-feature-ic { width: 40px; height: 40px; border-radius: 10px; background: rgba(255,165,0,0.15);
  display: flex; align-items: center; justify-content: center; color: var(--g1b6-accent); font-size: 2rem; flex-shrink: 0; }
.g1b6-feature-body h4 { color: var(--g1b6-text); font-size: 1.4rem; margin-bottom: 4px; }
.g1b6-feature-body p { color: var(--g1b6-muted); font-size: 1.2rem; }

/* ---------- FAQ ---------- */
.g1b6-faq-item {
  border: 1px solid var(--g1b6-border); border-radius: 10px;
  background: var(--g1b6-card); margin-bottom: 8px; overflow: hidden;
}
.g1b6-faq-q {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 14px; cursor: pointer; font-weight: 700; color: var(--g1b6-text); font-size: 1.35rem;
}
.g1b6-faq-q .g1b6-faq-ic { color: var(--g1b6-accent); transition: transform .2s ease; }
.g1b6-faq-a { max-height: 0; overflow: hidden; transition: max-height .25s ease; padding: 0 14px; color: var(--g1b6-muted); font-size: 1.22rem; }
.g1b6-faq-item.g1b6-open .g1b6-faq-a { max-height: 320px; padding: 0 14px 12px; }
.g1b6-faq-item.g1b6-open .g1b6-faq-ic { transform: rotate(45deg); }

/* ---------- Testimonials ---------- */
.g1b6-testi-grid { display: grid; grid-template-columns: 1fr; gap: 10px; }
.g1b6-testi {
  background: var(--g1b6-card); border: 1px solid var(--g1b6-border);
  border-radius: 12px; padding: 14px;
}
.g1b6-testi-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.g1b6-testi-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--g1b6-gradient); color: #1a1a1a; font-weight: 800;
  display: flex; align-items: center; justify-content: center; font-size: 1.4rem;
}
.g1b6-testi-name { font-weight: 700; color: var(--g1b6-text); font-size: 1.3rem; }
.g1b6-testi-stars { color: var(--g1b6-accent); font-size: 1.1rem; }
.g1b6-testi-text { color: var(--g1b6-muted); font-size: 1.2rem; }

/* ---------- Winners ---------- */
.g1b6-winner-list {
  background: var(--g1b6-card); border: 1px solid var(--g1b6-border);
  border-radius: 12px; overflow: hidden;
}
.g1b6-winner-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 14px; border-bottom: 1px solid var(--g1b6-border); font-size: 1.25rem;
}
.g1b6-winner-row:last-child { border-bottom: none; }
.g1b6-winner-name { color: var(--g1b6-text); font-weight: 600; }
.g1b6-winner-amt { color: var(--g1b6-accent); font-weight: 800; }
.g1b6-winner-game { color: var(--g1b6-muted); font-size: 1.15rem; }

/* ---------- Payment ---------- */
.g1b6-pay-grid { display: flex; flex-wrap: wrap; gap: 10px; }
.g1b6-pay {
  flex: 1 1 30%; background: var(--g1b6-card); border: 1px solid var(--g1b6-border);
  border-radius: 10px; padding: 10px; text-align: center;
  min-width: 90px; color: var(--g1b6-muted); font-size: 1.15rem;
}
.g1b6-pay-ic { font-size: 2.2rem; color: var(--g1b6-accent); margin-bottom: 4px; }

/* ---------- RTP ---------- */
.g1b6-rtp-grid { display: grid; grid-template-columns: 1fr; gap: 8px; }
.g1b6-rtp-row {
  display: flex; align-items: center; gap: 10px;
  background: var(--g1b6-card); border: 1px solid var(--g1b6-border);
  border-radius: 10px; padding: 10px 12px;
}
.g1b6-rtp-row .g1b6-rtp-name { flex: 1; font-size: 1.25rem; color: var(--g1b6-text); }
.g1b6-rtp-bar { flex: 2; height: 8px; background: #111; border-radius: 4px; overflow: hidden; }
.g1b6-rtp-bar > span { display: block; height: 100%; background: var(--g1b6-gradient); }
.g1b6-rtp-val { font-weight: 800; color: var(--g1b6-accent); font-size: 1.25rem; min-width: 52px; text-align: right; }

/* ---------- SEO text ---------- */
.g1b6-seo-text { color: var(--g1b6-muted); font-size: 1.3rem; line-height: 1.7; }
.g1b6-seo-text h2, .g1b6-seo-text h3 { color: var(--g1b6-text); margin: 14px 0 6px; }
.g1b6-seo-text p { margin-bottom: 10px; }
.g1b6-seo-text a { color: var(--g1b6-accent-2); text-decoration: underline; }
.g1b6-seo-text ul { margin: 6px 0 10px 20px; }
.g1b6-seo-text li { margin-bottom: 4px; }

/* ---------- Footer ---------- */
.g1b6-footer {
  background: #161616; border-top: 2px solid var(--g1b6-accent);
  padding: 24px 14px 20px; margin-top: 20px;
}
.g1b6-footer-brand { color: var(--g1b6-text); font-size: 1.35rem; margin-bottom: 10px; font-weight: 700; }
.g1b6-footer-desc { color: var(--g1b6-muted); font-size: 1.2rem; margin-bottom: 14px; line-height: 1.6; }
.g1b6-footer-links { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 14px; }
.g1b6-footer-links a { color: var(--g1b6-muted); font-size: 1.2rem; padding: 4px 0; }
.g1b6-footer-promos { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.g1b6-footer-promos .g1b6-btn { font-size: 1.2rem; padding: 8px 12px; background: rgba(255,165,0,0.12); color: var(--g1b6-accent); border: 1px solid var(--g1b6-accent-2); }
.g1b6-footer-copy { color: #888; font-size: 1.15rem; text-align: center; border-top: 1px solid #2a2a2a; padding-top: 12px; }

/* ---------- Mobile bottom nav ---------- */
.g1b6-bottomnav {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 430px; height: var(--g1b6-bottomnav-h);
  background: linear-gradient(180deg, #1a1a1a 0%, #111 100%);
  border-top: 2px solid var(--g1b6-accent);
  display: flex; justify-content: space-around; align-items: center;
  z-index: 1000; box-shadow: 0 -3px 12px rgba(0,0,0,0.5);
}
.g1b6-bottomnav-btn {
  flex: 1; background: transparent; border: none; color: var(--g1b6-muted);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px; height: 100%; cursor: pointer; padding: 4px;
  font-size: 1rem; font-weight: 600; font-family: inherit;
  transition: color .15s ease, transform .15s ease;
}
.g1b6-bottomnav-btn:active { transform: scale(0.92); }
.g1b6-bottomnav-btn .g1b6-bn-ic { font-size: 2.2rem; line-height: 1; }
.g1b6-bottomnav-btn.g1b6-active { color: var(--g1b6-accent); }
.g1b6-bottomnav-btn.g1b6-promo {
  background: var(--g1b6-gradient); color: #1a1a1a;
  border-radius: 50%; width: 50px; height: 50px; flex: 0 0 50px;
  margin-top: -22px; box-shadow: 0 4px 12px rgba(255,165,0,0.5);
  border: 3px solid #1a1a1a;
}
.g1b6-bottomnav-btn.g1b6-promo .g1b6-bn-ic { font-size: 2.4rem; }

/* ---------- Misc helpers ---------- */
.g1b6-text-accent { color: var(--g1b6-accent); }
.g1b6-text-blue { color: var(--g1b6-blue); }
.g1b6-mt-12 { margin-top: 12px; }
.g1b6-mt-16 { margin-top: 16px; }
.g1b6-center { text-align: center; }
.g1b6-pill {
  display: inline-block; padding: 3px 10px; border-radius: 999px;
  background: rgba(255,165,0,0.15); color: var(--g1b6-accent);
  font-size: 1.1rem; font-weight: 700; margin-bottom: 6px;
}

/* ---------- Desktop ---------- */
@media (min-width: 769px) {
  body { max-width: 480px; }
  .g1b6-bottomnav { display: none; }
  .g1b6-grid { grid-template-columns: repeat(4, 1fr); }
  .g1b6-grid--4 { grid-template-columns: repeat(6, 1fr); }
}

/* mobile clearance for bottom nav */
@media (max-width: 768px) {
  main { padding-bottom: 80px; }
}
