/* =============================================================
   ok-live.cfd - Core stylesheet (class prefix: w97b9-)
   Mobile-first HTML5 gaming site. Max content width: 430px.
   Color palette: #F5DEB3 | #98FB98 | #E9ECEF | #7FFF00 | #8B7355 | #1A1A1A
   ============================================================= */

:root {
  --w97b9-primary: #7FFF00;
  --w97b9-primary-dark: #5fbf00;
  --w97b9-secondary: #98FB98;
  --w97b9-cream: #F5DEB3;
  --w97b9-brown: #8B7355;
  --w97b9-light: #E9ECEF;
  --w97b9-bg: #1A1A1A;
  --w97b9-bg-2: #232323;
  --w97b9-bg-3: #2e2e2e;
  --w97b9-text: #f3f3f3;
  --w97b9-text-dim: #c8c8c8;
  --w97b9-gold: #f5c542;
  --w97b9-red: #ff4d4d;
  --w97b9-radius: 14px;
  --w97b9-radius-sm: 10px;
  --w97b9-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
  --w97b9-shadow-glow: 0 0 24px rgba(127, 255, 0, 0.35);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 62.5%; -webkit-text-size-adjust: 100%; }
body {
  font-family: "Segoe UI", "Be Vietnam Pro", Roboto, system-ui, -apple-system, Arial, sans-serif;
  background: var(--w97b9-bg);
  color: var(--w97b9-text);
  line-height: 1.5rem;
  font-size: 1.4rem;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--w97b9-primary); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--w97b9-secondary); }

/* ---------- Layout containers ---------- */
.w97b9-container {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  padding: 0 14px;
}
.w97b9-wrapper { width: 100%; max-width: 430px; margin: 0 auto; }
.w97b9-section { padding: 26px 0; }
.w97b9-section--alt { background: var(--w97b9-bg-2); }

