/* ===========================================================
 * bingo plus pagcor - design.css
 * Mobile-first stylesheet (max-width 430px baseline)
 * Palette: #0C0C0C (bg) | #CED4DA (text) | #F0E68C (accent)
 * Every custom class uses the "w3149-" prefix.
 * =========================================================== */

:root {
  --w3149-bg: #0C0C0C;
  --w3149-bg-2: #161616;
  --w3149-bg-3: #1f1f1f;
  --w3149-text: #CED4DA;
  --w3149-text-dim: #9aa1a8;
  --w3149-primary: #F0E68C;
  --w3149-primary-2: #d9cf6a;
  --w3149-accent: #f5a623;
  --w3149-success: #2ecc71;
  --w3149-border: #2a2a2a;
  --w3149-radius: 10px;
  --w3149-radius-lg: 16px;
  --w3149-header-h: 56px;
  --w3149-bnav-h: 60px;
}

/* ---------- Reset ----------------------------------------- */
* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html { font-size: 62.5%; scroll-behavior: smooth; }
html, body { overflow-x: hidden; max-width: 100vw; }
body {
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--w3149-bg);
  color: var(--w3149-text);
  line-height: 1.5rem;
  font-size: 1.4rem;
  -webkit-font-smoothing: antialiased;
}
body.w3149-lock { overflow: hidden; }
a { color: var(--w3149-primary); text-decoration: none; }
a:hover { color: var(--w3149-accent); }
img { max-width: 100%; display: block; }
ul, ol { list-style: none; }

/* ---------- Layout helpers -------------------------------- */
.w3149-container { width: 100%; max-width: 430px; margin: 0 auto; padding: 0 1.2rem; }
.w3149-wrapper { padding-top: var(--w3149-header-h); padding-bottom: calc(var(--w3149-bnav-h) + 1.6rem); min-height: 100vh; }
.w3149-grid { display: grid; gap: 1rem; }
.w3149-section { padding: 1.6rem 0; border-top: 1px solid var(--w3149-border); }
.w3149-section:first-of-type { border-top: none; }
.w3149-section-title {
  font-size: 1.7rem; font-weight: 700; color: var(--w3149-primary);
  margin-bottom: 1rem; display: flex; align-items: center; gap: .6rem;
}
.w3149-section-title i { font-size: 2rem; }

/* ---------- Header ---------------------------------------- */
.w3149-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: linear-gradient(180deg, #141414, #0C0C0C);
  border-bottom: 1px solid var(--w3149-border);
  box-shadow: 0 2px 8px rgba(0,0,0,.45);
}
.w3149-header-inner {
  height: var(--w3149-header-h); display: flex; align-items: center;
  justify-content: space-between; gap: .6rem; padding: 0 1rem;
  max-width: 430px; margin: 0 auto;
}
.w3149-brand { display: flex; align-items: center; gap: .6rem; color: var(--w3149-text); }
.w3149-brand img { width: 30px; height: 30px; border-radius: 6px; }
.w3149-brand-name { font-weight: 700; font-size: 1.4rem; color: var(--w3149-primary); }
.w3149-header-actions { display: flex; align-items: center; gap: .5rem; }
.w3149-icon-btn {
  background: transparent; border: 0; color: var(--w3149-text);
  font-size: 1.8rem; padding: .4rem; min-width: 44px; min-height: 44px;
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer; border-radius: 8px;
}
.w3149-icon-btn:hover, .w3149-icon-btn:focus { color: var(--w3149-primary); background: var(--w3149-bg-3); }

