/* ============================================================
 * x8bet.homes - Core stylesheet (class prefix: g388-)
 * Palette: #1C2833 bg | #F8F8FF text | #E0E0E0 muted | #D8BFD8 accent
 * Mobile-first. Root font 62.5% so 1rem = 10px.
 * ============================================================ */

:root {
  --g388-bg: #1C2833;
  --g388-bg-2: #141c25;
  --g388-bg-3: #0f161d;
  --g388-text: #F8F8FF;
  --g388-muted: #E0E0E0;
  --g388-accent: #D8BFD8;
  --g388-accent-2: #b993b9;
  --g388-primary: #D8BFD8;
  --g388-gold: #e9c46a;
  --g388-success: #2a9d8f;
  --g388-danger: #e76f51;
  --g388-line: rgba(216, 191, 216, 0.18);
  --g388-shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
  --g388-radius: 14px;
  --g388-radius-sm: 10px;
  --g388-maxw: 430px;
  --g388-header-h: 60px;
  --g388-bottom-h: 62px;
  --g388-font: "Segoe UI", "Inter", "Helvetica Neue", system-ui, -apple-system, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html, body {
  margin: 0;
  padding: 0;
  background: var(--g388-bg);
  color: var(--g388-text);
  font-family: var(--g388-font);
  font-size: 62.5%;
  line-height: 1.5rem;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: var(--g388-accent); text-decoration: none; }
a:hover, a:focus { color: var(--g388-gold); }
button { font-family: inherit; cursor: pointer; }

.g388-no-scroll { overflow: hidden; }

/* ---------- Layout primitives ---------- */
.g388-container {
  width: 100%;
  max-width: var(--g388-maxw);
  margin: 0 auto;
  padding: 0 1.2rem;
}
.g388-wrapper {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 1.2rem;
}
.g388-section { padding: 2.4rem 0; }
.g388-section-alt { background: var(--g388-bg-2); }

/* ---------- Headings ---------- */
.g388-h1, .g388-h2, .g388-h3, .g388-h4 {
  margin: 0 0 1rem;
  line-height: 1.4rem;
  font-weight: 700;
  color: var(--g388-text);
}
.g388-h1 { font-size: 2rem; line-height: 1.5rem; letter-spacing: -0.02em; }
.g388-h2 { font-size: 1.7rem; }
.g388-h3 { font-size: 1.4rem; color: var(--g388-accent); }
.g388-h4 { font-size: 1.2rem; color: var(--g388-accent); }
.g388-text-muted { color: var(--g388-muted); }
.g388-lead { font-size: 1.35rem; color: var(--g388-muted); }

/* ---------- Buttons ---------- */
.g388-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0.7rem 1.4rem;
  border: 0;
  border-radius: 999px;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--g388-bg);
  background: linear-gradient(135deg, var(--g388-accent), var(--g388-gold));
  transition: transform 0.15s ease, filter 0.15s ease, box-shadow 0.15s ease;
  text-decoration: none;
  touch-action: manipulation;
}
.g388-btn:hover { color: var(--g388-bg); transform: translateY(-1px); filter: brightness(1.05); }
.g388-btn:active { transform: scale(0.97); }
.g388-btn-block { display: flex; width: 100%; }
.g388-btn-outline {
  background: transparent;
  color: var(--g388-accent);
  border: 1.5px solid var(--g388-accent);
}
.g388-btn-outline:hover { color: var(--g388-gold); border-color: var(--g388-gold); }
.g388-btn-gold { background: linear-gradient(135deg, var(--g388-gold), #c9962a); }
.g388-promo-text {
  font-weight: 800;
  color: var(--g388-gold);
  border-bottom: 2px dotted var(--g388-gold);
  padding-bottom: 1px;
  cursor: pointer;
}

/* ---------- Header ---------- */
.g388-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--g388-header-h);
  z-index: 1000;
  background: linear-gradient(180deg, rgba(20,28,37,0.96), rgba(20,28,37,0.88));
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--g388-line);
}
.g388-header-inner {
  max-width: 760px;
  margin: 0 auto;
  height: 100%;
  padding: 0 1rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}
