/* ============================================================
 * BingGo - core layout stylesheet (basefiles)
 * All custom classes use the "g6d6-" prefix.
 * Palette: #333333 (background dark) / #98FB98 (light text) / #3CB371 (brand)
 * Mobile-first, max 430px design width.
 * ========================================================== */

:root {
  --g6d6-bg: #333333;
  --g6d6-bg-soft: #3f3f3f;
  --g6d6-bg-deep: #262626;
  --g6d6-primary: #3CB371;
  --g6d6-primary-dark: #2f8f5a;
  --g6d6-accent: #98FB98;
  --g6d6-accent-soft: #7bd99c;
  --g6d6-text: #f4fff4;
  --g6d6-text-muted: #c7d6c7;
  --g6d6-border: rgba(152, 251, 152, 0.18);
  --g6d6-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
  --g6d6-radius: 14px;
  --g6d6-header-h: 60px;
  --g6d6-bottom-h: 62px;
  --g6d6-max-w: 430px;
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html {
  font-size: 62.5%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  font-family: "Segoe UI", "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  background: var(--g6d6-bg);
  color: var(--g6d6-text);
  line-height: 1.5;
  font-size: 1.5rem;
  max-width: var(--g6d6-max-w);
  margin-left: auto;
  margin-right: auto;
  position: relative;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--g6d6-accent);
  text-decoration: none;
}

a:hover { text-decoration: underline; }

h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.3;
  margin: 0 0 0.6em;
  color: var(--g6d6-accent);
}

p { margin: 0 0 1em; }

.g6d6-container {
  width: 100%;
  max-width: var(--g6d6-max-w);
  padding: 0 14px;
  margin: 0 auto;
}

.g6d6-wrapper {
  padding-top: var(--g6d6-header-h);
  padding-bottom: calc(var(--g6d6-bottom-h) + 24px);
  min-height: 100vh;
}

/* ----------------------- Header ---------------------------- */
.g6d6-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  max-width: var(--g6d6-max-w);
  margin: 0 auto;
  height: var(--g6d6-header-h);
  background: linear-gradient(180deg, #2c2c2c 0%, #333333 100%);
  border-bottom: 1px solid var(--g6d6-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  z-index: 1000;
  box-shadow: var(--g6d6-shadow);
}

.g6d6-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.g6d6-brand-logo {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: linear-gradient(135deg, #3CB371, #98FB98);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1c1c1c;
  font-weight: 800;
  font-size: 1.6rem;
}

.g6d6-brand-name {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--g6d6-accent);
  letter-spacing: 0.4px;
}

.g6d6-brand-name span { color: var(--g6d6-primary); }

.g6d6-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.g6d6-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: none;
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 1.3rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  min-height: 36px;
  text-decoration: none;
  font-family: inherit;
}

.g6d6-btn:hover { transform: translateY(-1px); text-decoration: none; }
.g6d6-btn:active { transform: translateY(0); }

.g6d6-btn-login {
  background: transparent;
  color: var(--g6d6-accent);
  border: 1px solid var(--g6d6-accent);
}