/* ---------- Buttons --------------------------------------- */
.w3149-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  background: var(--w3149-primary); color: #1a1a00; font-weight: 700;
  border: 0; border-radius: var(--w3149-radius); padding: .7rem 1.2rem;
  min-height: 38px; font-size: 1.3rem; cursor: pointer; transition: transform .15s, filter .15s;
}
.w3149-btn:hover { filter: brightness(1.08); color: #1a1a00; }
.w3149-btn:active { transform: scale(.96); }
.w3149-btn.w3149-btn-ghost {
  background: transparent; color: var(--w3149-primary);
  border: 1px solid var(--w3149-primary);
}
.w3149-btn.w3149-btn-ghost:hover { background: rgba(240,230,140,.12); }
.w3149-btn-sm { padding: .45rem .8rem; min-height: 32px; font-size: 1.15rem; }
.w3149-btn-block { width: 100%; }
.w3149-text-link { color: var(--w3149-primary); font-weight: 700; }
.w3149-text-link:hover { text-decoration: underline; }

/* ---------- Mobile nav menu ------------------------------- */
.w3149-nav-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.55); z-index: 998;
  opacity: 0; pointer-events: none; transition: opacity .25s;
}
.w3149-nav-open ~ .w3149-nav-overlay,
.w3149-nav-open.w3149-nav-overlay { opacity: 1; pointer-events: auto; }
.w3149-nav-menu {
  position: fixed; top: var(--w3149-header-h); left: 0; right: 0;
  background: var(--w3149-bg-2); border-bottom: 1px solid var(--w3149-border);
  z-index: 9999; max-height: 0; overflow: hidden; transition: max-height .3s ease;
}
.w3149-nav-menu.w3149-nav-open { max-height: 80vh; overflow-y: auto; box-shadow: 0 8px 24px rgba(0,0,0,.5); }
.w3149-nav-menu a {
  display: flex; align-items: center; gap: .8rem;
  padding: 1.1rem 1.4rem; color: var(--w3149-text); border-bottom: 1px solid var(--w3149-border);
  font-size: 1.35rem;
}
.w3149-nav-menu a:hover { background: var(--w3149-bg-3); color: var(--w3149-primary); }
.w3149-nav-menu a i { color: var(--w3149-primary); font-size: 1.6rem; }

/* ---------- Hero carousel --------------------------------- */
.w3149-hero { position: relative; margin: 1rem 0 1.4rem; border-radius: var(--w3149-radius-lg); overflow: hidden; }
.w3149-slide {
  position: absolute; inset: 0; opacity: 0; transition: opacity .6s ease;
  cursor: pointer;
}
.w3149-slide.w3149-slide-active { opacity: 1; position: relative; }
.w3149-slide img { width: 100%; height: 190px; object-fit: cover; }
.w3149-hero-overlay {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 1rem;
  background: linear-gradient(0deg, rgba(0,0,0,.85), transparent);
  display: flex; flex-direction: column; gap: .5rem;
}
.w3149-hero-overlay h2 { color: var(--w3149-primary); font-size: 1.6rem; }
.w3149-hero-overlay p { color: var(--w3149-text); font-size: 1.2rem; }
.w3149-hero-dots { display: flex; gap: .4rem; justify-content: center; padding: .5rem 0; }
.w3149-hero-dots span { width: 6px; height: 6px; border-radius: 50%; background: #444; }
.w3149-hero-dots span.w3149-dot-active { background: var(--w3149-primary); }

/* ---------- Cards ----------------------------------------- */
.w3149-card {
  background: var(--w3149-bg-2); border: 1px solid var(--w3149-border);
  border-radius: var(--w3149-radius); padding: 1.1rem;
}
.w3149-card h3 { color: var(--w3149-primary); font-size: 1.35rem; margin-bottom: .5rem; }
.w3149-card p { color: var(--w3149-text-dim); font-size: 1.25rem; }

/* ---------- Game grid ------------------------------------- */
.w3149-game-group { margin-bottom: 1.6rem; }
.w3149-game-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: .8rem;
}
.w3149-game-head h3 { color: var(--w3149-primary); font-size: 1.4rem; display: flex; align-items: center; gap: .5rem; }
.w3149-game-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: .7rem;
}
.w3149-game {
  display: flex; flex-direction: column; align-items: center;
  background: var(--w3149-bg-2); border: 1px solid var(--w3149-border);
  border-radius: var(--w3149-radius); padding: .5rem; cursor: pointer;
  transition: transform .15s, border-color .15s;
}
.w3149-game:hover { transform: translateY(-2px); border-color: var(--w3149-primary); }
.w3149-game img { width: 100%; height: 64px; object-fit: cover; border-radius: 6px; }
.w3149-game-name { margin-top: .4rem; font-size: 1.05rem; color: var(--w3149-text); text-align: center; line-height: 1.2rem; min-height: 2.4rem; display: flex; align-items: center; }