.g388-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 800;
  font-size: 1.55rem;
  color: var(--g388-text);
  letter-spacing: 0.02em;
}
.g388-logo img { width: 30px; height: 30px; border-radius: 8px; }
.g388-logo .g388-logo-text { background: linear-gradient(135deg, var(--g388-accent), var(--g388-gold)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.g388-spacer { flex: 1; }
.g388-header-actions { display: flex; align-items: center; gap: 0.5rem; }
.g388-btn-sm {
  min-height: 36px;
  padding: 0.45rem 1rem;
  font-size: 1.2rem;
  border-radius: 999px;
}
.g388-icon-btn {
  width: 40px; height: 40px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(216,191,216,0.08);
  color: var(--g388-text);
  border: 1px solid var(--g388-line);
  border-radius: 10px;
  font-size: 1.7rem;
}

/* ---------- Mobile dropdown menu ---------- */
.g388-mobile-menu {
  position: fixed;
  top: var(--g388-header-h);
  left: 0; right: 0;
  background: var(--g388-bg-2);
  border-bottom: 1px solid var(--g388-line);
  max-height: 0;
  overflow: hidden;
  z-index: 9999;
  transition: max-height 0.28s ease;
}
.g388-mobile-menu.g388-menu-open { max-height: 80vh; overflow-y: auto; }
.g388-menu-inner { padding: 0.8rem 1.2rem 1.6rem; max-width: 760px; margin: 0 auto; }
.g388-menu-group { margin-top: 1rem; }
.g388-menu-group h4 {
  margin: 0 0 0.6rem;
  font-size: 1.15rem;
  color: var(--g388-accent);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.g388-menu-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0.55rem; list-style: none; margin: 0; padding: 0; }
.g388-menu-list a {
  display: block;
  padding: 0.7rem 0.9rem;
  background: rgba(216,191,216,0.06);
  border: 1px solid var(--g388-line);
  border-radius: 10px;
  color: var(--g388-text);
  font-size: 1.25rem;
  text-align: center;
}
.g388-menu-list a:hover { background: rgba(216,191,216,0.16); color: var(--g388-gold); }

/* ---------- Hero / Carousel ---------- */
.g388-main { padding-top: var(--g388-header-h); }
.g388-hero {
  position: relative;
  width: 100%;
  margin: 0 auto;
  max-width: 760px;
  overflow: hidden;
  border-radius: 0 0 18px 18px;
}
.g388-hero-track { position: relative; aspect-ratio: 16/9; background: #000; }
.g388-slide {
  position: absolute; inset: 0;
  opacity: 0;
  transition: opacity 0.6s ease;
  display: block;
}
.g388-slide img { width: 100%; height: 100%; object-fit: cover; }
.g388-slide.g388-slide-active { opacity: 1; }
.g388-hero-caption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 1.2rem 1.2rem 1.4rem;
  background: linear-gradient(0deg, rgba(0,0,0,0.85), rgba(0,0,0,0));
  display: flex; flex-direction: column; gap: 0.6rem;
}
.g388-hero-caption h2 { color: #fff; margin: 0; font-size: 1.6rem; }
.g388-hero-caption p { margin: 0; color: var(--g388-muted); font-size: 1.2rem; }
.g388-dots {
  position: absolute; bottom: 8px; left: 0; right: 0;
  display: flex; justify-content: center; gap: 6px;
}
.g388-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: rgba(255,255,255,0.4);
  border: 0; padding: 0;
}
.g388-dot.g388-dot-active { background: var(--g388-gold); width: 18px; border-radius: 4px; }

/* ---------- Section heading ---------- */
.g388-section-head { margin-bottom: 1.4rem; }
.g388-section-head h2 { margin: 0 0 0.3rem; }
.g388-section-head p { margin: 0; color: var(--g388-muted); font-size: 1.2rem; }
.g388-eyebrow {
  display: inline-block;
  font-size: 1.1rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--g388-accent);
  margin-bottom: 0.4rem;
}

/* ---------- Game grid ---------- */
.g388-game-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
}
.g388-game-card {
  display: block;
  background: var(--g388-bg-2);
  border: 1px solid var(--g388-line);
  border-radius: var(--g388-radius-sm);
  overflow: hidden;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
  cursor: pointer;
  text-align: center;
}
.g388-game-card:hover {
  transform: translateY(-2px);
  border-color: var(--g388-accent);
  box-shadow: var(--g388-shadow);
}
.g388-game-card .g388-game-img {
  width: 100%;
  aspect-ratio: 1/1;
  background: #0f161d;
  object-fit: cover;
}
.g388-game-card .g388-game-name {
  padding: 0.5rem 0.4rem 0.6rem;
  font-size: 1.05rem;
  color: var(--g388-muted);
  font-weight: 600;
  line-height: 1.25rem;
  min-height: 3.6rem;
  display: flex; align-items: center; justify-content: center;
}
.g388-game-card:hover .g388-game-name { color: var(--g388-gold); }