.g6d6-btn-register {
  background: linear-gradient(135deg, #3CB371, #98FB98);
  color: #1c1c1c;
  font-weight: 800;
  box-shadow: 0 4px 12px rgba(60, 179, 113, 0.4);
}

.g6d6-menu-toggle {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid var(--g6d6-border);
  background: transparent;
  color: var(--g6d6-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.8rem;
}

/* ----------------------- Mobile menu ----------------------- */
.g6d6-menu-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 9998;
}
.g6d6-backdrop-visible {
  opacity: 1;
  pointer-events: auto;
}

.g6d6-mobile-menu {
  position: fixed;
  top: 0;
  right: -85%;
  width: 78%;
  max-width: 320px;
  height: 100vh;
  background: var(--g6d6-bg-deep);
  z-index: 9999;
  padding: 20px 16px;
  transition: right 0.3s ease;
  overflow-y: auto;
  border-left: 1px solid var(--g6d6-border);
}

.g6d6-menu-open { right: 0; }

.g6d6-mobile-menu h3 {
  font-size: 1.5rem;
  color: var(--g6d6-text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 16px 0 8px;
}

.g6d6-mobile-menu a {
  display: block;
  padding: 12px 12px;
  border-radius: 10px;
  color: var(--g6d6-text);
  font-size: 1.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}

.g6d6-mobile-menu a:hover {
  background: rgba(60, 179, 113, 0.15);
  text-decoration: none;
}

.g6d6-menu-close {
  background: transparent;
  border: 1px solid var(--g6d6-border);
  color: var(--g6d6-accent);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  cursor: pointer;
}

/* ----------------------- Hero ------------------------------ */
.g6d6-hero {
  position: relative;
  padding: 18px 0 8px;
}

.g6d6-carousel {
  position: relative;
  border-radius: var(--g6d6-radius);
  overflow: hidden;
  box-shadow: var(--g6d6-shadow);
  background: #1f1f1f;
}

.g6d6-carousel-track {
  display: flex;
  transition: transform 0.55s ease;
}

.g6d6-slide {
  min-width: 100%;
  position: relative;
}

.g6d6-slide img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.g6d6-slide-overlay {
  position: absolute;
  left: 14px;
  bottom: 14px;
  right: 14px;
  background: linear-gradient(0deg, rgba(0,0,0,0.78), transparent);
  padding: 30px 12px 8px;
  border-radius: 0 0 12px 12px;
}

.g6d6-slide-overlay h2 {
  margin: 0 0 4px;
  color: #fff;
  font-size: 1.9rem;
}

.g6d6-slide-overlay p {
  margin: 0;
  color: var(--g6d6-accent);
  font-size: 1.3rem;
  font-weight: 600;
}

.g6d6-carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.45);
  border: none;
  color: #fff;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1.6rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
}

.g6d6-carousel-arrow.g6d6-prev { left: 8px; }
.g6d6-carousel-arrow.g6d6-next { right: 8px; }

.g6d6-carousel-dots {
  position: absolute;
  bottom: 8px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 6px;
  z-index: 5;
}

.g6d6-carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  border: none;
  cursor: pointer;
  padding: 0;
}

.g6d6-dot-active { background: var(--g6d6-primary); width: 22px; border-radius: 4px; }

/* ----------------------- Section --------------------------- */
.g6d6-section {
  padding: 22px 0;
}

.g6d6-section-title {
  font-size: 1.9rem;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--g6d6-accent);
}

.g6d6-section-title i { color: var(--g6d6-primary); }

.g6d6-section-sub {
  color: var(--g6d6-text-muted);
  font-size: 1.35rem;
  margin-bottom: 14px;
}

.g6d6-card {
  background: var(--g6d6-bg-soft);
  border: 1px solid var(--g6d6-border);
  border-radius: var(--g6d6-radius);
  padding: 16px;
  box-shadow: var(--g6d6-shadow);
}

.g6d6-text-link {
  color: var(--g6d6-accent);
  font-weight: 700;
  border-bottom: 1px dashed var(--g6d6-accent-soft);
}

.g6d6-cta-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.g6d6-cta-row .g6d6-btn { flex: 1; min-width: 120px; }

/* ----------------------- Tabs ------------------------------ */
.g6d6-tabs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 6px 0 10px;
  margin-bottom: 4px;
  scrollbar-width: none;
}
.g6d6-tabs::-webkit-scrollbar { display: none; }

.g6d6-tab {
  flex: 0 0 auto;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--g6d6-border);
  background: var(--g6d6-bg-soft);
  color: var(--g6d6-text-muted);
  font-size: 1.3rem;
  cursor: pointer;
  white-space: nowrap;
}

.g6d6-tab-active {
  background: linear-gradient(135deg, #3CB371, #98FB98);
  color: #1c1c1c;
  font-weight: 700;
  border-color: transparent;
}

/* ----------------------- Game grid ------------------------- */
.g6d6-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.g6d6-game-card {
  background: var(--g6d6-bg-soft);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--g6d6-border);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
}

.g6d6-game-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(60, 179, 113, 0.25);
}

.g6d6-game-thumb {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: #222;
}

