/* ============================================================
 * bingo-game.css
 * Mobile-first stylesheet for bingogame.homes
 * All custom classes use the s98b- prefix for namespacing.
 * Palette: #F0F8FF | #5F9EA0 | #E0FFFF | #26A69A | #CED4DA | #3A3A3A
 * ============================================================ */

:root {
  --s98b-bg: #F0F8FF;
  --s98b-bg-deep: #E0FFFF;
  --s98b-primary: #26A69A;
  --s98b-primary-dark: #1f8a80;
  --s98b-accent: #5F9EA0;
  --s98b-text: #3A3A3A;
  --s98b-text-soft: #5d6770;
  --s98b-muted: #CED4DA;
  --s98b-card: #ffffff;
  --s98b-dark: #0f3a3a;
  --s98b-gold: #d99e2b;
  --s98b-shadow: 0 4px 18px rgba(38, 166, 154, 0.18);
  --s98b-radius: 14px;
  --s98b-radius-sm: 9px;
}

/* Reset */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 62.5%; -webkit-text-size-adjust: 100%; }
body {
  font-family: "Segoe UI", "Helvetica Neue", Arial, "PingFang SC", sans-serif;
  background: linear-gradient(180deg, var(--s98b-bg) 0%, var(--s98b-bg-deep) 100%);
  color: var(--s98b-text);
  line-height: 1.5rem;
  font-size: 1.4rem;
  min-height: 100vh;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: var(--s98b-primary-dark); text-decoration: none; }
a:hover { color: var(--s98b-primary); }

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

/* ============ Header ============ */
.s98b-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: linear-gradient(135deg, #0f3a3a 0%, #26A69A 100%);
  color: #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,0.18);
}
.s98b-header-inner {
  max-width: 430px;
  margin: 0 auto;
  padding: 0.7rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 52px;
}
.s98b-logo {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: #fff;
  font-weight: 700;
  font-size: 1.6rem;
  flex: 1;
  min-width: 0;
}
.s98b-logo img {
  width: 28px; height: 28px;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.25);
}
.s98b-logo span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.s98b-logo b { color: #fff36b; }

.s98b-header-actions {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}
.s98b-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.6rem 1.1rem;
  font-size: 1.3rem;
  font-weight: 700;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .2s;
  min-height: 36px;
}
.s98b-btn:hover { transform: translateY(-1px); }
.s98b-btn-primary {
  background: linear-gradient(135deg, #ffd24a 0%, #ff9c2b 100%);
  color: #4a2c00;
  box-shadow: 0 3px 10px rgba(255,156,43,0.45);
}
.s98b-btn-ghost {
  background: rgba(255,255,255,0.12);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.35);
}
.s98b-icon-btn {
  background: rgba(255,255,255,0.12);
  border: none;
  color: #fff;
  width: 38px; height: 38px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.8rem;
}

/* ============ Mobile drawer menu ============ */
.s98b-menu-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.45);
  opacity: 0; visibility: hidden;
  transition: opacity .25s ease;
  z-index: 9998;
}
.s98b-overlay-show { opacity: 1; visibility: visible; }