.g388-cat-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  font-size: 1.1rem;
  font-weight: 700;
  background: rgba(216,191,216,0.12);
  color: var(--g388-accent);
  border: 1px solid var(--g388-line);
  margin-bottom: 1rem;
}

/* ---------- Cards / feature blocks ---------- */
.g388-card {
  background: var(--g388-bg-2);
  border: 1px solid var(--g388-line);
  border-radius: var(--g388-radius);
  padding: 1.4rem;
  box-shadow: var(--g388-shadow);
}
.g388-card h3 { margin-top: 0; }
.g388-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.g388-feature-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.9rem; }
.g388-feature-list li {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 0.8rem;
  align-items: start;
  background: rgba(216,191,216,0.05);
  padding: 0.9rem;
  border-radius: var(--g388-radius-sm);
  border: 1px solid var(--g388-line);
}
.g388-feature-list .g388-ic {
  width: 36px; height: 36px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--g388-accent), var(--g388-gold));
  color: var(--g388-bg);
  font-size: 1.6rem;
}
.g388-feature-list strong { color: var(--g388-text); font-size: 1.2rem; }
.g388-feature-list span { color: var(--g388-muted); font-size: 1.15rem; }

/* ---------- RTP grid ---------- */
.g388-rtp-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.8rem;
}
.g388-rtp-card {
  background: var(--g388-bg-3);
  border: 1px solid var(--g388-line);
  border-radius: var(--g388-radius-sm);
  padding: 1rem;
  text-align: center;
}
.g388-rtp-card .g388-rtp-name { color: var(--g388-muted); font-size: 1.1rem; margin-bottom: 0.4rem; }
.g388-rtp-card .g388-rtp-value {
  font-size: 2rem; font-weight: 800;
  background: linear-gradient(135deg, var(--g388-gold), var(--g388-accent));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------- Steps ---------- */
.g388-steps { display: grid; gap: 1rem; counter-reset: g388-step; }
.g388-step {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 0.9rem;
  padding: 1rem;
  background: var(--g388-bg-2);
  border: 1px solid var(--g388-line);
  border-radius: var(--g388-radius-sm);
}
.g388-step-num {
  counter-increment: g388-step;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--g388-accent);
  color: var(--g388-bg);
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1.4rem;
}
.g388-step-num::before { content: counter(g388-step); }
.g388-step h4 { margin: 0 0 0.3rem; font-size: 1.25rem; color: var(--g388-text); }
.g388-step p { margin: 0; color: var(--g388-muted); font-size: 1.15rem; }