.g6d6-game-name {
  font-size: 1.2rem;
  font-weight: 600;
  padding: 6px 6px 8px;
  color: var(--g6d6-text);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.g6d6-game-badge {
  position: absolute;
  top: 6px;
  left: 6px;
  background: var(--g6d6-primary);
  color: #1c1c1c;
  font-size: 1rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 6px;
}

/* ----------------------- Features -------------------------- */
.g6d6-feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.g6d6-feature {
  background: var(--g6d6-bg-soft);
  border: 1px solid var(--g6d6-border);
  border-radius: 12px;
  padding: 14px;
  text-align: center;
}

.g6d6-feature i {
  font-size: 2.6rem;
  color: var(--g6d6-primary);
  margin-bottom: 6px;
}

.g6d6-feature h3 {
  font-size: 1.5rem;
  margin: 4px 0;
  color: var(--g6d6-accent);
}

.g6d6-feature p {
  font-size: 1.25rem;
  color: var(--g6d6-text-muted);
  margin: 0;
}

/* ----------------------- RTP table ------------------------- */
.g6d6-rtp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1.3rem;
}

.g6d6-rtp-table th,
.g6d6-rtp-table td {
  padding: 10px 8px;
  border-bottom: 1px solid var(--g6d6-border);
  text-align: left;
}

.g6d6-rtp-table th {
  color: var(--g6d6-accent);
  font-weight: 700;
}

.g6d6-rtp-pill {
  background: rgba(60, 179, 113, 0.18);
  color: var(--g6d6-accent);
  padding: 2px 8px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1.2rem;
}

/* ----------------------- FAQ -------------------------------- */
.g6d6-faq-item {
  background: var(--g6d6-bg-soft);
  border: 1px solid var(--g6d6-border);
  border-radius: 12px;
  margin-bottom: 10px;
  overflow: hidden;
}

.g6d6-faq-q {
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  color: var(--g6d6-text);
  font-size: 1.4rem;
  font-weight: 700;
  padding: 14px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.g6d6-faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  padding: 0 14px;
  color: var(--g6d6-text-muted);
  font-size: 1.3rem;
}

.g6d6-faq-open .g6d6-faq-a {
  max-height: 320px;
  padding-bottom: 14px;
}

.g6d6-faq-icon { transition: transform 0.3s ease; color: var(--g6d6-primary); }
.g6d6-faq-open .g6d6-faq-icon { transform: rotate(45deg); }

/* ----------------------- Testimonials ---------------------- */
.g6d6-testimonial {
  background: var(--g6d6-bg-soft);
  border: 1px solid var(--g6d6-border);
  border-left: 4px solid var(--g6d6-primary);
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 10px;
}

.g6d6-testimonial p { margin: 0 0 6px; font-size: 1.3rem; color: var(--g6d6-text); }

.g6d6-testimonial-author {
  font-size: 1.2rem;
  color: var(--g6d6-accent);
  font-weight: 700;
}

.g6d6-stars { color: #ffce3a; font-size: 1.3rem; }

/* ----------------------- Winners --------------------------- */
.g6d6-winner-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.g6d6-winner-list li {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px dashed rgba(255,255,255,0.08);
  font-size: 1.3rem;
}

.g6d6-winner-list .g6d6-amount {
  color: var(--g6d6-accent);
  font-weight: 700;
}

/* ----------------------- Payment --------------------------- */
.g6d6-pay-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.g6d6-pay-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  background: var(--g6d6-bg-soft);
  border: 1px solid var(--g6d6-border);
  border-radius: 999px;
  font-size: 1.25rem;
  color: var(--g6d6-text);
}

.g6d6-pay-chip i { color: var(--g6d6-primary); }

/* ----------------------- Steps ----------------------------- */
.g6d6-steps {
  list-style: none;
  counter-reset: step;
  padding: 0;
  margin: 0;
}

.g6d6-steps li {
  position: relative;
  padding: 10px 10px 10px 44px;
  margin-bottom: 8px;
  background: var(--g6d6-bg-soft);
  border-radius: 10px;
  border: 1px solid var(--g6d6-border);
  counter-increment: step;
  font-size: 1.3rem;
}

.g6d6-steps li::before {
  content: counter(step);
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3CB371, #98FB98);
  color: #1c1c1c;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.3rem;
}

