/* ============================================================
 * bingo plus app - shared stylesheet
 * All custom classes use the "g350-" prefix.
 * Palette: #2C2C2C (bg) | #E9967A | #FA8072 (text/accents)
 * Mobile-first, max-width 430px.
 * ============================================================ */

:root {
  --g350-bg: #2C2C2C;
  --g350-bg-2: #1f1f1f;
  --g350-bg-3: #3a3a3a;
  --g350-primary: #E9967A;
  --g350-secondary: #FA8072;
  --g350-text: #fef4ef;
  --g350-muted: #cbb4a8;
  --g350-gold: #f5c067;
  --g350-radius: 14px;
  --g350-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
  --g350-maxw: 430px;
}

* { box-sizing: border-box; }

html {
  font-size: 62.5%;            /* 1rem = 10px baseline */
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  background: var(--g350-bg);
  color: var(--g350-text);
  font-family: "Segoe UI", "Helvetica Neue", Arial, system-ui, sans-serif;
  font-size: 1.5rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

.g350-wrapper {
  width: 100%;
  max-width: var(--g350-maxw);
  margin: 0 auto;
  padding: 0 1.2rem;
}

.g350-container { width: 100%; }

/* ---------------- Header ---------------- */
.g350-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: linear-gradient(180deg, rgba(31,31,31,0.98), rgba(44,44,44,0.95));
  border-bottom: 2px solid var(--g350-primary);
  box-shadow: 0 2px 12px rgba(0,0,0,0.45);
}
.g350-header-inner {
  max-width: var(--g350-maxw);
  margin: 0 auto;
  padding: 0.7rem 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}
.g350-brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  flex: 1;
  min-width: 0;
}
.g350-logo {
  width: 3rem; height: 3rem;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid var(--g350-primary);
}
.g350-brand-name {
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--g350-text);
  letter-spacing: 0.2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.g350-brand-name span { color: var(--g350-primary); }

.g350-header-actions { display: flex; align-items: center; gap: 0.5rem; }
.g350-menu-btn {
  background: transparent;
  border: 1px solid var(--g350-primary);
  color: var(--g350-primary);
  width: 3.4rem; height: 3.4rem;
  border-radius: 8px;
  font-size: 1.8rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}

.g350-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.8rem 1.2rem;
  border: none;
  border-radius: 30px;
  font-size: 1.3rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s, opacity 0.15s;
  min-height: 3.6rem;
  line-height: 1;
  text-align: center;
}
.g350-btn:active { transform: scale(0.96); }
.g350-btn-register {
  background: linear-gradient(135deg, var(--g350-primary), var(--g350-secondary));
  color: #2a1a14;
  box-shadow: 0 4px 12px rgba(250,128,114,0.45);
}
.g350-btn-login {
  background: transparent;
  color: var(--g350-primary);
  border: 2px solid var(--g350-primary);
}
.g350-btn-hero {
  background: linear-gradient(135deg, var(--g350-gold), var(--g350-secondary));
  color: #2a1a14;
  padding: 1.1rem 2rem;
  font-size: 1.6rem;
  box-shadow: 0 6px 16px rgba(245,192,103,0.45);
}
.g350-btn-block { width: 100%; }

/* ---------------- Nav menu ---------------- */
.g350-nav-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  background: var(--g350-bg-2);
  border-top: 1px solid rgba(233,150,122,0.2);
}
.g350-nav-menu.g350-menu-open { max-height: 540px; }
.g350-nav-list {
  list-style: none;
  margin: 0;
  padding: 0.6rem 1.2rem 1rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}
.g350-nav-list a {
  display: block;
  padding: 0.85rem 1rem;
  background: var(--g350-bg-3);
  border-radius: 8px;
  color: var(--g350-text);
  font-size: 1.3rem;
  font-weight: 600;
}
.g350-nav-list a:hover { background: var(--g350-primary); color: #2a1a14; }

/* ---------------- Main padding ---------------- */
.g350-main {
  padding-top: 6.2rem;
  padding-bottom: 2rem;
}

/* ---------------- Carousel ---------------- */
.g350-carousel {
  position: relative;
  border-radius: var(--g350-radius);
  overflow: hidden;
  box-shadow: var(--g350-shadow);
  margin: 1rem 0;
}
.g350-carousel-track { position: relative; }
.g350-carousel-slide {
  display: none;
  position: relative;
}
.g350-carousel-slide.g350-active { display: block; }
.g350-carousel-slide img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}
.g350-carousel-cap {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 1rem 1.2rem;
  background: linear-gradient(0deg, rgba(0,0,0,0.78), transparent);
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
}
.g350-carousel-cap small {
  display: block;
  color: var(--g350-primary);
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.2rem;
}
.g350-carousel-dots {
  position: absolute;
  bottom: 0.8rem; right: 0.9rem;
  display: flex; gap: 0.4rem;
}
.g350-carousel-dot {
  width: 0.8rem; height: 0.8rem;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  border: none; cursor: pointer;
}
.g350-carousel-dot.g350-active { background: var(--g350-primary); }

