/* 29bet core stylesheet - prefix w8765- */
:root {
  --w8765-primary: #FFA500;
  --w8765-bg: #2C2C2C;
  --w8765-danger: #B22222;
  --w8765-gold: #FFD700;
  --w8765-text: #f5f5f5;
  --w8765-muted: #b9b9b9;
  --w8765-card: #3a3a3a;
  --w8765-card2: #444;
  --w8765-radius: 10px;
  --w8765-header-h: 56px;
  --w8765-bottom-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", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--w8765-bg);
  color: var(--w8765-text);
  line-height: 1.5rem;
  font-size: 1.4rem;
  max-width: 430px;
  margin: 0 auto;
  overflow-x: hidden;
}

/* Header */
.w8765-header {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--w8765-header-h);
  background: linear-gradient(90deg, #1f1f1f, #2C2C2C);
  border-bottom: 2px solid var(--w8765-primary);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 12px; z-index: 1000;
  max-width: 430px; margin: 0 auto;
}
.w8765-brand { display: flex; align-items: center; gap: 8px; }
.w8765-logo { width: 28px; height: 28px; border-radius: 6px; }
.w8765-brandname { font-weight: 800; font-size: 1.7rem; color: var(--w8765-gold); letter-spacing: .5px; }
.w8765-brandname span { color: var(--w8765-primary); }

.w8765-header-actions { display: flex; align-items: center; gap: 6px; }
.w8765-btn {
  border: none; cursor: pointer; border-radius: 20px;
  font-weight: 700; font-size: 1.2rem; padding: 7px 14px;
  min-height: 36px; transition: transform .15s, opacity .15s;
}
.w8765-btn:active { transform: scale(.94); }
.w8765-btn-login {
  background: transparent; color: var(--w8765-text);
  border: 1px solid var(--w8765-primary);
}
.w8765-btn-register {
  background: linear-gradient(90deg, var(--w8765-danger), var(--w8765-primary));
  color: #fff; box-shadow: 0 2px 8px rgba(255,165,0,.35);
}
.w8765-menuBtn {
  background: transparent; border: none; color: var(--w8765-gold);
  font-size: 2rem; cursor: pointer; padding: 4px 8px;
}

/* Expandable nav menu */
.w8765-navMenu {
  position: fixed; top: var(--w8765-header-h); left: 0; right: 0;
  max-width: 430px; margin: 0 auto;
  background: #222; border-bottom: 2px solid var(--w8765-primary);
  max-height: 0; overflow: hidden; transition: max-height .3s ease;
  z-index: 9999;
}
.w8765-nav-open { max-height: 480px; }
.w8765-navMenu ul { list-style: none; padding: 6px 0; }
.w8765-navMenu li a {
  display: block; padding: 12px 18px; color: var(--w8765-text);
  text-decoration: none; border-bottom: 1px solid #333;
  font-size: 1.35rem;
}
.w8765-navMenu li a:hover, .w8765-navMenu .w8765-current {
  background: #333; color: var(--w8765-primary); padding-left: 24px;
}

/* Layout */
.w8765-wrapper { padding-top: var(--w8765-header-h); }
main.w8765-main { padding: 14px 12px 20px; }

/* Carousel */
.w8765-carousel { position: relative; border-radius: var(--w8765-radius); overflow: hidden; margin-bottom: 16px; }
.w8765-slide { display: none; width: 100%; aspect-ratio: 16/9; }
.w8765-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.w8765-slide a { display: block; }
.w8765-carousel-dots { position: absolute; bottom: 8px; left: 0; right: 0; text-align: center; }
.w8765-dot {
  display: inline-block; width: 8px; height: 8px; margin: 0 3px;
  border-radius: 50%; background: rgba(255,255,255,.4); cursor: pointer;
}
.w8765-dot-active { background: var(--w8765-primary); width: 18px; border-radius: 4px; }