.s98b-mobile-menu {
  position: fixed;
  top: 0; right: -85%;
  width: 80%; max-width: 320px;
  height: 100%;
  background: #0f3a3a;
  color: #fff;
  z-index: 9999;
  transition: right .28s ease;
  padding: 5rem 1.4rem 2rem;
  overflow-y: auto;
}
.s98b-menu-open { right: 0; }
.s98b-mobile-menu h3 {
  font-size: 1.3rem;
  color: #7ad9cf;
  margin: 1.4rem 0 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.s98b-mobile-menu a {
  display: block;
  padding: 0.85rem 0.4rem;
  color: #e6fffb;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  font-size: 1.4rem;
}
.s98b-mobile-menu a:hover { background: rgba(255,255,255,0.05); color: #fff36b; }
.s98b-menu-close {
  position: absolute;
  top: 1rem; right: 1rem;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 2.2rem;
  cursor: pointer;
}

/* ============ Main / sections ============ */
main.s98b-main {
  padding-top: 70px;
  padding-bottom: 90px;
}
.s98b-section {
  margin: 1.6rem 0;
  padding: 1.4rem 1.2rem;
  background: var(--s98b-card);
  border-radius: var(--s98b-radius);
  box-shadow: var(--s98b-shadow);
}
.s98b-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  gap: 0.6rem;
}
.s98b-section-head h2 {
  font-size: 1.7rem;
  color: var(--s98b-primary-dark);
  font-weight: 700;
}
.s98b-section-head .s98b-more {
  font-size: 1.2rem;
  color: var(--s98b-accent);
}
.s98b-lead {
  color: var(--s98b-text-soft);
  font-size: 1.35rem;
  margin: 0.4rem 0 1rem;
}

/* ============ Hero / Carousel ============ */
.s98b-hero {
  margin-top: 1.2rem;
}
#s98b-hero-slider {
  position: relative;
  border-radius: var(--s98b-radius);
  overflow: hidden;
  box-shadow: var(--s98b-shadow);
}
.s98b-slide {
  display: none;
  position: relative;
}
.s98b-slide-active { display: block; }
.s98b-slide img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.s98b-slide-cap {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 0.9rem 1.1rem;
  background: linear-gradient(0deg, rgba(15,58,58,0.92) 0%, rgba(15,58,58,0) 100%);
  color: #fff;
}
.s98b-slide-cap b { display: block; font-size: 1.5rem; color: #ffd24a; }
.s98b-slide-cap span { font-size: 1.2rem; color: #e6fffb; }
.s98b-slider-arrow {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,0.85);
  color: #0f3a3a;
  border: none;
  width: 30px; height: 30px;
  border-radius: 50%;
  font-weight: 700;
  cursor: pointer;
  font-size: 1.6rem;
  display: flex; align-items: center; justify-content: center;
}
.s98b-slider-arrow.s98b-prev { left: 8px; }
.s98b-slider-arrow.s98b-next { right: 8px; }
.s98b-slide-dots {
  display: flex; justify-content: center; gap: 6px;
  padding: 6px 0;
}
.s98b-slide-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--s98b-muted); cursor: pointer;
}
.s98b-dot-active { background: var(--s98b-primary); width: 18px; border-radius: 4px; }

/* ============ Filter tabs ============ */
.s98b-filters {
  display: flex; gap: 0.5rem;
  overflow-x: auto;
  padding: 0.5rem 0 1rem;
  -webkit-overflow-scrolling: touch;
}
.s98b-filter-tab {
  flex: 0 0 auto;
  padding: 0.5rem 1.1rem;
  border-radius: 999px;
  background: var(--s98b-bg);
  color: var(--s98b-text-soft);
  font-size: 1.25rem;
  font-weight: 600;
  border: 1px solid var(--s98b-muted);
  cursor: pointer;
  white-space: nowrap;
}
.s98b-filter-active {
  background: var(--s98b-primary);
  color: #fff;
  border-color: var(--s98b-primary);
}

/* ============ Game grid ============ */
.s98b-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}
.s98b-game-card {
  display: block;
  background: linear-gradient(160deg, #ffffff 0%, var(--s98b-bg-deep) 100%);
  border-radius: var(--s98b-radius-sm);
  overflow: hidden;
  border: 1px solid #e7eef0;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease;
  text-align: center;
}
.s98b-game-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(38,166,154,0.25);
}
.s98b-game-card .s98b-game-thumb {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #eef7f6;
  object-fit: cover;
}
.s98b-game-card .s98b-game-name {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--s98b-text);
  padding: 0.5rem 0.4rem 0.65rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.s98b-cat-title {
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--s98b-dark);
  margin: 1.3rem 0 0.8rem;
  padding-left: 0.6rem;
  border-left: 4px solid var(--s98b-primary);
}

