/* ===========================================================
   bingo plus app - style.css
   Common stylesheet for bingo-plus-app.homes
   All custom classes use s77d- prefix
   Palette: #FFA500 | #2C2C2C | #004D40 | #DAA520 | #FF91A4
   =========================================================== */

:root {
  --s77d-primary: #FFA500;
  --s77d-bg: #2C2C2C;
  --s77d-deep: #004D40;
  --s77d-gold: #DAA520;
  --s77d-pink: #FF91A4;
  --s77d-text: #FFFFFF;
  --s77d-muted: #C9C9C9;
  --s77d-surface: #1f1f1f;
  --s77d-surface-2: #3a3a3a;
  --s77d-radius: 14px;
  --s77d-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
  --s77d-header-h: 56px;
  --s77d-bottomnav-h: 62px;
}

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

html { font-size: 62.5%; }

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

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

.s77d-container { width: 100%; padding: 0 1.2rem; }
.s77d-wrapper { padding-top: var(--s77d-header-h); padding-bottom: calc(var(--s77d-bottomnav-h) + 2rem); min-height: 100vh; }

/* ---------- Header ---------- */
.s77d-header {
  position: fixed; top: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 430px; height: var(--s77d-header-h);
  background: linear-gradient(90deg, var(--s77d-deep), #003632);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 1rem; z-index: 1000; box-shadow: var(--s77d-shadow);
}
.s77d-brand { display: flex; align-items: center; gap: 0.6rem; color: var(--s77d-text); }
.s77d-brand img { width: 28px; height: 28px; border-radius: 6px; }
.s77d-brand-name { font-size: 1.5rem; font-weight: 800; color: var(--s77d-primary); letter-spacing: 0.3px; }

.s77d-header-actions { display: flex; align-items: center; gap: 0.5rem; }
.s77d-btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem; min-height: 34px; padding: 0 1rem; border: none; border-radius: 20px; font-size: 1.2rem; font-weight: 700; cursor: pointer; transition: transform 0.15s, box-shadow 0.15s; }
.s77d-btn:active { transform: scale(0.96); }
.s77d-btn--login { background: transparent; color: var(--s77d-text); border: 1.5px solid var(--s77d-primary); }
.s77d-btn--register { background: linear-gradient(90deg, var(--s77d-primary), var(--s77d-gold)); color: #1a1a1a; box-shadow: 0 3px 10px rgba(255,165,0,0.4); }

.s77d-menu-toggle { background: transparent; border: none; color: var(--s77d-text); font-size: 2rem; cursor: pointer; padding: 0 0.4rem; }

/* ---------- Mobile menu ---------- */
.s77d-mobile-menu {
  position: fixed; top: var(--s77d-header-h); left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 430px;
  background: var(--s77d-surface);
  border-bottom: 3px solid var(--s77d-primary);
  max-height: 0; overflow: hidden; transition: max-height 0.3s ease; z-index: 9999;
}
.s77d-mobile-menu--open { max-height: 80vh; overflow-y: auto; box-shadow: var(--s77d-shadow); }
.s77d-mobile-menu a { display: flex; align-items: center; gap: 0.8rem; padding: 1rem 1.4rem; color: var(--s77d-text); border-bottom: 1px solid var(--s77d-surface-2); font-size: 1.3rem; }
.s77d-mobile-menu a i, .s77d-mobile-menu a span.iconify { font-size: 1.8rem; color: var(--s77d-primary); }
.s77d-mobile-menu a:hover { background: var(--s77d-surface-2); color: var(--s77d-gold); }

/* ---------- Hero / Carousel ---------- */
.s77d-carousel { position: relative; width: 100%; border-radius: var(--s77d-radius); overflow: hidden; margin: 1rem 0; box-shadow: var(--s77d-shadow); }
.s77d-carousel-track { position: relative; width: 100%; aspect-ratio: 16/9; background: #111; }
.s77d-carousel-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 0.6s; cursor: pointer; }
.s77d-carousel-slide img { width: 100%; height: 100%; object-fit: cover; }
.s77d-carousel-slide--active { opacity: 1; }
.s77d-carousel-caption { position: absolute; left: 1rem; bottom: 1rem; background: rgba(0,0,0,0.55); padding: 0.6rem 1rem; border-radius: 10px; font-size: 1.2rem; color: var(--s77d-text); }
.s77d-carousel-dots { position: absolute; bottom: 0.6rem; right: 0.8rem; display: flex; gap: 0.4rem; }
.s77d-carousel-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.5); cursor: pointer; border: none; }
.s77d-carousel-dot--active { background: var(--s77d-primary); width: 18px; border-radius: 4px; }

