/* ============================================================
   b666 - style-8757.css
   All custom classes use the "g57f-" prefix.
   Palette: #D4AF37 (gold) | #BAE1FF (light blue) | #ADB5BD |
            #A9A9A9 | #2D2D2D (deep bg)
   Mobile-first, max 430px.
   ============================================================ */

:root {
  --g57f-gold: #D4AF37;
  --g57f-blue: #BAE1FF;
  --g57f-grey1: #ADB5BD;
  --g57f-grey2: #A9A9A9;
  --g57f-dark: #2D2D2D;
  --g57f-darker: #1c1c1c;
  --g57f-card: #3a3a3a;
  --g57f-text: #f3f3f3;
  --g57f-muted: #c9c9c9;
  --g57f-accent: #e8c252;
  --g57f-grad: linear-gradient(135deg, #D4AF37 0%, #b8941f 100%);
  --g57f-radius: 12px;
  --g57f-header-h: 56px;
  --g57f-bottomnav-h: 62px;
}

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

html { font-size: 62.5%; scroll-behavior: smooth; }

body {
  font-family: "Segoe UI", "Roboto", "Helvetica Neue", Arial, sans-serif;
  background: var(--g57f-darker);
  color: var(--g57f-text);
  font-size: 1.5rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  max-width: 430px;
  margin: 0 auto;
  position: relative;
  overflow-x: hidden;
}

a { color: var(--g57f-gold); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }

.g57f-container { width: 100%; padding: 0 1.2rem; }
.g57f-wrapper { padding-top: var(--g57f-header-h); padding-bottom: calc(var(--g57f-bottomnav-h) + 1.2rem); }

/* ----------------------- Header ----------------------- */
.g57f-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--g57f-header-h);
  background: linear-gradient(180deg, #232323 0%, #2D2D2D 100%);
  border-bottom: 2px solid var(--g57f-gold);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.2rem;
  max-width: 430px;
  margin: 0 auto;
}
.g57f-logo {
  display: flex; align-items: center; gap: 0.6rem;
  color: var(--g57f-gold); font-weight: 800; font-size: 1.9rem;
  letter-spacing: 0.5px;
}
.g57f-logo img { width: 30px; height: 30px; border-radius: 6px; }
.g57f-logo span { background: var(--g57f-grad); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }

.g57f-header-actions { display: flex; align-items: center; gap: 0.5rem; }

.g57f-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
  border: none; cursor: pointer; font-weight: 700;
  border-radius: 999px; padding: 0.7rem 1.3rem; font-size: 1.35rem;
  transition: transform 0.15s ease, filter 0.15s ease;
  min-height: 36px;
}
.g57f-btn:hover { transform: scale(1.04); filter: brightness(1.08); text-decoration: none; }
.g57f-btn-register {
  background: var(--g57f-grad);
  color: #2D2D2D;
  box-shadow: 0 3px 8px rgba(212,175,55,0.35);
}
.g57f-btn-login {
  background: transparent;
  color: var(--g57f-blue);
  border: 1.5px solid var(--g57f-blue);
}
.g57f-btn-ghost {
  background: transparent; color: var(--g57f-text);
  border: 1px solid var(--g57f-grey1);
}

.g57f-menu-btn {
  background: transparent; border: none; color: var(--g57f-text);
  font-size: 2rem; cursor: pointer; padding: 0.4rem 0.6rem;
  border-radius: 8px;
}
.g57f-menu-btn:hover { background: rgba(255,255,255,0.08); }

