/* 99win app - core stylesheet (basefiles)
   Class prefix: w8b66-
   Palette: #2D2D2D (bg) | #5D5D5D (mid) | #00FF7F (accent)
   Mobile-first, max-width 430px. */

:root {
  --w8b66-bg: #2D2D2D;
  --w8b66-bg-2: #1f1f1f;
  --w8b66-mid: #5D5D5D;
  --w8b66-accent: #00FF7F;
  --w8b66-accent-2: #00cc66;
  --w8b66-text: #f5f5f5;
  --w8b66-text-dim: #c9c9c9;
  --w8b66-card: #3a3a3a;
  --w8b66-card-2: #444;
  --w8b66-border: rgba(0, 255, 127, 0.25);
  --w8b66-radius: 1.2rem;
  --w8b66-shadow: 0 4px 18px rgba(0, 0, 0, 0.45);
}

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

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

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

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

.w8b66-container { width: 100%; padding: 0 1.2rem; }
.w8b66-wrapper { max-width: 430px; margin: 0 auto; }

/* ===== Header ===== */
.w8b66-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: linear-gradient(180deg, #232323 0%, #2D2D2D 100%);
  border-bottom: 2px solid var(--w8b66-accent);
  box-shadow: var(--w8b66-shadow);
}
.w8b66-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 5.6rem;
  padding: 0 1rem;
  max-width: 430px;
  margin: 0 auto;
}
.w8b66-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--w8b66-text);
  font-weight: 800;
  font-size: 1.8rem;
  letter-spacing: 0.3px;
}
.w8b66-logo img { width: 3rem; height: 3rem; border-radius: 0.6rem; }
.w8b66-logo span { color: var(--w8b66-accent); }
.w8b66-header-actions { display: flex; align-items: center; gap: 0.6rem; }

.w8b66-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: none;
  border-radius: 0.8rem;
  padding: 0.7rem 1.2rem;
  font-size: 1.3rem;
  font-weight: 700;
  cursor: pointer;
  min-height: 3.6rem;
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}
.w8b66-btn:hover { text-decoration: none; }
.w8b66-btn:active { transform: scale(0.95); }
.w8b66-btn-login {
  background: transparent;
  color: var(--w8b66-text);
  border: 1px solid var(--w8b66-accent);
}
.w8b66-btn-register {
  background: linear-gradient(135deg, var(--w8b66-accent) 0%, var(--w8b66-accent-2) 100%);
  color: #10200f;
  box-shadow: 0 3px 10px rgba(0, 255, 127, 0.35);
}

.w8b66-menu-toggle {
  background: transparent;
  border: none;
  color: var(--w8b66-text);
  font-size: 2.2rem;
  cursor: pointer;
  min-width: 4.4rem;
  min-height: 4.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ===== Mobile/expandable menu ===== */
.w8b66-mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 78%;
  max-width: 320px;
  height: 100vh;
  background: var(--w8b66-bg-2);
  z-index: 9999;
  padding: 2rem 1.4rem;
  transition: right 0.28s ease;
  overflow-y: auto;
  border-left: 2px solid var(--w8b66-accent);
}
.w8b66-mobile-menu.w8b66-menu-open { right: 0; }
.w8b66-menu-close {
  background: transparent;
  border: none;
  color: var(--w8b66-text);
  font-size: 2rem;
  float: right;
  cursor: pointer;
  min-width: 4.4rem;
  min-height: 4.4rem;
}
.w8b66-menu-title {
  color: var(--w8b66-accent);
  font-size: 1.6rem;
  font-weight: 800;
  margin: 1.4rem 0 1rem;
}
.w8b66-menu-list { list-style: none; }
.w8b66-menu-list li { border-bottom: 1px solid #333; }
.w8b66-menu-list a {
  display: block;
  padding: 1.2rem 0.4rem;
  color: var(--w8b66-text);
  font-size: 1.5rem;
}
.w8b66-menu-list a:hover { color: var(--w8b66-accent); text-decoration: none; }
.w8b66-menu-cta {
  margin-top: 1.4rem;
  width: 100%;
  font-size: 1.5rem;
  padding: 1rem;
}
.w8b66-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 9998;
}
.w8b66-overlay.w8b66-menu-open { display: block; }