/* ---------- Header ---------- */
.w97b9-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(26, 26, 26, 0.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(127, 255, 0, 0.18);
  transition: box-shadow .25s ease, background .25s ease;
}
.w97b9-header.w97b9-scrolled { box-shadow: 0 4px 16px rgba(0, 0, 0, 0.55); }
.w97b9-header-inner {
  max-width: 430px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 14px;
  gap: 8px;
}
.w97b9-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 1.6rem;
  color: var(--w97b9-text);
}
.w97b9-logo img { width: 28px; height: 28px; border-radius: 6px; }
.w97b9-logo .w97b9-logo-accent { color: var(--w97b9-primary); }
.w97b9-header-actions { display: flex; align-items: center; gap: 8px; }
.w97b9-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: none;
  cursor: pointer;
  font-weight: 600;
  font-size: 1.3rem;
  padding: 8px 14px;
  border-radius: 999px;
  transition: transform .15s ease, box-shadow .15s ease, background .2s ease;
  min-height: 36px;
  text-decoration: none;
}
.w97b9-btn:active { transform: scale(0.96); }
.w97b9-btn--primary {
  background: linear-gradient(135deg, var(--w97b9-primary), var(--w97b9-secondary));
  color: #112200;
  box-shadow: var(--w97b9-shadow-glow);
}
.w97b9-btn--secondary {
  background: transparent;
  color: var(--w97b9-text);
  border: 1.5px solid var(--w97b9-primary);
}
.w97b9-btn--gold {
  background: linear-gradient(135deg, var(--w97b9-gold), #ffcf6b);
  color: #2a1d00;
}
.w97b9-btn--ghost {
  background: var(--w97b9-bg-3);
  color: var(--w97b9-text);
}
.w97b9-btn--lg { padding: 12px 22px; font-size: 1.5rem; min-height: 44px; }
.w97b9-btn--block { display: flex; width: 100%; }

.w97b9-menu-toggle {
  background: transparent;
  border: none;
  color: var(--w97b9-text);
  font-size: 2rem;
  cursor: pointer;
  padding: 4px 8px;
  line-height: 1;
}

/* ---------- Mobile menu drawer ---------- */
.w97b9-mobile-menu {
  position: fixed;
  top: 0; right: -100%;
  width: 80%;
  max-width: 320px;
  height: 100vh;
  background: var(--w97b9-bg-2);
  z-index: 9999;
  padding: 70px 18px 30px;
  overflow-y: auto;
  transition: right .3s ease;
  border-left: 1px solid rgba(127, 255, 0, 0.2);
}
.w97b9-mobile-menu.w97b9-open { right: 0; }
.w97b9-mobile-menu .w97b9-nav-link {
  display: block;
  padding: 12px 14px;
  border-radius: var(--w97b9-radius-sm);
  color: var(--w97b9-text);
  font-size: 1.45rem;
  margin-bottom: 6px;
  border: 1px solid transparent;
}
.w97b9-mobile-menu .w97b9-nav-link:hover,
.w97b9-mobile-menu .w97b9-nav-link.w97b9-current {
  background: var(--w97b9-bg-3);
  border-color: rgba(127, 255, 0, 0.25);
  color: var(--w97b9-primary);
}
.w97b9-mobile-close {
  position: absolute;
  top: 16px; right: 16px;
  background: transparent;
  border: none;
  color: var(--w97b9-text);
  font-size: 2rem;
  cursor: pointer;
}
.w97b9-overlay {
  position: fixed; inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 9998;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
}
.w97b9-overlay.w97b9-open { opacity: 1; pointer-events: auto; }

/* ---------- Main ---------- */
.w97b9-main { padding-top: 60px; }
@media (max-width: 768px) {
  .w97b9-main { padding-bottom: 88px; }
}

/* ---------- Hero carousel ---------- */
.w97b9-carousel {
  position: relative;
  margin: 14px 0 6px;
  border-radius: var(--w97b9-radius);
  overflow: hidden;
  box-shadow: var(--w97b9-shadow);
}
.w97b9-slide {
  position: relative;
  display: none;
  width: 100%;
  aspect-ratio: 16 / 9;
}
.w97b9-slide.w97b9-active { display: block; }
.w97b9-slide img { width: 100%; height: 100%; object-fit: cover; }
.w97b9-slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 30%, rgba(0,0,0,0.78) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 16px;
  cursor: pointer;
}
.w97b9-slide-title {
  font-size: 1.7rem;
  font-weight: 700;
  margin-bottom: 4px;
  color: #fff;
}
.w97b9-slide-sub {
  font-size: 1.25rem;
  color: var(--w97b9-cream);
  margin-bottom: 8px;
}
.w97b9-carousel-dots {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 5;
}
.w97b9-carousel-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  border: none;
  cursor: pointer;
  transition: background .2s ease, transform .2s ease;
}
.w97b9-carousel-dot.w97b9-active {
  background: var(--w97b9-primary);
  transform: scale(1.3);
}

/* ---------- Hero text ---------- */
.w97b9-hero-text { padding: 18px 14px 6px; text-align: center; }
.w97b9-h1 {
  font-size: 2.4rem;
  font-weight: 800;
  line-height: 1.25;
  color: #fff;
  margin-bottom: 10px;
}
.w97b9-h1 .w97b9-accent { color: var(--w97b9-primary); }
.w97b9-lead {
  font-size: 1.4rem;
  color: var(--w97b9-text-dim);
  margin-bottom: 14px;
}

/* ---------- Section heading ---------- */
.w97b9-section-head { margin-bottom: 14px; padding: 0 14px; }
.w97b9-h2 {
  font-size: 1.9rem;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
}
.w97b9-h2 .w97b9-h2-icon { color: var(--w97b9-primary); }
.w97b9-h2 .w97b9-accent { color: var(--w97b9-primary); }
.w97b9-h3 {
  font-size: 1.55rem;
  font-weight: 600;
  color: var(--w97b9-cream);
  margin-bottom: 8px;
}
.w97b9-section-sub { color: var(--w97b9-text-dim); font-size: 1.3rem; margin-top: 4px; }