/* Section titles */
.w8765-section { margin-bottom: 22px; }
.w8765-h1 {
  font-size: 2rem; font-weight: 800; color: var(--w8765-gold);
  margin-bottom: 8px; line-height: 1.3;
}
.w8765-h2 {
  font-size: 1.7rem; font-weight: 700; color: var(--w8765-primary);
  margin: 16px 0 8px; border-left: 4px solid var(--w8765-gold);
  padding-left: 10px;
}
.w8765-h3 { font-size: 1.45rem; color: var(--w8765-gold); margin: 12px 0 6px; }
.w8765-p { margin-bottom: 10px; color: #e8e8e8; }
.w8765-p a { color: var(--w8765-primary); font-weight: 700; text-decoration: none; }
.w8765-p a:hover { text-decoration: underline; }

/* Filter tabs */
.w8765-filter { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 10px; }
.w8765-filter-tab {
  flex: 0 0 auto; padding: 6px 12px; border-radius: 16px;
  background: var(--w8765-card); color: var(--w8765-text);
  font-size: 1.2rem; cursor: pointer; border: 1px solid #555; white-space: nowrap;
}
.w8765-filter-active { background: var(--w8765-primary); color: #1f1f1f; border-color: var(--w8765-gold); font-weight: 700; }

/* Game grid */
.w8765-game-group { margin-bottom: 20px; }
.w8765-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;
}
.w8765-gamecard {
  display: block; text-decoration: none; color: inherit;
  background: var(--w8765-card); border-radius: 8px; padding: 6px;
  text-align: center; transition: transform .15s, box-shadow .15s;
  border: 1px solid #555;
}
.w8765-gamecard:active { transform: scale(.95); }
.w8765-gamecard img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 6px; }
.w8765-gamecard span {
  display: block; font-size: 1.05rem; color: var(--w8765-text);
  margin-top: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* Cards / features */
.w8765-card {
  background: var(--w8765-card); border-radius: var(--w8765-radius);
  padding: 14px; margin-bottom: 12px; border: 1px solid #555;
}
.w8765-card-gold { border-left: 4px solid var(--w8765-gold); }
.w8765-card-orange { border-left: 4px solid var(--w8765-primary); }
.w8765-feature { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 10px; }
.w8765-feature .w8765-ico { color: var(--w8765-primary); font-size: 2.2rem; flex: 0 0 auto; }
.w8765-feature h3 { font-size: 1.35rem; color: var(--w8765-gold); margin-bottom: 2px; }
.w8765-feature p { font-size: 1.25rem; color: var(--w8765-muted); }

/* CTA buttons */
.w8765-cta {
  display: inline-block; text-decoration: none; cursor: pointer;
  background: linear-gradient(90deg, var(--w8765-danger), var(--w8765-primary));
  color: #fff; font-weight: 800; font-size: 1.4rem;
  padding: 12px 22px; border-radius: 26px; text-align: center;
  box-shadow: 0 3px 10px rgba(255,165,0,.4);
}
.w8765-cta:active { transform: scale(.96); }
.w8765-cta-gold { background: linear-gradient(90deg, var(--w8765-gold), var(--w8765-primary)); color: #1f1f1f; }
.w8765-cta-row { display: flex; gap: 10px; flex-wrap: wrap; margin: 12px 0; }

/* Lists */
.w8765-list { list-style: none; padding-left: 0; }
.w8765-list li { padding: 6px 0 6px 22px; position: relative; font-size: 1.3rem; }
.w8765-list li::before { content: "▸"; color: var(--w8765-primary); position: absolute; left: 4px; }

/* Testimonials / winners */
.w8765-review { background: var(--w8765-card2); border-radius: 8px; padding: 12px; margin-bottom: 10px; }
.w8765-review .w8765-name { color: var(--w8765-gold); font-weight: 700; }
.w8765-stars { color: var(--w8765-gold); font-size: 1.3rem; }
.w8765-winner {
  display: flex; justify-content: space-between; align-items: center;
  padding: 8px 10px; background: var(--w8765-card); border-radius: 6px; margin-bottom: 6px;
}
.w8765-winner .w8765-amt { color: var(--w8765-gold); font-weight: 800; }

/* Payment / badges */
.w8765-badges { display: flex; flex-wrap: wrap; gap: 8px; }
.w8765-badge {
  background: var(--w8765-card); border: 1px solid var(--w8765-primary);
  border-radius: 6px; padding: 6px 10px; font-size: 1.2rem; color: var(--w8765-text);
}

/* RTP table */
.w8765-table { width: 100%; border-collapse: collapse; font-size: 1.2rem; }
.w8765-table th, .w8765-table td { padding: 8px; border-bottom: 1px solid #555; text-align: left; }
.w8765-table th { color: var(--w8765-gold); background: #333; }
.w8765-table td span { color: var(--w8765-primary); font-weight: 700; }

/* Footer */
.w8765-footer {
  background: #1f1f1f; border-top: 2px solid var(--w8765-primary);
  padding: 18px 14px 90px; margin-top: 20px;
}
.w8765-footer p { color: var(--w8765-muted); font-size: 1.25rem; margin-bottom: 10px; }
.w8765-footer-links { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.w8765-footer-links a {
  flex: 1 1 auto; text-align: center; text-decoration: none;
  background: var(--w8765-card); color: var(--w8765-text);
  padding: 7px 8px; border-radius: 6px; font-size: 1.15rem;
  border: 1px solid #555; min-width: 44%;
}
.w8765-footer-links a:hover { color: var(--w8765-primary); border-color: var(--w8765-primary); }
.w8765-footer-promos { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.w8765-footer-promos a {
  flex: 1 1 auto; text-align: center; cursor: pointer;
  background: linear-gradient(90deg, var(--w8765-danger), var(--w8765-primary));
  color: #fff; padding: 9px; border-radius: 6px; font-size: 1.2rem; font-weight: 700;
  text-decoration: none; min-width: 45%;
}
.w8765-copy { color: #888; font-size: 1.1rem; text-align: center; border-top: 1px solid #333; padding-top: 10px; }

/* Mobile bottom nav */
.w8765-bottomNav {
  position: fixed; bottom: 0; left: 0; right: 0;
  height: var(--w8765-bottom-h); background: #1a1a1a;
  border-top: 2px solid var(--w8765-primary);
  display: flex; justify-content: space-around; align-items: center;
  z-index: 1000; max-width: 430px; margin: 0 auto;
}
.w8765-bottomNav a, .w8765-bottomNav button {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px; background: none; border: none; color: var(--w8765-muted);
  text-decoration: none; font-size: 1rem; min-height: 60px; min-width: 60px;
  transition: color .15s, transform .15s;
}
.w8765-bottomNav a .material-icons,
.w8765-bottomNav a .w8765-icn,
.w8765-bottomNav button .w8765-icn { font-size: 24px; }
.w8765-bottomNav a:active, .w8765-bottomNav button:active { transform: scale(.9); color: var(--w8765-primary); }
.w8765-bottomNav .w8765-active { color: var(--w8765-primary); }
.w8765-bottomNav .w8765-badge-dot {
  position: relative;
}
.w8765-bottomNav .w8765-badge-dot::after {
  content: "1"; position: absolute; top: -2px; right: 18px;
  background: var(--w8765-danger); color: #fff; border-radius: 50%;
  width: 16px; height: 16px; font-size: 1rem; display: flex;
  align-items: center; justify-content: center;
}

/* Desktop: hide bottom nav */
@media (min-width: 769px) {
  .w8765-bottomNav { display: none; }
  .w8765-footer { padding-bottom: 24px; }
}

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