/* ===== Hero / Carousel ===== */
.w8b66-carousel {
  position: relative;
  margin: 1rem auto;
  max-width: 430px;
  border-radius: var(--w8b66-radius);
  overflow: hidden;
  box-shadow: var(--w8b66-shadow);
}
.w8b66-slide {
  display: none;
  position: relative;
  cursor: pointer;
}
.w8b66-slide.w8b66-slide-active { display: block; }
.w8b66-slide img { width: 100%; height: auto; }
.w8b66-slide-caption {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  background: rgba(0,0,0,0.55);
  padding: 0.6rem 1rem;
  border-radius: 0.6rem;
  color: var(--w8b66-text);
  font-size: 1.3rem;
  font-weight: 700;
}
.w8b66-dots {
  position: absolute;
  bottom: 0.8rem;
  right: 1rem;
  display: flex;
  gap: 0.4rem;
}
.w8b66-dot {
  width: 0.8rem;
  height: 0.8rem;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  cursor: pointer;
  border: none;
}
.w8b66-dot.w8b66-dot-active { background: var(--w8b66-accent); }

/* ===== Sections ===== */
.w8b66-section {
  padding: 1.6rem 1.2rem;
}
.w8b66-section-title {
  font-size: 1.9rem;
  font-weight: 800;
  margin-bottom: 0.8rem;
  color: var(--w8b66-text);
  border-left: 4px solid var(--w8b66-accent);
  padding-left: 0.8rem;
}
.w8b66-section-title em { color: var(--w8b66-accent); font-style: normal; }
.w8b66-lead { color: var(--w8b66-text-dim); font-size: 1.45rem; margin-bottom: 1rem; }

/* ===== Game grid ===== */
.w8b66-cat-anchor { scroll-margin-top: 6.5rem; }
.w8b66-cat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 1.4rem 0 0.8rem;
}
.w8b66-cat-head h2 {
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--w8b66-accent);
}
.w8b66-cat-count {
  font-size: 1.2rem;
  color: var(--w8b66-text-dim);
}
.w8b66-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
}
.w8b66-game {
  background: var(--w8b66-card);
  border-radius: 0.8rem;
  overflow: hidden;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.15s ease, border-color 0.15s ease;
  position: relative;
}
.w8b66-game:hover { border-color: var(--w8b66-accent); text-decoration: none; transform: translateY(-2px); }
.w8b66-game:active { transform: scale(0.96); }
.w8b66-game img { width: 100%; aspect-ratio: 1/1; object-fit: cover; }
.w8b66-game-name {
  font-size: 1.15rem;
  color: var(--w8b66-text);
  padding: 0.5rem 0.4rem;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.w8b66-game-badge {
  position: absolute;
  top: 0.4rem;
  left: 0.4rem;
  background: var(--w8b66-accent);
  color: #10200f;
  font-size: 0.95rem;
  font-weight: 800;
  padding: 0.15rem 0.5rem;
  border-radius: 0.4rem;
}

/* ===== Cards / features ===== */
.w8b66-card {
  background: var(--w8b66-card);
  border-radius: var(--w8b66-radius);
  padding: 1.2rem;
  margin-bottom: 1rem;
  border: 1px solid #333;
}
.w8b66-card h3 { color: var(--w8b66-accent); font-size: 1.5rem; margin-bottom: 0.5rem; }
.w8b66-card p { color: var(--w8b66-text-dim); font-size: 1.35rem; }

.w8b66-feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.8rem;
  margin: 1rem 0;
}
.w8b66-feature {
  background: var(--w8b66-card);
  border-radius: 1rem;
  padding: 1.2rem 0.8rem;
  text-align: center;
  border: 1px solid #333;
}
.w8b66-feature .w8b66-ico {
  font-size: 2.4rem;
  color: var(--w8b66-accent);
  margin-bottom: 0.4rem;
}
.w8b66-feature h4 { font-size: 1.3rem; color: var(--w8b66-text); margin-bottom: 0.3rem; }
.w8b66-feature p { font-size: 1.2rem; color: var(--w8b66-text-dim); }