/* ----------------------- Mobile menu ----------------------- */
.g57f-mobile-menu {
  position: fixed;
  top: var(--g57f-header-h); left: 0; right: 0;
  background: #1f1f1f;
  border-bottom: 1px solid var(--g57f-gold);
  max-height: 0; overflow: hidden;
  transition: max-height 0.3s ease;
  z-index: 9999;
}
.g57f-mobile-menu.g57f-menu-open { max-height: 80vh; overflow-y: auto; }
.g57f-mobile-menu ul { list-style: none; padding: 0.6rem 1.2rem; }
.g57f-mobile-menu li { border-bottom: 1px solid #333; }
.g57f-mobile-menu li:last-child { border-bottom: none; }
.g57f-mobile-menu a {
  display: flex; align-items: center; gap: 0.7rem;
  padding: 1rem 0.4rem; color: var(--g57f-text); font-size: 1.5rem;
}
.g57f-mobile-menu a:hover { color: var(--g57f-gold); }
.g57f-mobile-menu .material-icons,
.g57f-mobile-menu i { color: var(--g57f-blue); font-size: 2rem; width: 24px; text-align: center; }

/* ----------------------- Hero / Carousel ----------------------- */
.g57f-hero { padding: 1rem 0 0.5rem; }
.g57f-carousel {
  position: relative; overflow: hidden; border-radius: var(--g57f-radius);
  box-shadow: 0 6px 18px rgba(0,0,0,0.4);
}
.g57f-carousel-track {
  display: flex; transition: transform 0.5s ease; width: 100%;
}
.g57f-carousel-slide {
  min-width: 100%; position: relative; cursor: pointer;
}
.g57f-carousel-slide img { width: 100%; height: 180px; object-fit: cover; }
.g57f-carousel-cap {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 0.8rem 1rem; background: linear-gradient(0deg, rgba(0,0,0,0.85), transparent);
  color: #fff; font-size: 1.35rem; font-weight: 700;
}
.g57f-carousel-cap em { color: var(--g57f-gold); font-style: normal; }
.g57f-carousel-dots {
  display: flex; gap: 0.5rem; justify-content: center; padding: 0.6rem 0;
}
.g57f-carousel-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--g57f-grey2); cursor: pointer; border: none; padding: 0;
}
.g57f-carousel-dot.g57f-dot-active { background: var(--g57f-gold); width: 22px; border-radius: 4px; }

/* ----------------------- Section ----------------------- */
.g57f-section { padding: 1.5rem 0; }
.g57f-section-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 1rem;
}
.g57f-section-title {
  font-size: 1.7rem; font-weight: 800; color: var(--g57f-gold);
  border-left: 4px solid var(--g57f-blue); padding-left: 0.8rem;
}
.g57f-section-more { font-size: 1.3rem; color: var(--g57f-blue); }
.g57f-h1 {
  font-size: 2rem; line-height: 1.3; margin: 0.5rem 0 1rem;
  color: #fff;
}
.g57f-h1 span { color: var(--g57f-gold); }
.g57f-h2 { font-size: 1.75rem; color: var(--g57f-gold); margin: 1.2rem 0 0.8rem; }
.g57f-h3 { font-size: 1.5rem; color: var(--g57f-blue); margin: 1rem 0 0.5rem; }
.g57f-lead { color: var(--g57f-muted); font-size: 1.4rem; margin-bottom: 0.8rem; }

/* ----------------------- Filter tabs ----------------------- */
.g57f-filters {
  display: flex; gap: 0.5rem; overflow-x: auto; padding-bottom: 0.4rem;
  margin-bottom: 1rem;
}
.g57f-filter-tab {
  flex: 0 0 auto; padding: 0.5rem 1.1rem; border-radius: 999px;
  background: #333; color: var(--g57f-text); font-size: 1.3rem; cursor: pointer;
  border: 1px solid #444; white-space: nowrap;
}
.g57f-filter-tab.g57f-filter-active {
  background: var(--g57f-grad); color: #2D2D2D; border-color: var(--g57f-gold); font-weight: 700;
}