/* ---------- Feature / steps / list ------------------------ */
.w3149-features { display: grid; grid-template-columns: repeat(2, 1fr); gap: .8rem; }
.w3149-feature {
  background: var(--w3149-bg-2); border: 1px solid var(--w3149-border);
  border-radius: var(--w3149-radius); padding: 1rem; text-align: center;
}
.w3149-feature i { font-size: 2.4rem; color: var(--w3149-primary); }
.w3149-feature h4 { margin: .4rem 0 .2rem; font-size: 1.2rem; color: var(--w3149-text); }
.w3149-feature p { font-size: 1.1rem; color: var(--w3149-text-dim); }
.w3149-steps { counter-reset: step; display: grid; gap: .7rem; }
.w3149-step {
  counter-increment: step; position: relative; padding: .9rem 1rem .9rem 3.4rem;
  background: var(--w3149-bg-2); border: 1px solid var(--w3149-border); border-radius: var(--w3149-radius);
}
.w3149-step::before {
  content: counter(step); position: absolute; left: .8rem; top: 50%; transform: translateY(-50%);
  width: 2.2rem; height: 2.2rem; border-radius: 50%; background: var(--w3149-primary); color: #1a1a00;
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 1.2rem;
}
.w3149-step h4 { font-size: 1.25rem; color: var(--w3149-primary); margin-bottom: .2rem; }
.w3149-step p { font-size: 1.2rem; color: var(--w3149-text-dim); }
.w3149-list li { padding: .5rem 0 .5rem 1.6rem; position: relative; color: var(--w3149-text); font-size: 1.25rem; }
.w3149-list li::before { content: "›"; position: absolute; left: 0; color: var(--w3149-primary); font-weight: 700; }

/* ---------- FAQ ------------------------------------------- */
.w3149-faq details {
  background: var(--w3149-bg-2); border: 1px solid var(--w3149-border);
  border-radius: var(--w3149-radius); padding: .9rem 1rem; margin-bottom: .6rem;
}
.w3149-faq summary { cursor: pointer; font-weight: 700; color: var(--w3149-primary); font-size: 1.25rem; list-style: none; }
.w3149-faq summary::-webkit-details-marker { display: none; }
.w3149-faq summary::before { content: "+ "; color: var(--w3149-accent); }
.w3149-faq details[open] summary::before { content: "− "; }
.w3149-faq details p { margin-top: .6rem; color: var(--w3149-text-dim); font-size: 1.2rem; }

/* ---------- Tables (RTP) ---------------------------------- */
.w3149-table { width: 100%; border-collapse: collapse; background: var(--w3149-bg-2); border-radius: var(--w3149-radius); overflow: hidden; }
.w3149-table th, .w3149-table td { padding: .7rem .8rem; font-size: 1.2rem; border-bottom: 1px solid var(--w3149-border); text-align: left; }
.w3149-table th { background: var(--w3149-bg-3); color: var(--w3149-primary); }
.w3149-table td:last-child { color: var(--w3149-success); font-weight: 700; }

/* ---------- Testimonials / winners ------------------------ */
.w3149-cards-row { display: grid; gap: .8rem; }
.w3149-testi { display: flex; gap: .8rem; align-items: flex-start; background: var(--w3149-bg-2); border: 1px solid var(--w3149-border); border-radius: var(--w3149-radius); padding: .9rem; }
.w3149-testi .w3149-avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--w3149-primary); color: #1a1a00; display: flex; align-items: center; justify-content: center; font-weight: 700; }
.w3149-testi h4 { color: var(--w3149-primary); font-size: 1.2rem; }
.w3149-testi .w3149-stars { color: var(--w3149-accent); font-size: 1.1rem; }
.w3149-testi p { font-size: 1.2rem; color: var(--w3149-text-dim); }
.w3149-winner { display: flex; justify-content: space-between; padding: .55rem 0; border-bottom: 1px dashed var(--w3149-border); font-size: 1.2rem; }
.w3149-winner:last-child { border-bottom: 0; }
.w3149-winner b { color: var(--w3149-success); }

/* ---------- Payment pills --------------------------------- */
.w3149-pills { display: flex; flex-wrap: wrap; gap: .5rem; }
.w3149-pill { background: var(--w3149-bg-2); border: 1px solid var(--w3149-border); border-radius: 999px; padding: .45rem .9rem; font-size: 1.15rem; display: inline-flex; align-items: center; gap: .35rem; }
.w3149-pill i { color: var(--w3149-primary); }