/* ===== CTA banner ===== */
.w8b66-cta {
  background: linear-gradient(135deg, #1a1a1a 0%, #2D2D2D 60%, #003319 100%);
  border: 1px solid var(--w8b66-border);
  border-radius: var(--w8b66-radius);
  padding: 1.6rem;
  text-align: center;
  margin: 1.4rem 0;
}
.w8b66-cta h2 { color: var(--w8b66-accent); font-size: 1.8rem; margin-bottom: 0.5rem; }
.w8b66-cta p { color: var(--w8b66-text-dim); margin-bottom: 1rem; }
.w8b66-cta .w8b66-btn { font-size: 1.5rem; padding: 1rem 2rem; }

/* ===== Testimonials / winners ===== */
.w8b66-tlist { display: flex; flex-direction: column; gap: 0.6rem; }
.w8b66-titem {
  background: var(--w8b66-card);
  border-left: 3px solid var(--w8b66-accent);
  border-radius: 0.6rem;
  padding: 0.8rem 1rem;
  font-size: 1.3rem;
  color: var(--w8b66-text);
}
.w8b66-titem strong { color: var(--w8b66-accent); }

/* ===== Payment chips ===== */
.w8b66-payrow { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 0.6rem; }
.w8b66-pay {
  background: var(--w8b66-card-2);
  border: 1px solid #555;
  border-radius: 0.6rem;
  padding: 0.5rem 0.9rem;
  font-size: 1.2rem;
  color: var(--w8b66-text);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

/* ===== Footer ===== */
.w8b66-footer { background: var(--w8b66-bg-2); border-top: 2px solid var(--w8b66-accent); padding: 1.6rem 1.2rem 9rem; margin-top: 1.6rem; }
.w8b66-footer-about { color: var(--w8b66-text-dim); font-size: 1.3rem; margin-bottom: 1rem; }
.w8b66-footer-links { display: flex; flex-wrap: wrap; gap: 0.4rem 1rem; margin-bottom: 1rem; }
.w8b66-footer-links a { color: var(--w8b66-text-dim); font-size: 1.3rem; }
.w8b66-footer-links a:hover { color: var(--w8b66-accent); }
.w8b66-footer-promo { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 1rem 0; }
.w8b66-footer-promo .w8b66-btn { font-size: 1.3rem; padding: 0.7rem 1rem; }
.w8b66-footer-copy { color: #888; font-size: 1.2rem; border-top: 1px solid #333; padding-top: 1rem; }

/* ===== Bottom nav ===== */
.w8b66-bottomnav { position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: 430px; height: 6.2rem; background: #1c1c1c; border-top: 2px solid var(--w8b66-accent); display: flex; justify-content: space-around; align-items: stretch; z-index: 1000; box-shadow: 0 -4px 14px rgba(0,0,0,0.5); }
.w8b66-bottomnav-btn { flex: 1; min-width: 60px; min-height: 60px; background: transparent; border: none; color: var(--w8b66-text-dim); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.2rem; cursor: pointer; font-size: 1.1rem; transition: color 0.15s ease, transform 0.15s ease; text-decoration: none; }
.w8b66-bottomnav-btn .w8b66-ico { font-size: 2.2rem; line-height: 1; }
.w8b66-bottomnav-btn:active { transform: scale(0.9); }
.w8b66-bottomnav-btn:hover { color: var(--w8b66-accent); text-decoration: none; }
.w8b66-bottomnav-active { color: var(--w8b66-accent); }
.w8b66-bottomnav-active .w8b66-ico { filter: drop-shadow(0 0 4px rgba(0,255,127,0.6)); }

/* ===== Back to top ===== */
.w8b66-totop { position: fixed; right: 1.2rem; bottom: 7.4rem; width: 4.2rem; height: 4.2rem; border-radius: 50%; background: var(--w8b66-accent); color: #10200f; border: none; font-size: 1.8rem; cursor: pointer; display: none; align-items: center; justify-content: center; z-index: 999; box-shadow: 0 4px 12px rgba(0,255,127,0.4); }
.w8b66-totop.w8b66-totop-show { display: flex; }
main { padding-bottom: 80px; }

/* ===== Desktop ===== */
@media (min-width: 769px) { body { max-width: 480px; } .w8b66-bottomnav { display: none; } main { padding-bottom: 2rem; } .w8b66-footer { padding-bottom: 2rem; } }