/* ============ Promo CTA banner ============ */
.s98b-cta {
  background: linear-gradient(135deg, #26A69A 0%, #5F9EA0 100%);
  color: #fff;
  border-radius: var(--s98b-radius);
  padding: 1.3rem 1.2rem;
  margin: 1.6rem 0;
  text-align: center;
  box-shadow: var(--s98b-shadow);
}
.s98b-cta h3 { font-size: 1.7rem; margin-bottom: 0.4rem; color: #fff36b; }
.s98b-cta p { font-size: 1.25rem; margin-bottom: 0.9rem; color: #f0fffe; }
.s98b-cta .s98b-btn { background: #fff; color: var(--s98b-primary-dark); }

/* ============ Feature / Info cards ============ */
.s98b-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.7rem;
}
.s98b-feature {
  background: var(--s98b-bg);
  border-radius: var(--s98b-radius-sm);
  padding: 1rem 0.8rem;
  text-align: center;
  border: 1px solid #e1ecec;
}
.s98b-feature .s98b-feature-ic {
  font-size: 2.2rem;
  color: var(--s98b-primary);
  margin-bottom: 0.4rem;
}
.s98b-feature h4 { font-size: 1.25rem; color: var(--s98b-dark); margin-bottom: 0.3rem; }
.s98b-feature p { font-size: 1.15rem; color: var(--s98b-text-soft); }

/* ============ Steps ============ */
.s98b-steps { counter-reset: step; }
.s98b-step {
  position: relative;
  padding: 0.7rem 0.7rem 0.7rem 3.2rem;
  margin-bottom: 0.6rem;
  background: var(--s98b-bg);
  border-radius: var(--s98b-radius-sm);
  border-left: 3px solid var(--s98b-primary);
}
.s98b-step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0.7rem; top: 50%; transform: translateY(-50%);
  width: 2.2rem; height: 2.2rem;
  background: var(--s98b-primary);
  color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  font-size: 1.2rem;
}
.s98b-step h4 { font-size: 1.25rem; color: var(--s98b-dark); margin-bottom: 0.2rem; }
.s98b-step p { font-size: 1.15rem; color: var(--s98b-text-soft); }

/* ============ RTP / data table ============ */
.s98b-rtp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1.2rem;
}
.s98b-rtp-table th, .s98b-rtp-table td {
  padding: 0.6rem 0.5rem;
  text-align: left;
  border-bottom: 1px solid #e1ecec;
}
.s98b-rtp-table th { background: var(--s98b-bg-deep); color: var(--s98b-dark); }
.s98b-rtp-table td.s98b-rtp-high { color: var(--s98b-primary); font-weight: 700; }

/* ============ Testimonials ============ */
.s98b-testimonials {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.7rem;
}
.s98b-testimonial {
  background: var(--s98b-bg);
  border-radius: var(--s98b-radius-sm);
  padding: 0.9rem 1rem;
  border-left: 3px solid var(--s98b-gold);
}
.s98b-testimonial .s98b-t-stars { color: var(--s98b-gold); font-size: 1.1rem; }
.s98b-testimonial p { font-size: 1.2rem; color: var(--s98b-text); margin: 0.3rem 0; }
.s98b-testimonial .s98b-t-author { font-size: 1.1rem; color: var(--s98b-text-soft); }

/* ============ Winners ============ */
.s98b-winners {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.6rem;
}
.s98b-winner {
  background: linear-gradient(135deg, #fff8e1 0%, #fff 100%);
  border-radius: var(--s98b-radius-sm);
  padding: 0.7rem 0.8rem;
  border: 1px solid #ffe7a1;
  font-size: 1.15rem;
}
.s98b-winner b { color: var(--s98b-gold); display: block; }
.s98b-winner span { color: var(--s98b-text-soft); }

/* ============ Payment ============ */
.s98b-payments {
  display: flex; flex-wrap: wrap; gap: 0.5rem;
}
.s98b-pay-chip {
  background: var(--s98b-bg);
  border: 1px solid var(--s98b-muted);
  border-radius: 999px;
  padding: 0.4rem 0.9rem;
  font-size: 1.15rem;
  color: var(--s98b-text);
  display: inline-flex; align-items: center; gap: 0.35rem;
}

/* ============ FAQ ============ */
.s98b-faq-item {
  border-bottom: 1px solid #e1ecec;
  padding: 0.8rem 0;
}
.s98b-faq-item h4 {
  font-size: 1.3rem;
  color: var(--s98b-dark);
  margin-bottom: 0.3rem;
}
.s98b-faq-item p { font-size: 1.2rem; color: var(--s98b-text-soft); }

/* ============ Inline promo links ============ */
.s98b-link-inline {
  color: var(--s98b-primary-dark);
  font-weight: 700;
  border-bottom: 1px dashed var(--s98b-primary);
  cursor: pointer;
}
.s98b-link-inline:hover { color: var(--s98b-primary); }

.s98b-text-links {
  display: flex; flex-wrap: wrap; gap: 0.6rem 1rem;
  font-size: 1.2rem;
  margin-top: 0.6rem;
}
.s98b-text-links a { color: var(--s98b-primary-dark); border-bottom: 1px dashed var(--s98b-accent); }

/* ============ Footer ============ */
.s98b-footer {
  background: #0f3a3a;
  color: #cfeae6;
  padding: 2rem 1.2rem 6.5rem;
  margin-top: 1.5rem;
}
.s98b-footer-inner { max-width: 430px; margin: 0 auto; }
.s98b-footer h3 { color: #7ad9cf; font-size: 1.4rem; margin: 1rem 0 0.5rem; }
.s98b-footer p { font-size: 1.2rem; color: #a9d3ce; margin-bottom: 0.8rem; }
.s98b-footer-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.4rem 0.8rem;
  margin: 0.6rem 0 1rem;
}
.s98b-footer-links a {
  color: #e6fffb;
  font-size: 1.2rem;
  padding: 0.3rem 0;
}
.s98b-footer-links a:hover { color: #fff36b; }
.s98b-footer-buttons {
  display: flex; flex-wrap: wrap; gap: 0.5rem;
  margin: 0.8rem 0;
}
.s98b-footer-buttons .s98b-btn {
  background: rgba(255,255,255,0.1);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.3);
  font-size: 1.2rem;
  padding: 0.5rem 0.9rem;
}
.s98b-footer-buttons .s98b-btn-primary {
  background: linear-gradient(135deg, #ffd24a 0%, #ff9c2b 100%);
  color: #4a2c00; border: none;
}
.s98b-copyright {
  text-align: center;
  font-size: 1.1rem;
  color: #7fa9a4;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1rem;
  margin-top: 1rem;
}

/* ============ Mobile bottom nav ============ */
.s98b-bottom-nav {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  height: 62px;
  background: #0f3a3a;
  display: flex;
  justify-content: space-around;
  align-items: stretch;
  z-index: 1000;
  box-shadow: 0 -3px 14px rgba(0,0,0,0.22);
  border-top: 2px solid #26A69A;
}
.s98b-bottom-nav-btn {
  flex: 1;
  background: transparent;
  border: none;
  color: #bfe7e2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-width: 60px;
  min-height: 60px;
  cursor: pointer;
  font-size: 1rem;
  padding: 4px 2px;
  position: relative;
  transition: color .2s ease, transform .15s ease;
}
.s98b-bottom-nav-btn .s98b-nav-ic {
  font-size: 2rem;
  line-height: 1;
}
.s98b-bottom-nav-btn .material-icons,
.s98b-bottom-nav-btn .ion { font-size: 2rem; }
.s98b-bottom-nav-btn:hover { color: #fff36b; transform: translateY(-1px); }
.s98b-bottom-nav-btn:active { transform: scale(0.94); }
.s98b-nav-current { color: #ffd24a !important; }
.s98b-nav-current::after {
  content: "";
  position: absolute;
  top: 0; left: 50%; transform: translateX(-50%);
  width: 26px; height: 3px;
  background: #ffd24a;
  border-radius: 0 0 3px 3px;
}
.s98b-nav-badge {
  position: absolute;
  top: 6px; right: 18%;
  background: #ff5252;
  color: #fff;
  font-size: 0.9rem;
  padding: 0 4px;
  border-radius: 8px;
  line-height: 1.4;
}

/* ============ Desktop ============ */
@media (min-width: 769px) {
  .s98b-bottom-nav { display: none; }
  main.s98b-main { padding-bottom: 30px; }
  .s98b-container { max-width: 760px; }
  .s98b-grid { grid-template-columns: repeat(6, 1fr); }
  .s98b-features { grid-template-columns: repeat(4, 1fr); }
}

/* Utility */
.s98b-text-center { text-align: center; }
.s98b-mt-1 { margin-top: 0.6rem; }
.s98b-mt-2 { margin-top: 1rem; }
.s98b-mb-1 { margin-bottom: 0.6rem; }
.s98b-hidden { display: none !important; }
.s98b-pill {
  display: inline-block;
  padding: 0.15rem 0.7rem;
  background: var(--s98b-bg-deep);
  color: var(--s98b-primary-dark);
  font-size: 1.1rem;
  border-radius: 999px;
  font-weight: 600;
}
