/* x8bet site - Core CSS, prefix pg24- */
:root {
  --pg24-bg: #1A1A1A;
  --pg24-bg2: #2C3E50;
  --pg24-text: #FFFFFF;
  --pg24-muted: #B8C2CC;
  --pg24-primary: #E63946;
  --pg24-primary2: #F4A261;
  --pg24-gold: #FFD166;
  --pg24-border: rgba(255, 255, 255, 0.08);
  --pg24-radius: 10px;
  --pg24-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
  --pg24-header-h: 56px;
  --pg24-bottomnav-h: 62px;
}

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

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

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

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

/* Layout */
.pg24-container { width: 100%; padding: 0 14px; }
.pg24-wrapper { padding-top: var(--pg24-header-h); }

/* Header */
.pg24-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  max-width: 430px; margin: 0 auto;
  height: var(--pg24-header-h);
  background: linear-gradient(90deg, #1A1A1A 0%, #2C3E50 100%);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 12px;
  border-bottom: 1px solid var(--pg24-border);
  box-shadow: var(--pg24-shadow);
}
.pg24-logo { display: flex; align-items: center; gap: 8px; color: #fff; }
.pg24-logo img { width: 30px; height: 30px; border-radius: 6px; }
.pg24-logo span { font-size: 1.8rem; font-weight: 800; color: var(--pg24-gold); letter-spacing: 0.5px; }
.pg24-header-actions { display: flex; align-items: center; gap: 8px; }
.pg24-btn {
  border: none; cursor: pointer; border-radius: 8px;
  font-size: 1.3rem; font-weight: 700; padding: 8px 14px;
  min-height: 38px; transition: transform 0.15s, filter 0.15s;
}
.pg24-btn:active { transform: scale(0.96); }
.pg24-btn-register { background: linear-gradient(90deg, #E63946, #F4A261); color: #fff; }
.pg24-btn-login { background: transparent; color: #fff; border: 1px solid var(--pg24-gold); }
.pg24-menu-btn {
  background: transparent; border: none; color: #fff;
  font-size: 2.2rem; cursor: pointer; padding: 4px 8px;
  display: flex; align-items: center; justify-content: center;
  min-width: 44px; min-height: 44px;
}

/* Mobile menu */
.pg24-mobile-menu {
  position: fixed; top: var(--pg24-header-h); left: 0; right: 0;
  max-width: 430px; margin: 0 auto;
  background: #20262E; border-bottom: 1px solid var(--pg24-border);
  z-index: 9999; max-height: 0; overflow: hidden;
  transition: max-height 0.3s ease;
}
.pg24-menu-open { max-height: 480px; box-shadow: var(--pg24-shadow); }
.pg24-mobile-menu ul { list-style: none; padding: 8px 0; }
.pg24-mobile-menu li a {
  display: block; padding: 12px 16px; color: #fff;
  font-size: 1.5rem; border-bottom: 1px solid var(--pg24-border);
}
.pg24-mobile-menu li a:hover { background: rgba(230,57,70,0.18); text-decoration: none; }

/* Carousel */
.pg24-carousel {
  position: relative; width: 100%; overflow: hidden;
  border-radius: 0 0 14px 14px; margin-top: 0;
}
.pg24-slides { position: relative; }
.pg24-slide {
  display: none; width: 100%; cursor: pointer; position: relative;
}
.pg24-slide-active { display: block; }
.pg24-slide img { width: 100%; height: 200px; object-fit: cover; }
.pg24-slide-caption {
  position: absolute; left: 12px; bottom: 12px; right: 12px;
  background: rgba(0,0,0,0.45); color: #fff; padding: 8px 12px;
  border-radius: 8px; font-size: 1.3rem; font-weight: 600;
}
.pg24-carousel-controls { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 6px 0; }
.pg24-ctrl-btn {
  background: rgba(255,255,255,0.08); color: #fff; border: none;
  width: 36px; height: 36px; border-radius: 50%; cursor: pointer;
  font-size: 1.6rem; display: flex; align-items: center; justify-content: center;
}
.pg24-dots { display: flex; gap: 6px; }
.pg24-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,255,255,0.3); cursor: pointer; border: none;
}
.pg24-dot-active { background: var(--pg24-gold); }

/* Sections */
.pg24-section { padding: 18px 14px; }
.pg24-section h2 {
  font-size: 1.8rem; color: var(--pg24-gold); margin-bottom: 10px;
  border-left: 4px solid var(--pg24-primary); padding-left: 10px;
}
.pg24-section h3 { font-size: 1.5rem; color: #fff; margin: 12px 0 6px; }
.pg24-section p { color: var(--pg24-muted); margin-bottom: 8px; font-size: 1.35rem; }
.pg24-intro { color: var(--pg24-muted); font-size: 1.35rem; margin-bottom: 14px; }

/* H1 */
.pg24-hero-title {
  font-size: 2.2rem; font-weight: 800; color: #fff;
  text-align: center; margin: 14px 0 8px; line-height: 1.3;
}
.pg24-hero-title .hl { color: var(--pg24-gold); }

/* Filter tabs */
.pg24-filters { display: flex; gap: 8px; overflow-x: auto; padding: 8px 14px 4px; -webkit-overflow-scrolling: touch; }
.pg24-filter-tab {
  background: rgba(255,255,255,0.06); color: #fff; border: 1px solid var(--pg24-border);
  padding: 7px 14px; border-radius: 20px; font-size: 1.3rem; white-space: nowrap;
  cursor: pointer; flex: 0 0 auto;
}
.pg24-filter-tab-active { background: linear-gradient(90deg, #E63946, #F4A261); border-color: transparent; }

/* Game grid */
.pg24-game-section h2 { margin-top: 6px; }
.pg24-game-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;
}
.pg24-game-card {
  background: var(--pg24-bg2); border-radius: var(--pg24-radius);
  overflow: hidden; cursor: pointer; border: 1px solid var(--pg24-border);
  transition: transform 0.15s;
}
.pg24-game-card:active { transform: scale(0.97); }
.pg24-game-card img { width: 100%; height: 92px; object-fit: cover; }
.pg24-game-card .pg24-game-name {
  padding: 6px 4px; font-size: 1.1rem; color: #fff; text-align: center;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* Promo CTA */
.pg24-cta {
  background: linear-gradient(90deg, #2C3E50, #1A1A1A);
  border: 1px solid var(--pg24-primary); border-radius: var(--pg24-radius);
  padding: 16px; text-align: center; margin: 14px 0;
}
.pg24-cta h3 { color: var(--pg24-gold); font-size: 1.7rem; margin-bottom: 6px; }
.pg24-cta p { color: var(--pg24-muted); margin-bottom: 12px; font-size: 1.3rem; }
.pg24-cta .pg24-btn { padding: 12px 24px; font-size: 1.5rem; }

/* Info cards */
.pg24-card-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
.pg24-card {
  background: var(--pg24-bg2); border-radius: var(--pg24-radius);
  padding: 14px; border: 1px solid var(--pg24-border);
}
.pg24-card h3 { color: var(--pg24-gold); font-size: 1.5rem; margin-bottom: 6px; }
.pg24-card ul { list-style: none; padding-left: 0; }
.pg24-card li { padding: 5px 0 5px 22px; position: relative; color: var(--pg24-muted); font-size: 1.3rem; }
.pg24-card li i { position: absolute; left: 0; top: 7px; color: var(--pg24-primary); }

/* RTP / data */
.pg24-rtp-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 8px 0; border-bottom: 1px solid var(--pg24-border);
}
.pg24-rtp-row span:first-child { color: #fff; font-size: 1.3rem; }
.pg24-rtp-bar { width: 100px; height: 8px; background: rgba(255,255,255,0.1); border-radius: 4px; overflow: hidden; }
.pg24-rtp-fill { height: 100%; background: linear-gradient(90deg, #E63946, #F4A261); }
.pg24-rtp-value { color: var(--pg24-gold); font-weight: 700; font-size: 1.3rem; }

/* Testimonials */
.pg24-testimonial {
  background: var(--pg24-bg2); border-radius: var(--pg24-radius);
  padding: 12px; margin-bottom: 10px; border-left: 3px solid var(--pg24-primary2);
}
.pg24-testimonial .pg24-t-name { color: var(--pg24-gold); font-weight: 700; font-size: 1.3rem; }
.pg24-testimonial .pg24-t-text { color: var(--pg24-muted); font-size: 1.3rem; margin-top: 4px; }

/* Payment */
.pg24-pay-row { display: flex; flex-wrap: wrap; gap: 8px; }
.pg24-pay-item {
  background: #fff; color: #2C3E50; border-radius: 8px;
  padding: 6px 12px; font-size: 1.2rem; font-weight: 600;
  display: flex; align-items: center; gap: 6px;
}

/* Winners */
.pg24-winner {
  display: flex; align-items: center; gap: 10px;
  background: var(--pg24-bg2); border-radius: 8px; padding: 8px 10px; margin-bottom: 8px;
}
.pg24-winner .pg24-w-amount { color: var(--pg24-gold); font-weight: 700; margin-left: auto; }

/* App download CTA */
.pg24-app-cta {
  background: linear-gradient(90deg, #E63946, #2C3E50);
  border-radius: var(--pg24-radius); padding: 16px; text-align: center; margin: 14px 0;
}
.pg24-app-cta h3 { color: #fff; font-size: 1.7rem; margin-bottom: 6px; }
.pg24-app-cta p { color: rgba(255,255,255,0.85); margin-bottom: 12px; font-size: 1.3rem; }

/* Footer */
.pg24-footer {
  background: #141414; padding: 20px 14px; border-top: 1px solid var(--pg24-border);
  margin-top: 10px;
}
.pg24-footer .pg24-footer-brand { color: var(--pg24-muted); font-size: 1.3rem; margin-bottom: 12px; }
.pg24-footer h4 { color: var(--pg24-gold); font-size: 1.4rem; margin: 12px 0 6px; }
.pg24-footer-links { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 10px; }
.pg24-footer-links a { color: var(--pg24-muted); font-size: 1.25rem; }
.pg24-footer-promo {
  display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0;
}
.pg24-footer-promo .pg24-btn { font-size: 1.2rem; padding: 7px 12px; }
.pg24-footer-copy {
  border-top: 1px solid var(--pg24-border); margin-top: 14px; padding-top: 10px;
  color: #888; font-size: 1.15rem; text-align: center;
}

/* Bottom nav */
.pg24-bottomnav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 1000;
  max-width: 430px; margin: 0 auto;
  height: var(--pg24-bottomnav-h);
  background: linear-gradient(180deg, #2C3E50, #1A1A1A);
  border-top: 1px solid var(--pg24-border);
  display: flex; justify-content: space-around; align-items: center;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.4);
}
.pg24-bottomnav-btn {
  background: transparent; border: none; color: var(--pg24-muted);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-width: 60px; min-height: 60px; flex: 1; cursor: pointer;
  font-size: 1.05rem; gap: 2px; transition: color 0.15s, transform 0.15s;
}
.pg24-bottomnav-btn i, .pg24-bottomnav-btn .material-icons-outlined,
.pg24-bottomnav-btn .ion-icon { font-size: 24px; }
.pg24-bottomnav-btn:active { transform: scale(0.92); }
.pg24-bottomnav-btn-active { color: var(--pg24-gold); }
.pg24-bottomnav-btn-promo { color: var(--pg24-primary2); }

/* Back to top */
.pg24-backtop {
  position: fixed; right: 14px; bottom: calc(var(--pg24-bottomnav-h) + 12px);
  z-index: 900; width: 40px; height: 40px; border-radius: 50%;
  background: var(--pg24-primary); color: #fff; border: none; cursor: pointer;
  font-size: 1.8rem; display: flex; align-items: center; justify-content: center;
  box-shadow: var(--pg24-shadow);
}

/* Desktop: hide bottom nav, show desktop nav */
@media (min-width: 769px) {
  .pg24-bottomnav { display: none; }
  body { max-width: 960px; }
  .pg24-header { max-width: 960px; }
  .pg24-mobile-menu { max-width: 960px; }
  .pg24-game-grid { grid-template-columns: repeat(5, 1fr); }
  .pg24-card-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .pg24-wrapper { padding-bottom: calc(var(--pg24-bottomnav-h) + 16px); }
}

/* Hidden helper */
.pg24-hidden { display: none; }