/* ----------------------- Bottom nav ------------------------ */
.g6d6-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  max-width: var(--g6d6-max-w);
  margin: 0 auto;
  height: var(--g6d6-bottom-h);
  background: linear-gradient(180deg, #2f8f5a 0%, #2c2c2c 100%);
  border-top: 1px solid var(--g6d6-border);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
  box-shadow: 0 -4px 16px rgba(0,0,0,0.4);
}

.g6d6-bottom-nav-btn {
  flex: 1;
  background: transparent;
  border: none;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-height: var(--g6d6-bottom-h);
  cursor: pointer;
  font-size: 1.05rem;
  font-weight: 600;
  padding: 6px 0;
  transition: transform 0.18s ease, color 0.18s ease;
  text-decoration: none;
}

.g6d6-bottom-nav-btn i { font-size: 2.2rem; color: var(--g6d6-accent); }
.g6d6-bottom-nav-btn:active { transform: scale(0.92); }
.g6d6-bottom-nav-btn:hover { text-decoration: none; }
.g6d6-bottom-nav-btn:hover i { color: #fff; }

.g6d6-nav-current i { color: #fff; }
.g6d6-nav-current { color: #fff; }

.g6d6-nav-badge {
  position: absolute;
  top: 6px;
  right: 18%;
  background: #ff5a5a;
  color: #fff;
  font-size: 0.9rem;
  border-radius: 999px;
  padding: 1px 5px;
}

.g6d6-bottom-nav-btn { position: relative; }

/* ----------------------- Back to top ----------------------- */
.g6d6-back-top {
  position: fixed;
  right: 14px;
  bottom: calc(var(--g6d6-bottom-h) + 14px);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--g6d6-primary);
  color: #1c1c1c;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 999;
}

.g6d6-top-visible { opacity: 1; pointer-events: auto; }

/* ----------------------- Footer ---------------------------- */
.g6d6-footer {
  background: var(--g6d6-bg-deep);
  border-top: 1px solid var(--g6d6-border);
  padding: 24px 14px 14px;
  margin-top: 18px;
}

.g6d6-footer h4 {
  color: var(--g6d6-accent);
  font-size: 1.4rem;
  margin: 12px 0 6px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.g6d6-footer p { font-size: 1.25rem; color: var(--g6d6-text-muted); }

.g6d6-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 8px 0 12px;
}

.g6d6-footer-links a {
  display: inline-block;
  padding: 5px 10px;
  border: 1px solid var(--g6d6-border);
  border-radius: 8px;
  font-size: 1.2rem;
  color: var(--g6d6-text-muted);
}

.g6d6-footer-links a:hover { background: rgba(60,179,113,0.12); color: var(--g6d6-accent); }

.g6d6-footer-promo {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0 12px;
}

.g6d6-footer-copy {
  text-align: center;
  font-size: 1.15rem;
  color: var(--g6d6-text-muted);
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--g6d6-border);
}

/* ----------------------- Promo banner ---------------------- */
.g6d6-promo-banner {
  background: linear-gradient(135deg, #2f8f5a, #98FB98);
  border-radius: var(--g6d6-radius);
  padding: 14px;
  color: #1c1c1c;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}

.g6d6-promo-banner h3 { color: #1c1c1c; margin: 0; font-size: 1.6rem; }
.g6d6-promo-banner p { margin: 2px 0 0; font-size: 1.2rem; color: #222; }

/* ----------------------- App CTA --------------------------- */
.g6d6-app-cta {
  background: var(--g6d6-bg-soft);
  border: 1px dashed var(--g6d6-primary);
  border-radius: var(--g6d6-radius);
  padding: 16px;
  text-align: center;
}

.g6d6-app-cta h3 { color: var(--g6d6-accent); margin-top: 0; }
.g6d6-app-cta p { color: var(--g6d6-text-muted); font-size: 1.3rem; }

/* ----------------------- Desktop / wide -------------------- */
@media (min-width: 769px) {
  .g6d6-bottom-nav { display: none; }
  .g6d6-wrapper { padding-bottom: 40px; }
  .g6d6-grid { grid-template-columns: repeat(6, 1fr); }
  .g6d6-feature-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 768px) {
  .g6d6-wrapper main { padding-bottom: 80px; }
}

@media (max-width: 360px) {
  .g6d6-grid { grid-template-columns: repeat(2, 1fr); }
  .g6d6-brand-name { font-size: 1.6rem; }
}