/* ---------- Testimonials ---------- */
.g388-testi-grid { display: grid; gap: 0.9rem; }
.g388-testi {
  background: var(--g388-bg-2);
  border: 1px solid var(--g388-line);
  border-left: 3px solid var(--g388-accent);
  border-radius: var(--g388-radius-sm);
  padding: 1.1rem;
}
.g388-testi-stars { color: var(--g388-gold); font-size: 1.3rem; margin-bottom: 0.4rem; }
.g388-testi p { margin: 0 0 0.5rem; color: var(--g388-muted); font-size: 1.15rem; }
.g388-testi cite { color: var(--g388-accent); font-style: normal; font-weight: 700; font-size: 1.1rem; }

/* ---------- Winners strip ---------- */
.g388-winner-strip {
  display: flex; gap: 0.6rem; overflow-x: auto; padding-bottom: 0.4rem;
  scrollbar-width: thin;
}
.g388-winner {
  flex: 0 0 200px;
  background: var(--g388-bg-3);
  border: 1px solid var(--g388-line);
  border-radius: var(--g388-radius-sm);
  padding: 0.8rem 1rem;
}
.g388-winner .g388-winner-name { color: var(--g388-text); font-weight: 700; font-size: 1.15rem; }
.g388-winner .g388-winner-game { color: var(--g388-muted); font-size: 1.05rem; }
.g388-winner .g388-winner-amount { color: var(--g388-gold); font-weight: 800; font-size: 1.5rem; margin-top: 0.2rem; }

/* ---------- Payment methods ---------- */
.g388-pay-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.7rem;
}
.g388-pay {
  background: var(--g388-bg-2);
  border: 1px solid var(--g388-line);
  border-radius: var(--g388-radius-sm);
  padding: 0.9rem 0.6rem;
  text-align: center;
  font-size: 1.05rem;
  color: var(--g388-muted);
}
.g388-pay .g388-pay-ic {
  font-size: 2rem;
  color: var(--g388-accent);
  margin-bottom: 0.3rem;
}

/* ---------- FAQ ---------- */
.g388-faq-item {
  background: var(--g388-bg-2);
  border: 1px solid var(--g388-line);
  border-radius: var(--g388-radius-sm);
  padding: 1rem 1.1rem;
  margin-bottom: 0.8rem;
}
.g388-faq-item h4 { margin: 0 0 0.4rem; color: var(--g388-accent); font-size: 1.25rem; }
.g388-faq-item p { margin: 0; color: var(--g388-muted); font-size: 1.15rem; }

/* ---------- Category highlights ---------- */
.g388-cat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
}
.g388-cat {
  background: linear-gradient(135deg, rgba(216,191,216,0.12), rgba(0,0,0,0));
  border: 1px solid var(--g388-line);
  border-radius: var(--g388-radius);
  padding: 1.1rem;
  text-align: center;
}
.g388-cat .g388-cat-ic { font-size: 2.4rem; color: var(--g388-gold); margin-bottom: 0.4rem; }
.g388-cat h4 { margin: 0 0 0.3rem; color: var(--g388-text); font-size: 1.25rem; }
.g388-cat p { margin: 0; color: var(--g388-muted); font-size: 1.1rem; }

/* ---------- App download CTA ---------- */
.g388-app-cta {
  background:
    radial-gradient(120% 120% at 100% 0%, rgba(216,191,216,0.18), transparent 60%),
    linear-gradient(135deg, var(--g388-bg-2), var(--g388-bg-3));
  border: 1px solid var(--g388-line);
  border-radius: var(--g388-radius);
  padding: 1.6rem;
  text-align: center;
}
.g388-app-cta h3 { margin-top: 0; }
.g388-app-row { display: flex; gap: 0.7rem; justify-content: center; flex-wrap: wrap; margin-top: 1rem; }

/* ---------- Footer ---------- */
.g388-footer {
  background: var(--g388-bg-3);
  border-top: 1px solid var(--g388-line);
  padding: 2rem 0 calc(var(--g388-bottom-h) + 2rem);
}
.g388-footer-inner { max-width: 760px; margin: 0 auto; padding: 0 1.2rem; }
.g388-footer-brand p { color: var(--g388-muted); font-size: 1.15rem; }
.g388-footer-promos {
  display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1rem 0 1.4rem;
}
.g388-footer-promos .g388-btn { font-size: 1.15rem; padding: 0.55rem 1.1rem; min-height: 38px; }
.g388-footer-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
  margin-bottom: 1.4rem;
}
.g388-footer-col h5 {
  margin: 0 0 0.6rem;
  font-size: 1.2rem;
  color: var(--g388-accent);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.g388-footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.4rem; }