/* ---------- Game grids ---------- */
.w97b9-cat-block { padding: 18px 0; }
.w97b9-cat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  padding: 0 14px;
}
.w97b9-cat-title {
  font-size: 1.55rem;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
}
.w97b9-cat-title .w97b9-cat-bar {
  display: inline-block;
  width: 4px; height: 20px;
  background: var(--w97b9-primary);
  border-radius: 2px;
}
.w97b9-cat-link { font-size: 1.2rem; color: var(--w97b9-cream); }

.w97b9-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 0 14px;
}
.w97b9-grid--4 { grid-template-columns: repeat(4, 1fr); }
.w97b9-card {
  background: var(--w97b9-bg-2);
  border: 1px solid rgba(127, 255, 0, 0.08);
  border-radius: var(--w97b9-radius-sm);
  overflow: hidden;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
  display: block;
  text-align: center;
  padding-bottom: 6px;
}
.w97b9-card:hover {
  transform: translateY(-2px);
  border-color: rgba(127, 255, 0, 0.35);
  box-shadow: var(--w97b9-shadow);
}
.w97b9-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: #111;
}
.w97b9-card-name {
  font-size: 1.05rem;
  color: var(--w97b9-text-dim);
  padding: 4px 4px 6px;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  min-height: 28px;
}

/* ---------- Feature / promo cards ---------- */
.w97b9-cards-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  padding: 0 14px;
}
.w97b9-feature-card {
  background: linear-gradient(160deg, var(--w97b9-bg-3), var(--w97b9-bg-2));
  border: 1px solid rgba(127, 255, 0, 0.15);
  border-radius: var(--w97b9-radius);
  padding: 14px 12px;
  text-align: center;
}
.w97b9-feature-card .w97b9-ico {
  font-size: 2.4rem;
  color: var(--w97b9-primary);
  margin-bottom: 6px;
}
.w97b9-feature-card h3 { font-size: 1.4rem; color: #fff; margin-bottom: 4px; }
.w97b9-feature-card p { font-size: 1.15rem; color: var(--w97b9-text-dim); }

/* ---------- Steps / list ---------- */
.w97b9-steps { padding: 0 14px; }
.w97b9-step {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 10px 0;
  border-bottom: 1px dashed rgba(255,255,255,0.08);
}
.w97b9-step:last-child { border-bottom: none; }
.w97b9-step-num {
  flex: 0 0 30px;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--w97b9-primary), var(--w97b9-secondary));
  color: #112200;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
}
.w97b9-step-body h4 { font-size: 1.35rem; color: #fff; margin-bottom: 3px; }
.w97b9-step-body p { font-size: 1.2rem; color: var(--w97b9-text-dim); }

/* ---------- FAQ ---------- */
.w97b9-faq { padding: 0 14px; }
.w97b9-faq-item {
  background: var(--w97b9-bg-2);
  border-radius: var(--w97b9-radius-sm);
  margin-bottom: 8px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.06);
}
.w97b9-faq-q {
  padding: 12px 14px;
  cursor: pointer;
  font-weight: 600;
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  font-size: 1.3rem;
}
.w97b9-faq-q .w97b9-faq-icon { transition: transform .2s ease; color: var(--w97b9-primary); }
.w97b9-faq-item.w97b9-open .w97b9-faq-icon { transform: rotate(180deg); }
.w97b9-faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease, padding .3s ease;
  padding: 0 14px;
  color: var(--w97b9-text-dim);
  font-size: 1.22rem;
}
.w97b9-faq-item.w97b9-open .w97b9-faq-a {
  max-height: 600px;
  padding: 0 14px 12px;
}