/* ---------------- Sections ---------------- */
.g350-section { margin: 2rem 0; }
.g350-section-title {
  font-size: 1.8rem;
  font-weight: 700;
  margin: 0 0 1rem;
  padding-left: 0.8rem;
  border-left: 4px solid var(--g350-primary);
  color: var(--g350-text);
}
.g350-section-title em {
  color: var(--g350-primary);
  font-style: normal;
}
.g350-lead {
  font-size: 1.4rem;
  color: var(--g350-muted);
  margin: 0 0 1rem;
}

/* ---------------- Category quick chips ---------------- */
.g350-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.g350-chip {
  padding: 0.5rem 1rem;
  background: var(--g350-bg-3);
  border: 1px solid rgba(233,150,122,0.35);
  border-radius: 20px;
  font-size: 1.2rem;
  color: var(--g350-text);
  cursor: pointer;
}

/* ---------------- Game grid ---------------- */
.g350-cat-block { margin-bottom: 2rem; }
.g350-cat-head {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.7rem;
}
.g350-cat-head i { color: var(--g350-primary); font-size: 1.8rem; }
.g350-cat-head h3 {
  font-size: 1.5rem;
  margin: 0;
  color: var(--g350-primary);
  font-weight: 700;
}
.g350-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.7rem;
}
.g350-card {
  background: var(--g350-bg-2);
  border-radius: 12px;
  padding: 0.5rem;
  text-align: center;
  cursor: pointer;
  border: 1px solid rgba(233,150,122,0.15);
  transition: transform 0.15s, border-color 0.15s;
}
.g350-card:hover { transform: translateY(-2px); border-color: var(--g350-primary); }
.g350-card img {
  width: 100%; height: 78px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 0.4rem;
}
.g350-card-name {
  font-size: 1.1rem;
  color: var(--g350-text);
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ---------------- Feature / info cards ---------------- */
.g350-info-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.8rem;
}
.g350-info-card {
  background: linear-gradient(135deg, var(--g350-bg-2), var(--g350-bg-3));
  border-radius: var(--g350-radius);
  padding: 1.2rem;
  border-left: 3px solid var(--g350-primary);
}
.g350-info-card h4 {
  margin: 0 0 0.5rem;
  font-size: 1.4rem;
  color: var(--g350-primary);
}
.g350-info-card p {
  margin: 0;
  font-size: 1.3rem;
  color: var(--g350-muted);
}
.g350-feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.7rem;
}
.g350-feature {
  background: var(--g350-bg-2);
  border-radius: 10px;
  padding: 1rem 0.8rem;
  text-align: center;
  border: 1px solid rgba(233,150,122,0.2);
}
.g350-feature i { font-size: 2.4rem; color: var(--g350-primary); }
.g350-feature h5 { margin: 0.5rem 0 0.2rem; font-size: 1.25rem; color: var(--g350-text); }
.g350-feature p { margin: 0; font-size: 1.1rem; color: var(--g350-muted); }