/* ---------- CTA banner ------------------------------------ */
.w3149-cta {
  background: linear-gradient(135deg, #1a1a00, #2a2410);
  border: 1px solid var(--w3149-primary); border-radius: var(--w3149-radius-lg);
  padding: 1.4rem; text-align: center; margin: 1.4rem 0;
}
.w3149-cta h3 { color: var(--w3149-primary); font-size: 1.5rem; margin-bottom: .4rem; }
.w3149-cta p { color: var(--w3149-text); font-size: 1.2rem; margin-bottom: .9rem; }

/* ---------- App download CTA ------------------------------ */
.w3149-app-box { display: flex; align-items: center; gap: 1rem; background: var(--w3149-bg-2); border: 1px solid var(--w3149-border); border-radius: var(--w3149-radius-lg); padding: 1rem; }
.w3149-app-box .w3149-app-icon { width: 56px; height: 56px; border-radius: 12px; background: var(--w3149-primary); color: #1a1a00; display: flex; align-items: center; justify-content: center; font-size: 2.6rem; }
.w3149-app-box h4 { color: var(--w3149-primary); font-size: 1.3rem; }
.w3149-app-box p { font-size: 1.15rem; color: var(--w3149-text-dim); }

/* ---------- Footer ---------------------------------------- */
.w3149-footer { background: var(--w3149-bg-2); border-top: 1px solid var(--w3149-border); padding: 1.6rem 0 calc(var(--w3149-bnav-h) + 1.6rem); }
.w3149-footer p { font-size: 1.2rem; color: var(--w3149-text-dim); margin-bottom: 1rem; }
.w3149-footer-links { display: flex; flex-wrap: wrap; gap: .5rem .9rem; margin-bottom: 1rem; }
.w3149-footer-links a { color: var(--w3149-text); font-size: 1.15rem; }
.w3149-footer-links a:hover { color: var(--w3149-primary); text-decoration: underline; }
.w3149-footer-promos { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1rem; }
.w3149-copy { font-size: 1.1rem; color: #666; border-top: 1px solid var(--w3149-border); padding-top: .9rem; }

/* ---------- Bottom navigation ----------------------------- */
.w3149-bnav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 1000;
  height: var(--w3149-bnav-h);
  background: linear-gradient(180deg, #141414, #0C0C0C);
  border-top: 1px solid var(--w3149-border);
  display: flex; justify-content: space-around; align-items: stretch;
  box-shadow: 0 -2px 10px rgba(0,0,0,.5);
}
.w3149-bnav-btn {
  flex: 1; min-width: 60px; min-height: 60px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: .15rem; background: transparent; border: 0; color: var(--w3149-text-dim);
  font-size: 1rem; cursor: pointer; transition: color .2s, transform .15s;
  text-decoration: none; padding: .2rem;
}
.w3149-bnav-btn i, .w3149-bnav-btn .material-icons-outlined,
.w3149-bnav-btn .ion { font-size: 2.2rem; }
.w3149-bnav-btn:hover { color: var(--w3149-primary); transform: translateY(-1px); }
.w3149-bnav-btn:active { transform: scale(.92); }
.w3149-bnav-btn.w3149-bnav-active { color: var(--w3149-primary); }
.w3149-bnav-btn.w3149-bnav-active::before {
  content: ""; position: absolute; top: 0; width: 26px; height: 3px;
  border-radius: 0 0 4px 4px; background: var(--w3149-primary);
}
.w3149-bnav-btn { position: relative; }
.w3149-bnav-center {
  background: var(--w3149-primary); color: #1a1a00;
  width: 48px; height: 48px; border-radius: 50%; margin-top: -16px;
  align-self: center; box-shadow: 0 4px 12px rgba(240,230,140,.4);
}
.w3149-bnav-center i { font-size: 2.4rem; }
.w3149-bnav-center:hover { color: #1a1a00; }

/* ---------- Utility --------------------------------------- */
.w3149-text-center { text-align: center; }
.w3149-mt-1 { margin-top: .6rem; }
.w3149-mt-2 { margin-top: 1.2rem; }
.w3149-hidden-mobile { display: none; }

/* ===========================================================
 * Responsive breakpoints
 * =========================================================== */
@media (max-width: 430px) {
  :root { --w3149-header-h: 54px; }
  .w3149-container { padding: 0 1rem; }
  .w3149-game-grid { grid-template-columns: repeat(3, 1fr); gap: .5rem; }
  .w3149-game img { height: 58px; }
  .w3149-features { grid-template-columns: repeat(2, 1fr); }
  .w3149-slide img { height: 170px; }
}

@media (max-width: 360px) {
  html { font-size: 58%; }
  .w3149-game-grid { grid-template-columns: repeat(2, 1fr); }
  .w3149-features { grid-template-columns: 1fr; }
}

/* Desktop / tablet: hide bottom nav and show full footer,
   widen the content container and switch to a richer grid. */
@media (min-width: 769px) {
  .w3149-bnav { display: none; }
  .w3149-footer { padding-bottom: 1.6rem; }
  .w3149-wrapper { padding-bottom: 1.6rem; }
  .w3149-container { max-width: 960px; }
  .w3149-game-grid { grid-template-columns: repeat(6, 1fr); }
  .w3149-features { grid-template-columns: repeat(4, 1fr); }
  .w3149-hidden-mobile { display: block; }
}