/* ---------- Promo banner CTA ---------- */
.w97b9-cta {
  margin: 14px;
  padding: 18px;
  background: linear-gradient(135deg, rgba(127, 255, 0, 0.18), rgba(152, 251, 152, 0.1));
  border: 1px solid rgba(127, 255, 0, 0.35);
  border-radius: var(--w97b9-radius);
  text-align: center;
}
.w97b9-cta h3 { color: #fff; margin-bottom: 6px; font-size: 1.5rem; }
.w97b9-cta p { color: var(--w97b9-text-dim); margin-bottom: 12px; font-size: 1.25rem; }

/* ---------- Testimonial ---------- */
.w97b9-testimonials { padding: 0 14px; display: grid; gap: 10px; }
.w97b9-testi {
  background: var(--w97b9-bg-2);
  border-radius: var(--w97b9-radius-sm);
  padding: 12px 14px;
  border-left: 3px solid var(--w97b9-primary);
}
.w97b9-testi p { font-style: italic; color: var(--w97b9-text); font-size: 1.22rem; }
.w97b9-testi .w97b9-testi-by { margin-top: 6px; font-size: 1.1rem; color: var(--w97b9-cream); }

/* ---------- Winners ---------- */
.w97b9-winners { padding: 0 14px; }
.w97b9-winner-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 10px;
  background: var(--w97b9-bg-2);
  border-radius: var(--w97b9-radius-sm);
  margin-bottom: 6px;
  font-size: 1.2rem;
}
.w97b9-winner-name { color: #fff; font-weight: 600; }
.w97b9-winner-game { color: var(--w97b9-text-dim); font-size: 1.1rem; }
.w97b9-winner-amt { color: var(--w97b9-gold); font-weight: 700; }

/* ---------- Payment ---------- */
.w97b9-pay-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 0 14px;
}
.w97b9-pay {
  background: var(--w97b9-bg-2);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--w97b9-radius-sm);
  padding: 10px 6px;
  text-align: center;
  font-size: 1.1rem;
  color: var(--w97b9-text-dim);
}
.w97b9-pay .w97b9-pay-ico { font-size: 1.8rem; color: var(--w97b9-cream); display: block; margin-bottom: 4px; }