/* ----------------------- Game grid ----------------------- */
.g57f-cat-block { margin-bottom: 1.6rem; }
.g57f-cat-title {
  font-size: 1.45rem; font-weight: 800; color: var(--g57f-blue);
  margin-bottom: 0.7rem; display: flex; align-items: center; gap: 0.5rem;
}
.g57f-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
}
.g57f-card {
  background: var(--g57f-card); border-radius: var(--g57f-radius);
  overflow: hidden; border: 1px solid #444;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  cursor: pointer;
}
.g57f-card:hover { transform: translateY(-3px); box-shadow: 0 8px 16px rgba(212,175,55,0.25); border-color: var(--g57f-gold); }
.g57f-card-thumb { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; background: #222; }
.g57f-card-name {
  padding: 0.4rem 0.5rem; font-size: 1.15rem; color: var(--g57f-text);
  text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* ----------------------- CTA Banner ----------------------- */
.g57f-cta {
  background: var(--g57f-grad); color: #2D2D2D;
  padding: 1.2rem; border-radius: var(--g57f-radius); text-align: center;
  margin: 1.2rem 0;
}
.g57f-cta h3 { color: #2D2D2D; margin-bottom: 0.4rem; font-size: 1.6rem; }
.g57f-cta p { font-size: 1.3rem; margin-bottom: 0.8rem; }
.g57f-cta .g57f-btn { background: #2D2D2D; color: var(--g57f-gold); }

/* ----------------------- Info / feature / faq boxes ----------------------- */
.g57f-info {
  background: #2a2a2a; border-radius: var(--g57f-radius); padding: 1.2rem;
  margin-bottom: 1rem; border-left: 4px solid var(--g57f-gold);
}
.g57f-info p { margin-bottom: 0.6rem; color: var(--g57f-muted); }
.g57f-info strong { color: var(--g57f-blue); }
.g57f-list { list-style: none; padding-left: 0; }
.g57f-list li { padding: 0.4rem 0 0.4rem 1.6rem; position: relative; color: var(--g57f-muted); }
.g57f-list li:before { content: "\f00c"; font-family: "Font Awesome 6 Free"; font-weight: 900;
  color: var(--g57f-gold); position: absolute; left: 0; }

.g57f-step-list { counter-reset: step; list-style: none; padding-left: 0; }
.g57f-step-list li {
  counter-increment: step; padding: 0.7rem 0 0.7rem 3.2rem; position: relative;
  border-bottom: 1px solid #333; color: var(--g57f-muted);
}
.g57f-step-list li:before {
  content: counter(step); position: absolute; left: 0; top: 0.6rem;
  width: 2.4rem; height: 2.4rem; border-radius: 50%; background: var(--g57f-grad);
  color: #2D2D2D; font-weight: 800; text-align: center; line-height: 2.4rem; font-size: 1.3rem;
}

/* RTP compact table */
.g57f-rtp-table { width: 100%; border-collapse: collapse; font-size: 1.3rem; }
.g57f-rtp-table th, .g57f-rtp-table td { padding: 0.6rem; border-bottom: 1px solid #333; text-align: left; }
.g57f-rtp-table th { color: var(--g57f-gold); }
.g57f-rtp-table td:last-child { color: var(--g57f-blue); font-weight: 700; }

/* Testimonials */
.g57f-testi {
  background: #2a2a2a; border-radius: var(--g57f-radius); padding: 1rem;
  margin-bottom: 0.8rem; border-left: 4px solid var(--g57f-blue);
}
.g57f-testi-stars { color: var(--g57f-gold); margin-bottom: 0.4rem; }
.g57f-testi p { color: var(--g57f-muted); font-size: 1.3rem; }
.g57f-testi .g57f-testi-user { color: var(--g57f-blue); font-size: 1.2rem; margin-top: 0.4rem; }

/* Payment pills */
.g57f-pay-row { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.g57f-pay-pill {
  background: #333; color: var(--g57f-text); padding: 0.5rem 1rem;
  border-radius: 999px; font-size: 1.2rem; border: 1px solid #444;
  display: inline-flex; align-items: center; gap: 0.3rem;
}

/* Winners */
.g57f-winner {
  display: flex; align-items: center; gap: 0.7rem;
  background: #2a2a2a; padding: 0.7rem; border-radius: var(--g57f-radius);
  margin-bottom: 0.5rem;
}
.g57f-winner-amount { margin-left: auto; color: var(--g57f-gold); font-weight: 800; }

/* App download */
.g57f-app-cta {
  background: linear-gradient(135deg, #1c1c1c 0%, #3a3a3a 100%);
  border: 1px solid var(--g57f-gold); border-radius: var(--g57f-radius);
  padding: 1.2rem; text-align: center; margin: 1.2rem 0;
}
.g57f-app-cta h3 { color: var(--g57f-gold); }
.g57f-app-buttons { display: flex; gap: 0.6rem; justify-content: center; margin-top: 0.8rem; flex-wrap: wrap; }

/* Inline promo link */
.g57f-promo-text {
  color: var(--g57f-gold); font-weight: 800; cursor: pointer;
  border-bottom: 2px dashed var(--g57f-gold);
}
.g57f-promo-text:hover { color: var(--g57f-accent); text-decoration: none; }

/* ----------------------- Footer ----------------------- */
.g57f-footer {
  background: #1a1a1a; border-top: 2px solid var(--g57f-gold);
  padding: 1.5rem 1.2rem 2rem; margin-top: 1rem;
}
.g57f-footer-brand { color: var(--g57f-muted); font-size: 1.3rem; margin-bottom: 0.8rem; }
.g57f-footer-brand strong { color: var(--g57f-gold); }
.g57f-footer-promos { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0.8rem 0; }
.g57f-footer-links {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.5rem 1rem;
  margin: 0.8rem 0; padding-top: 0.8rem; border-top: 1px solid #333;
}
.g57f-footer-links a { font-size: 1.25rem; color: var(--g57f-blue); }
.g57f-footer-copy { color: var(--g57f-grey2); font-size: 1.15rem; margin-top: 0.8rem; text-align: center; }

/* ----------------------- Bottom nav ----------------------- */
.g57f-bottomnav {
  position: fixed; bottom: 0; left: 0; right: 0;
  height: var(--g57f-bottomnav-h);
  background: linear-gradient(0deg, #1a1a1a 0%, #232323 100%);
  border-top: 2px solid var(--g57f-gold);
  display: flex; justify-content: space-around; align-items: stretch;
  z-index: 1000;
  max-width: 430px; margin: 0 auto;
}
.g57f-bottomnav-btn {
  flex: 1; background: transparent; border: none;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px; color: var(--g57f-muted); cursor: pointer;
  font-size: 1.05rem; padding: 0.3rem; transition: color 0.15s ease, transform 0.15s ease;
  min-width: 60px; min-height: 60px;
}
.g57f-bottomnav-btn:hover { color: var(--g57f-gold); transform: translateY(-2px); }
.g57f-bottomnav-btn .material-icons,
.g57f-bottomnav-btn i { font-size: 22px; }
.g57f-bottomnav-btn .g57f-bottomnav-label { font-size: 1.05rem; }
.g57f-bottomnav-active { color: var(--g57f-gold) !important; }
.g57f-bottomnav-active i, .g57f-bottomnav-active .material-icons { color: var(--g57f-gold); }

/* Back to top FAB */
.g57f-fab-top {
  position: fixed; right: 1rem; bottom: calc(var(--g57f-bottomnav-h) + 1rem);
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--g57f-grad); color: #2D2D2D; border: none; cursor: pointer;
  font-size: 1.6rem; box-shadow: 0 4px 10px rgba(0,0,0,0.5); z-index: 999;
  display: flex; align-items: center; justify-content: center;
}

/* ----------------------- Desktop ----------------------- */
@media (min-width: 769px) {
  body { max-width: 430px; box-shadow: 0 0 30px rgba(0,0,0,0.5); }
  .g57f-bottomnav { display: none; }
  .g57f-wrapper { padding-bottom: 2rem; }
}
@media (max-width: 768px) {
  .g57f-wrapper { padding-bottom: calc(var(--g57f-bottomnav-h) + 1.5rem); }
}