/* ---------------- RTP table ---------------- */
.g350-rtp-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--g350-bg-2);
  border-radius: 10px;
  overflow: hidden;
  font-size: 1.25rem;
}
.g350-rtp-table th, .g350-rtp-table td {
  padding: 0.7rem 0.9rem;
  text-align: left;
  border-bottom: 1px solid rgba(233,150,122,0.15);
}
.g350-rtp-table th { background: var(--g350-primary); color: #2a1a14; font-size: 1.2rem; }
.g350-rtp-table td.win { color: var(--g350-gold); font-weight: 700; }

/* ---------------- Testimonial ---------------- */
.g350-testimonials { display: grid; gap: 0.7rem; }
.g350-testimonial {
  background: var(--g350-bg-2);
  border-radius: 12px;
  padding: 1rem;
  border-left: 3px solid var(--g350-gold);
}
.g350-testimonial p { margin: 0 0 0.5rem; font-size: 1.3rem; color: var(--g350-text); font-style: italic; }
.g350-testimonial .g350-stars { color: var(--g350-gold); font-size: 1.2rem; margin-bottom: 0.3rem; }
.g350-testimonial small { color: var(--g350-muted); }

/* ---------------- Winners ticker ---------------- */
.g350-winners {
  background: linear-gradient(135deg, rgba(245,192,103,0.15), rgba(250,128,114,0.15));
  border-radius: 12px;
  padding: 0.8rem 1rem;
  border: 1px dashed var(--g350-gold);
}
.g350-winner-row {
  display: flex; justify-content: space-between;
  padding: 0.4rem 0;
  font-size: 1.25rem;
  border-bottom: 1px dashed rgba(255,255,255,0.1);
}
.g350-winner-row:last-child { border-bottom: none; }
.g350-winner-row b { color: var(--g350-gold); }

/* ---------------- Payment ---------------- */
.g350-pay-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
}
.g350-pay {
  background: var(--g350-bg-2);
  border-radius: 10px;
  padding: 0.8rem 0.4rem;
  text-align: center;
  border: 1px solid rgba(233,150,122,0.2);
  font-size: 1.15rem;
  color: var(--g350-text);
}
.g350-pay i { font-size: 2rem; color: var(--g350-primary); display: block; margin-bottom: 0.3rem; }

/* ---------------- CTA banner ---------------- */
.g350-cta {
  background: linear-gradient(135deg, var(--g350-primary), var(--g350-secondary));
  border-radius: var(--g350-radius);
  padding: 1.4rem;
  text-align: center;
  color: #2a1a14;
  box-shadow: var(--g350-shadow);
}
.g350-cta h3 { margin: 0 0 0.5rem; font-size: 1.7rem; }
.g350-cta p { margin: 0 0 1rem; font-size: 1.3rem; }
.g350-cta .g350-btn { background: #2C2C2C; color: var(--g350-primary); }

/* ---------------- Footer ---------------- */
.g350-footer {
  background: var(--g350-bg-2);
  margin-top: 2rem;
  padding: 2rem 0;
  border-top: 2px solid var(--g350-primary);
}
.g350-footer-inner { max-width: var(--g350-maxw); margin: 0 auto; padding: 0 1.2rem; }
.g350-footer-about { font-size: 1.25rem; color: var(--g350-muted); margin-bottom: 1.2rem; }
.g350-footer-promos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
  margin-bottom: 1.4rem;
}
.g350-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  margin-bottom: 1.2rem;
}
.g350-footer-links a { font-size: 1.15rem; color: var(--g350-muted); }
.g350-footer-links a:hover { color: var(--g350-primary); }
.g350-copyright {
  font-size: 1.1rem;
  color: var(--g350-muted);
  text-align: center;
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 1rem;
}

/* ---------------- Bottom nav (mobile) ---------------- */
.g350-bottomnav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: 60px;
  background: linear-gradient(180deg, var(--g350-bg-2), #161616);
  border-top: 2px solid var(--g350-primary);
  display: flex;
  justify-content: space-around;
  align-items: stretch;
  z-index: 1000;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.45);
}
.g350-bottomnav-btn {
  flex: 1;
  min-width: 60px;
  min-height: 60px;
  background: transparent;
  border: none;
  color: var(--g350-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  cursor: pointer;
  font-size: 1rem;
  padding: 0.4rem;
  transition: color 0.15s, transform 0.15s;
}
.g350-bottomnav-btn i { font-size: 2rem; }
.g350-bottomnav-btn:active { transform: scale(0.92); }
.g350-bottomnav-btn:hover { color: var(--g350-primary); }
.g350-bottomnav-active { color: var(--g350-primary); }
.g350-bottomnav-active i { transform: translateY(-2px); }

/* Mobile content clearance for fixed bottom nav */
@media (max-width: 768px) {
  .g350-main { padding-bottom: 80px; }
  .g350-footer { padding-bottom: 80px; }
}

/* Hide bottom nav on desktop */
@media (min-width: 769px) {
  .g350-bottomnav { display: none; }
}

/* Desktop tweaks */
@media (min-width: 600px) {
  .g350-grid { grid-template-columns: repeat(4, 1fr); }
  .g350-feature-grid { grid-template-columns: repeat(3, 1fr); }
}