.g388-footer-col a { color: var(--g388-muted); font-size: 1.1rem; }
.g388-footer-col a:hover { color: var(--g388-gold); }
.g388-footer-bottom {
  border-top: 1px solid var(--g388-line);
  padding-top: 1rem;
  font-size: 1.05rem;
  color: var(--g388-muted);
  text-align: center;
}

/* ---------- Mobile bottom nav ---------- */
.g388-bottom-nav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: var(--g388-bottom-h);
  background: linear-gradient(180deg, rgba(20,28,37,0.98), rgba(15,22,29,0.98));
  border-top: 1px solid var(--g388-line);
  z-index: 1000;
  display: flex;
  justify-content: space-around;
  align-items: stretch;
}
.g388-bottom-nav a, .g388-bottom-nav button {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  background: transparent;
  border: 0;
  color: var(--g388-muted);
  font-size: 1rem;
  min-width: 60px;
  min-height: 60px;
  padding: 4px 2px;
  text-decoration: none;
  transition: color 0.15s ease, transform 0.15s ease;
}
.g388-bottom-nav a:active, .g388-bottom-nav button:active { transform: scale(0.94); }
.g388-bottom-nav .g388-bn-ic { font-size: 22px; line-height: 1; }
.g388-bottom-nav .g388-bn-label { font-size: 10px; letter-spacing: 0.02em; }
.g388-bottom-nav a:hover, .g388-bottom-nav button:hover { color: var(--g388-accent); }
.g388-bottom-nav .g388-bn-active { color: var(--g388-gold); }
.g388-bottom-nav .g388-bn-promo {
  background: linear-gradient(135deg, var(--g388-accent), var(--g388-gold));
  color: var(--g388-bg);
  border-radius: 50%;
  width: 50px; height: 50px;
  margin-top: -14px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.4);
}
.g388-bottom-nav .g388-bn-promo .g388-bn-ic { font-size: 24px; }
.g388-bottom-nav .g388-bn-promo-wrap { position: relative; }
.g388-bottom-nav .g388-bn-promo-wrap .g388-bn-label {
  position: absolute; bottom: 4px; left: 0; right: 0; text-align: center;
}

/* ---------- Mobile content padding ---------- */
@media (max-width: 768px) {
  .g388-main, .g388-footer { padding-bottom: calc(var(--g388-bottom-h) + 16px); }
}

/* ---------- Desktop ---------- */
.g388-desktop-only { display: none; }
@media (min-width: 769px) {
  .g388-bottom-nav { display: none; }
  .g388-desktop-only { display: flex; }
  .g388-header-inner { max-width: 1000px; }
  .g388-footer-inner { max-width: 1000px; }
  .g388-hero { max-width: 1000px; border-radius: 0 0 22px 22px; }
  .g388-container, .g388-wrapper { max-width: 1000px; }
  .g388-game-grid { grid-template-columns: repeat(6, 1fr); }
  .g388-pay-grid { grid-template-columns: repeat(6, 1fr); }
  .g388-cat-grid { grid-template-columns: repeat(5, 1fr); }
  .g388-grid-2 { grid-template-columns: repeat(2, 1fr); }
  .g388-footer-cols { grid-template-columns: repeat(4, 1fr); }
}

/* ---------- Utility ---------- */
.g388-text-center { text-align: center; }
.g388-mt-1 { margin-top: 0.8rem; }
.g388-mt-2 { margin-top: 1.6rem; }
.g388-mb-0 { margin-bottom: 0; }
.g388-p-lead { font-size: 1.25rem; color: var(--g388-muted); }