/* ---------- Sections ---------- */
.s77d-section { padding: 1.4rem 0; }
.s77d-section-title { display: flex; align-items: center; gap: 0.6rem; font-size: 1.6rem; font-weight: 800; color: var(--s77d-primary); margin-bottom: 0.8rem; padding-left: 0.8rem; border-left: 4px solid var(--s77d-gold); }
.s77d-section-title i { color: var(--s77d-gold); }
.s77d-section p { color: var(--s77d-muted); margin-bottom: 0.8rem; }

.s77d-h1 { font-size: 1.9rem; font-weight: 900; color: var(--s77d-text); line-height: 1.35; margin: 0.8rem 0; }
.s77d-h1 span { color: var(--s77d-primary); }
.s77d-h2 { font-size: 1.6rem; font-weight: 800; color: var(--s77d-gold); margin: 1rem 0 0.6rem; }

/* ---------- Promo CTA ---------- */
.s77d-cta { background: linear-gradient(135deg, var(--s77d-deep), var(--s77d-bg)); border: 1px solid var(--s77d-gold); border-radius: var(--s77d-radius); padding: 1.2rem; text-align: center; margin: 1rem 0; }
.s77d-cta p { color: var(--s77d-text); margin-bottom: 0.8rem; }
.s77d-cta-btn { display: inline-block; background: linear-gradient(90deg, var(--s77d-primary), var(--s77d-pink)); color: #1a1a1a; font-weight: 800; padding: 0.8rem 1.6rem; border-radius: 24px; font-size: 1.3rem; box-shadow: var(--s77d-shadow); }

/* ---------- Game grid ---------- */
.s77d-filter-bar { display: flex; gap: 0.5rem; overflow-x: auto; padding: 0.6rem 0; }
.s77d-filter-btn { white-space: nowrap; background: var(--s77d-surface); color: var(--s77d-text); border: 1px solid var(--s77d-surface-2); padding: 0.4rem 1rem; border-radius: 18px; font-size: 1.2rem; cursor: pointer; }
.s77d-filter-btn--active { background: var(--s77d-primary); color: #1a1a1a; border-color: var(--s77d-primary); }

.s77d-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.7rem; }
.s77d-card { background: var(--s77d-surface); border-radius: 12px; overflow: hidden; cursor: pointer; transition: transform 0.15s; border: 1px solid var(--s77d-surface-2); }
.s77d-card:active { transform: scale(0.97); }
.s77d-card-img { width: 100%; aspect-ratio: 1/1; object-fit: cover; background: #111; }
.s77d-card-name { padding: 0.4rem 0.5rem; font-size: 1.05rem; color: var(--s77d-text); text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.s77d-card-name b { color: var(--s77d-primary); }

/* ---------- Feature / info cards ---------- */
.s77d-feature-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.7rem; }
.s77d-feature { background: var(--s77d-surface); padding: 1rem; border-radius: 12px; border-left: 3px solid var(--s77d-primary); }
.s77d-feature i { font-size: 2rem; color: var(--s77d-pink); margin-bottom: 0.4rem; }
.s77d-feature h3 { font-size: 1.25rem; color: var(--s77d-gold); margin-bottom: 0.3rem; }
.s77d-feature p { font-size: 1.15rem; color: var(--s77d-muted); }

/* ---------- Testimonials ---------- */
.s77d-testimonial { background: var(--s77d-surface); padding: 1rem; border-radius: 12px; margin-bottom: 0.7rem; border-left: 3px solid var(--s77d-pink); }
.s77d-testimonial .s77d-stars { color: var(--s77d-gold); margin-bottom: 0.3rem; font-size: 1.1rem; }
.s77d-testimonial p { font-size: 1.2rem; color: var(--s77d-muted); font-style: italic; }
.s77d-testimonial strong { color: var(--s77d-primary); display: block; margin-top: 0.4rem; }

/* ---------- Payment / winners ---------- */
.s77d-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.s77d-chip { background: var(--s77d-surface); color: var(--s77d-text); border: 1px solid var(--s77d-gold); padding: 0.4rem 0.9rem; border-radius: 20px; font-size: 1.15rem; }
.s77d-winner { display: flex; justify-content: space-between; align-items: center; background: var(--s77d-surface); padding: 0.6rem 1rem; border-radius: 10px; margin-bottom: 0.4rem; font-size: 1.2rem; }
.s77d-winner span:first-child { color: var(--s77d-text); }
.s77d-winner span:last-child { color: var(--s77d-primary); font-weight: 800; }

/* ---------- FAQ ---------- */
.s77d-faq-item { background: var(--s77d-surface); border-radius: 10px; padding: 1rem; margin-bottom: 0.6rem; border: 1px solid var(--s77d-surface-2); }
.s77d-faq-item h3 { color: var(--s77d-primary); font-size: 1.25rem; margin-bottom: 0.3rem; }
.s77d-faq-item p { color: var(--s77d-muted); font-size: 1.2rem; }

/* ---------- Footer ---------- */
.s77d-footer { background: #1a1a1a; border-top: 3px solid var(--s77d-deep); padding: 1.4rem 1.2rem calc(var(--s77d-bottomnav-h) + 1.4rem); color: var(--s77d-muted); }
.s77d-footer-brand { color: var(--s77d-primary); font-weight: 800; font-size: 1.4rem; margin-bottom: 0.4rem; }
.s77d-footer p { font-size: 1.15rem; margin-bottom: 0.8rem; line-height: 1.4; }
.s77d-footer-links { display: flex; flex-wrap: wrap; gap: 0.4rem 0.8rem; margin: 0.6rem 0; }
.s77d-footer-links a { color: var(--s77d-muted); font-size: 1.1rem; text-decoration: underline; }
.s77d-footer-promos { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0.8rem 0; }
.s77d-footer-promos button { background: var(--s77d-primary); color: #1a1a1a; border: none; padding: 0.5rem 1rem; border-radius: 18px; font-weight: 700; font-size: 1.15rem; cursor: pointer; }
.s77d-footer-copy { font-size: 1.05rem; color: #888; margin-top: 0.6rem; }

/* ---------- Bottom nav ---------- */
.s77d-bottomnav {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 430px; height: var(--s77d-bottomnav-h);
  background: linear-gradient(180deg, #003632, var(--s77d-deep));
  border-top: 2px solid var(--s77d-gold);
  display: flex; justify-content: space-around; align-items: stretch;
  z-index: 1000; box-shadow: 0 -4px 14px rgba(0,0,0,0.4);
}
.s77d-bottomnav-btn {
  flex: 1; min-width: 60px; min-height: 60px;
  background: transparent; border: none; color: var(--s77d-text);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 0.2rem; cursor: pointer; font-size: 1rem; text-decoration: none;
  transition: color 0.15s, transform 0.15s;
}
.s77d-bottomnav-btn i, .s77d-bottomnav-btn .material-icons, .s77d-bottomnav-btn ion-icon { font-size: 24px; color: var(--s77d-muted); transition: color 0.15s; }
.s77d-bottomnav-btn span { font-size: 1rem; color: var(--s77d-muted); }
.s77d-bottomnav-btn:active { transform: scale(0.92); }
.s77d-bottomnav-btn--active i, .s77d-bottomnav-btn--active span, .s77d-bottomnav-btn--active .material-icons { color: var(--s77d-primary); }
.s77d-bottomnav-btn--promo i, .s77d-bottomnav-btn--promo .material-icons { color: var(--s77d-pink); }
.s77d-bottomnav-badge { position: absolute; top: 6px; right: 18px; background: var(--s77d-pink); color: #fff; font-size: 0.9rem; padding: 0 5px; border-radius: 8px; }

/* ---------- Reveal animation ---------- */
.s77d-reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.5s ease, transform 0.5s ease; }
.s77d-inview { opacity: 1; transform: translateY(0); }

/* ---------- Back to top ---------- */
.s77d-totop { position: fixed; right: 14px; bottom: calc(var(--s77d-bottomnav-h) + 12px); width: 38px; height: 38px; border-radius: 50%; background: var(--s77d-primary); color: #1a1a1a; border: none; font-size: 1.6rem; cursor: pointer; z-index: 999; box-shadow: var(--s77d-shadow); display: none; }

/* ---------- Desktop ---------- */
@media (min-width: 769px) {
  .s77d-bottomnav { display: none; }
  .s77d-wrapper { padding-bottom: 2rem; }
  .s77d-footer { padding-bottom: 1.4rem; }
}

/* ---------- Small screens tweaks ---------- */
@media (max-width: 360px) {
  .s77d-grid { grid-template-columns: repeat(2, 1fr); }
  .s77d-brand-name { font-size: 1.3rem; }
}
