/* f18678 vip - core base styles (prefix: g29d-) */
/* Palette: violet/purple premium casino - #800080 / #8A2BE2 / #2C2C2C on dark, light text */

:root {
  --g29d-bg: #2C2C2C;
  --g29d-bg-deep: #1c0f24;
  --g29d-primary: #800080;
  --g29d-accent: #8A2BE2;
  --g29d-gold: #f5c518;
  --g29d-text: #F5F5F5;
  --g29d-text-dim: #cfc3d6;
  --g29d-surface: #3a2440;
  --g29d-border: rgba(245, 245, 245, 0.12);
}

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

html { font-size: 62.5%; }

body {
  font-family: "Be Vietnam Pro", "Segoe UI", Roboto, Arial, sans-serif;
  background: radial-gradient(circle at 20% 0%, #3a1f4d 0%, var(--g29d-bg) 55%, var(--g29d-bg-deep) 100%);
  color: var(--g29d-text);
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
  max-width: 430px;
  margin: 0 auto;
  position: relative;
  min-height: 100vh;
  overflow-x: hidden;
}

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

.g29d-container { width: 100%; padding: 0 1.2rem; }

/* ============ Header ============ */
.g29d-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: linear-gradient(90deg, #1c0f24 0%, #3a1f4d 60%, #1c0f24 100%);
  border-bottom: 1px solid var(--g29d-border);
  box-shadow: 0 2px 14px rgba(0,0,0,.45);
}
.g29d-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 1.2rem;
  gap: 0.8rem;
}
.g29d-brand { display: flex; align-items: center; gap: 0.8rem; min-width: 0; }
.g29d-logo {
  width: 3.2rem; height: 3.2rem; border-radius: 0.8rem;
  background: linear-gradient(135deg, var(--g29d-primary), var(--g29d-accent));
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 800; font-size: 1.6rem;
  box-shadow: 0 0 12px rgba(138,43,226,.6);
}
.g29d-brand-text { font-size: 1.5rem; font-weight: 800; letter-spacing: 0.2px; color: #fff; }
.g29d-brand-text small { display:block; font-size: 1rem; color: var(--g29d-text-dim); font-weight: 500; }

.g29d-header-actions { display: flex; align-items: center; gap: 0.6rem; }
.g29d-menu-btn {
  background: transparent; border: 0; color: #fff; font-size: 2rem; cursor: pointer;
  width: 3.6rem; height: 3.6rem; border-radius: 0.6rem;
}
.g29d-menu-btn:hover { background: rgba(255,255,255,.08); }

.g29d-btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 0.4rem;
  font-size: 1.3rem; font-weight: 700;
  padding: 0.7rem 1.2rem;
  border-radius: 2rem;
  border: 0; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease;
  min-height: 3.6rem;
}
.g29d-btn-login {
  background: transparent;
  color: #fff;
  border: 1px solid var(--g29d-accent);
}
.g29d-btn-register {
  background: linear-gradient(90deg, var(--g29d-gold), #ff8a00);
  color: #2c1a00;
  box-shadow: 0 4px 14px rgba(245,197,24,.4);
}
.g29d-btn:hover { transform: translateY(-1px); }
.g29d-btn-register:hover { box-shadow: 0 6px 18px rgba(245,197,24,.55); }

/* ============ Mobile menu ============ */
#g29d-mobile-menu {
  position: fixed;
  top: 0; right: -80%;
  width: 80%; max-width: 320px;
  height: 100vh;
  background: linear-gradient(180deg, #2c1638 0%, #1c0f24 100%);
  z-index: 9999;
  padding: 2rem 1.6rem;
  transition: right .28s ease;
  overflow-y: auto;
  box-shadow: -4px 0 20px rgba(0,0,0,.5);
}
#g29d-mobile-menu.g29d-menu-open { right: 0; }
.g29d-menu-close { background: transparent; border: 0; color: #fff; font-size: 2.4rem; float: right; cursor: pointer; }
.g29d-menu-title { font-size: 1.8rem; margin: 1.4rem 0 1rem; color: var(--g29d-gold); font-weight: 800; }
#g29d-mobile-menu ul { list-style: none; }
#g29d-mobile-menu li { margin: 0.4rem 0; }
#g29d-mobile-menu a {
  display: block;
  padding: 1rem 1rem;
  font-size: 1.4rem;
  color: var(--g29d-text);
  border-radius: 0.6rem;
  border: 1px solid transparent;
}
#g29d-mobile-menu a:hover { background: rgba(138,43,226,.18); border-color: var(--g29d-border); }

#g29d-menu-backdrop {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.6);
  z-index: 9998;
  opacity: 0; pointer-events: none;
  transition: opacity .25s ease;
}
#g29d-menu-backdrop.g29d-backdrop-show { opacity: 1; pointer-events: auto; }