/* ---------- Prose / SEO content ---------- */
.w97b9-prose { padding: 0 14px; color: var(--w97b9-text); font-size: 1.28rem; line-height: 1.65; }
.w97b9-prose h2 { color: #fff; font-size: 1.7rem; margin: 14px 0 6px; }
.w97b9-prose h3 { color: var(--w97b9-cream); font-size: 1.4rem; margin: 10px 0 4px; }
.w97b9-prose p { margin-bottom: 8px; color: var(--w97b9-text-dim); }
.w97b9-prose a { color: var(--w97b9-primary); font-weight: 600; }
.w97b9-prose ul { padding-left: 18px; margin-bottom: 8px; }
.w97b9-prose li { margin-bottom: 4px; color: var(--w97b9-text-dim); }

/* ---------- Footer ---------- */
.w97b9-footer {
  background: #111;
  padding: 24px 14px 20px;
  border-top: 1px solid rgba(127, 255, 0, 0.15);
  margin-top: 18px;
}
.w97b9-footer h4 { color: #fff; font-size: 1.35rem; margin-bottom: 8px; }
.w97b9-footer p { color: var(--w97b9-text-dim); font-size: 1.18rem; margin-bottom: 10px; }
.w97b9-footer-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px 10px;
  margin-bottom: 12px;
}
.w97b9-footer-links a { font-size: 1.15rem; color: var(--w97b9-text-dim); }
.w97b9-footer-promo {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 12px;
}
.w97b9-footer-promo .w97b9-btn { flex: 1 1 auto; font-size: 1.15rem; padding: 7px 12px; }
.w97b9-footer-copy { font-size: 1.1rem; color: #777; text-align: center; border-top: 1px solid rgba(255,255,255,0.06); padding-top: 12px; }

/* ---------- Bottom nav ---------- */
.w97b9-bottom-nav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: 62px;
  background: linear-gradient(180deg, #1f1f1f, #111);
  border-top: 1px solid rgba(127, 255, 0, 0.25);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
  box-shadow: 0 -4px 14px rgba(0, 0, 0, 0.5);
}
.w97b9-bottom-nav .w97b9-bn-item {
  flex: 1;
  min-width: 60px;
  min-height: 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  background: transparent;
  border: none;
  color: var(--w97b9-text-dim);
  font-size: 1.05rem;
  cursor: pointer;
  transition: color .2s ease, transform .15s ease;
  text-decoration: none;
  padding: 4px 2px;
}
.w97b9-bottom-nav .w97b9-bn-item:active { transform: scale(0.92); }
.w97b9-bottom-nav .w97b9-bn-item .w97b9-bn-ico { font-size: 2.2rem; line-height: 1; }
.w97b9-bottom-nav .w97b9-bn-item.w97b9-bn-active { color: var(--w97b9-primary); }
.w97b9-bottom-nav .w97b9-bn-item.w97b9-bn-active .w97b9-bn-ico { color: var(--w97b9-primary); }
.w97b9-bottom-nav .w97b9-bn-badge {
  position: absolute;
  top: 6px;
  right: 18px;
  background: var(--w97b9-red);
  color: #fff;
  font-size: 0.85rem;
  padding: 1px 5px;
  border-radius: 8px;
  font-weight: 700;
}
.w97b9-bn-item { position: relative; }

/* ---------- Back to top ---------- */
.w97b9-to-top {
  position: fixed;
  bottom: 78px;
  right: 14px;
  width: 42px; height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--w97b9-primary), var(--w97b9-secondary));
  color: #112200;
  border: none;
  font-size: 1.8rem;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  z-index: 999;
  transition: opacity .25s ease, transform .15s ease;
  box-shadow: var(--w97b9-shadow-glow);
}
.w97b9-to-top.w97b9-show { opacity: 1; pointer-events: auto; }
.w97b9-to-top:active { transform: scale(0.9); }

/* ---------- Toast ---------- */
.w97b9-toast {
  position: fixed;
  bottom: 90px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(127, 255, 0, 0.95);
  color: #112200;
  padding: 8px 18px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1.25rem;
  opacity: 0;
  pointer-events: none;
  z-index: 9999;
  transition: opacity .25s ease;
}
.w97b9-toast.w97b9-show { opacity: 1; }

/* ---------- Reveal animation ---------- */
.w97b9-reveal { opacity: 0; transform: translateY(14px); transition: opacity .45s ease, transform .45s ease; }
.w97b9-reveal.w97b9-visible { opacity: 1; transform: translateY(0); }

/* ---------- RTP table ---------- */
.w97b9-rtp-table { width: 100%; border-collapse: collapse; margin: 6px 14px; max-width: calc(100% - 28px); font-size: 1.2rem; }
.w97b9-rtp-table th, .w97b9-rtp-table td { padding: 8px 10px; border-bottom: 1px solid rgba(255,255,255,0.08); text-align: left; }
.w97b9-rtp-table th { color: var(--w97b9-cream); font-weight: 600; }
.w97b9-rtp-table td { color: var(--w97b9-text-dim); }
.w97b9-rtp-table .w97b9-rtp-high { color: var(--w97b9-primary); font-weight: 700; }

/* ---------- Desktop ---------- */
@media (min-width: 769px) {
  .w97b9-bottom-nav { display: none; }
  .w97b9-container, .w97b9-wrapper, .w97b9-header-inner { max-width: 760px; }
  .w97b9-grid { grid-template-columns: repeat(6, 1fr); }
  .w97b9-grid--4 { grid-template-columns: repeat(8, 1fr); }
  .w97b9-pay-grid { grid-template-columns: repeat(6, 1fr); }
  .w97b9-cards-row { grid-template-columns: repeat(4, 1fr); }
  .w97b9-main { padding-bottom: 20px; }
}