/* ============ Hero carousel ============ */
.g29d-hero { position: relative; margin: 1.2rem 0; border-radius: 1.2rem; overflow: hidden; box-shadow: 0 6px 20px rgba(0,0,0,.4); }
.g29d-slides { position: relative; }
.g29d-slide {
  display: none;
  position: relative;
  cursor: pointer;
}
.g29d-slide.g29d-slide-active { display: block; }
.g29d-slide img { width: 100%; height: auto; aspect-ratio: 16/9; object-fit: cover; }
.g29d-slide-cap {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 1rem 1.2rem;
  background: linear-gradient(0deg, rgba(0,0,0,.75), transparent);
  font-size: 1.3rem; font-weight: 600; color: #fff;
}
.g29d-dots { display: flex; gap: 0.4rem; justify-content: center; padding: 0.6rem 0; }
.g29d-dot {
  width: 0.7rem; height: 0.7rem; border-radius: 50%;
  background: rgba(255,255,255,.3); cursor: pointer;
}
.g29d-dot.g29d-dot-active { background: var(--g29d-gold); }

/* ============ Sections ============ */
.g29d-section { padding: 1.6rem 0; }
.g29d-section-head { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 1rem; }
.g29d-section-head h2 { font-size: 1.7rem; color: #fff; }
.g29d-section-head .g29d-bar { flex: 1; height: 2px; background: linear-gradient(90deg, var(--g29d-accent), transparent); border-radius: 2px; }
.g29d-section-sub { color: var(--g29d-text-dim); font-size: 1.25rem; margin-bottom: 1rem; }

.g29d-h1 {
  font-size: 2.2rem; line-height: 1.25; font-weight: 800; color: #fff;
  margin: 1.4rem 0 0.8rem;
}
.g29d-lead { color: var(--g29d-text-dim); font-size: 1.3rem; margin-bottom: 1rem; }

.g29d-p { font-size: 1.3rem; color: var(--g29d-text); margin-bottom: 0.9rem; }
.g29d-p strong { color: var(--g29d-gold); }

/* category tabs */
.g29d-cat-tabs { display: flex; gap: 0.6rem; overflow-x: auto; padding: 0.5rem 0 1rem; -webkit-overflow-scrolling: touch; }
.g29d-cat-tab {
  white-space: nowrap;
  padding: 0.6rem 1rem;
  border-radius: 1.6rem;
  background: var(--g29d-surface);
  color: var(--g29d-text);
  font-size: 1.2rem;
  border: 1px solid var(--g29d-border);
  cursor: pointer;
}
.g29d-cat-tab-active, .g29d-cat-tab:hover { background: linear-gradient(90deg, var(--g29d-primary), var(--g29d-accent)); }

.g29d-cat-title {
  font-size: 1.5rem;
  color: var(--g29d-gold);
  margin: 1.2rem 0 0.6rem;
  padding-left: 0.8rem;
  border-left: 3px solid var(--g29d-accent);
}

/* game grid */
.g29d-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.7rem;
}
.g29d-card {
  background: var(--g29d-surface);
  border-radius: 0.8rem;
  border: 1px solid var(--g29d-border);
  overflow: hidden;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease;
  display: flex; flex-direction: column;
}
.g29d-card:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(138,43,226,.35); }
.g29d-card-img { width: 100%; aspect-ratio: 1/1; object-fit: cover; background: #2a1832; }
.g29d-card-name {
  font-size: 1.05rem;
  color: var(--g29d-text);
  padding: 0.4rem 0.5rem 0.6rem;
  text-align: center;
  line-height: 1.25;
  min-height: 2.6rem;
}

/* feature blocks */
.g29d-feature-grid {
  display: grid; grid-template-columns: 1fr; gap: 0.8rem;
}
.g29d-feature {
  background: linear-gradient(135deg, rgba(138,43,226,.18), rgba(128,0,128,.12));
  border: 1px solid var(--g29d-border);
  border-radius: 1rem;
  padding: 1rem 1.1rem;
}
.g29d-feature h3 { font-size: 1.35rem; color: var(--g29d-gold); margin-bottom: 0.4rem; }
.g29d-feature p { font-size: 1.25rem; color: var(--g29d-text-dim); }

/* CTA strip */
.g29d-cta {
  background: linear-gradient(90deg, var(--g29d-primary), var(--g29d-accent));
  border-radius: 1rem;
  padding: 1.2rem;
  text-align: center;
  margin: 1.2rem 0;
  box-shadow: 0 6px 18px rgba(138,43,226,.4);
}
.g29d-cta h3 { color: #fff; font-size: 1.5rem; margin-bottom: 0.4rem; }
.g29d-cta p { color: rgba(255,255,255,.85); font-size: 1.2rem; margin-bottom: 0.8rem; }
.g29d-cta .g29d-btn { background: var(--g29d-gold); color: #2c1a00; }

/* testimonials */
.g29d-testimonial {
  background: var(--g29d-surface);
  border-left: 3px solid var(--g29d-gold);
  border-radius: 0.6rem;
  padding: 0.9rem 1rem;
  margin-bottom: 0.8rem;
}
.g29d-testimonial p { font-size: 1.22rem; color: var(--g29d-text); font-style: italic; }
.g29d-testimonial .g29d-author { display:block; margin-top: 0.4rem; font-size: 1.1rem; color: var(--g29d-gold); font-weight: 700; font-style: normal; }

/* payment methods */
.g29d-pay-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.6rem; }
.g29d-pay {
  background: #fff; color: #2C2C2C;
  border-radius: 0.6rem;
  padding: 0.8rem 0.4rem;
  text-align: center;
  font-size: 1.1rem;
  font-weight: 700;
}

/* winners ticker */
.g29d-winner {
  display:flex; justify-content: space-between; align-items: center;
  padding: 0.55rem 0.8rem;
  background: var(--g29d-surface);
  border: 1px solid var(--g29d-border);
  border-radius: 0.6rem;
  margin-bottom: 0.45rem;
  font-size: 1.18rem;
}
.g29d-winner b { color: var(--g29d-gold); }

/* FAQ */
.g29d-faq-item { border-bottom: 1px solid var(--g29d-border); padding: 0.8rem 0; }
.g29d-faq-item h3 { font-size: 1.28rem; color: var(--g29d-gold); margin-bottom: 0.3rem; }
.g29d-faq-item p { font-size: 1.22rem; color: var(--g29d-text-dim); }

/* app download */
.g29d-app-row { display:flex; gap: 0.8rem; flex-wrap: wrap; }
.g29d-app-btn {
  flex: 1; min-width: 140px;
  background: #000; color: #fff;
  border-radius: 0.8rem; padding: 0.8rem;
  display: flex; align-items: center; gap: 0.6rem;
  cursor: pointer; border: 1px solid var(--g29d-border);
}
.g29d-app-btn i { font-size: 2rem; color: var(--g29d-gold); }
.g29d-app-btn span { font-size: 1.1rem; line-height: 1.2; }
.g29d-app-btn small { display:block; color: var(--g29d-text-dim); font-size: 0.95rem; }

/* ============ Footer ============ */
.g29d-footer {
  background: linear-gradient(180deg, #1c0f24, #100817);
  padding: 1.6rem 1.2rem 2.4rem;
  border-top: 1px solid var(--g29d-border);
  margin-top: 1.6rem;
}
.g29d-footer-brand { color: #fff; font-weight: 800; font-size: 1.5rem; margin-bottom: 0.4rem; }
.g29d-footer-desc { font-size: 1.18rem; color: var(--g29d-text-dim); margin-bottom: 1rem; }
.g29d-footer-links { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem 0.8rem; margin-bottom: 1rem; }
.g29d-footer-links a { font-size: 1.15rem; color: var(--g29d-text-dim); }
.g29d-footer-links a:hover { color: var(--g29d-gold); }
.g29d-footer-cta { display:flex; gap:0.6rem; flex-wrap: wrap; margin: 0.8rem 0; }
.g29d-footer-copy { font-size: 1.1rem; color: var(--g29d-text-dim); border-top: 1px solid var(--g29d-border); padding-top: 0.8rem; }

/* ============ Bottom nav ============ */
.g29d-bottom-nav {
  position: fixed;
  bottom: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 430px;
  height: 6rem;
  background: linear-gradient(180deg, #2c1638, #14081a);
  border-top: 1px solid var(--g29d-accent);
  display: flex;
  justify-content: space-around;
  align-items: stretch;
  z-index: 1000;
  box-shadow: 0 -4px 14px rgba(0,0,0,.5);
}
.g29d-nav-btn {
  flex: 1; min-width: 60px; min-height: 60px;
  background: transparent; border: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 0.2rem;
  color: var(--g29d-text-dim);
  cursor: pointer;
  transition: color .15s ease, transform .12s ease;
}
.g29d-nav-btn i { font-size: 2.2rem; }
.g29d-nav-btn .g29d-nav-label { font-size: 1.05rem; }
.g29d-nav-btn:hover, .g29d-nav-btn:focus { color: var(--g29d-gold); }
.g29d-nav-btn.g29d-nav-active { color: var(--g29d-gold); }
.g29d-nav-btn.g29d-nav-active i { text-shadow: 0 0 10px rgba(245,197,24,.7); }
.g29d-nav-press { transform: scale(0.9); }

/* center promo button accent */
.g29d-nav-promo {
  position: relative;
  color: #fff;
}
.g29d-nav-promo::before {
  content: "";
  position: absolute;
  top: -1.2rem;
  width: 4.2rem; height: 4.2rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--g29d-gold), #ff8a00);
  box-shadow: 0 4px 12px rgba(245,197,24,.6);
}
.g29d-nav-promo i {
  position: relative;
  z-index: 1;
  color: #2c1a00;
  margin-top: -1.4rem;
  font-size: 2rem;
}

/* ============ Responsive ============ */
@media (min-width: 769px) {
  body { max-width: 430px; }
  .g29d-bottom-nav { display: none; }
}

@media (max-width: 768px) {
  main { padding-bottom: 8rem; }
}

@media (max-width: 360px) {
  .g29d-grid { grid-template-columns: repeat(2, 1fr); }
  .g29d-brand-text { font-size: 1.3rem; }
}
