/*!
 * tableplus.homes - Core stylesheet
 * Mobile-first design, max-width 430px viewport
 * All classes use gb49- prefix for namespace isolation
 * Color palette: #ADFF2F (primary) | #E0E0E0 (text) | #2C2C2C (bg)
 */

:root {
  --gb49-primary: #ADFF2F;
  --gb49-text: #E0E0E0;
  --gb49-bg: #2C2C2C;
  --gb49-primary-dark: #8BD600;
  --gb49-primary-glow: rgba(173, 255, 47, 0.35);
  --gb49-bg-dark: #1A1A1A;
  --gb49-bg-light: #3A3A3A;
  --gb49-card-bg: #353535;
  --gb49-border: #4A4A4A;
  --gb49-text-muted: #9A9A9A;
  --gb49-gold: #FFD54F;
  --gb49-red: #FF5252;
  --gb49-radius: 12px;
  --gb49-radius-sm: 8px;
  --gb49-header-h: 56px;
  --gb49-bottomnav-h: 60px;
  font-size: 62.5%;
}

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

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

body {
  font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  background-color: var(--gb49-bg);
  color: var(--gb49-text);
  font-size: 1.6rem;
  line-height: 1.5rem;
  max-width: 430px;
  margin: 0 auto;
  position: relative;
  min-height: 100vh;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: var(--gb49-primary); text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* ===== Header ===== */
.gb49-header {
  position: fixed;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  height: var(--gb49-header-h);
  background: linear-gradient(180deg, rgba(20,20,20,0.98) 0%, rgba(44,44,44,0.95) 100%);
  border-bottom: 1px solid var(--gb49-border);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  transition: background 0.3s ease;
}
.gb49-header-scrolled {
  background: rgba(20,20,20,1);
  box-shadow: 0 2px 12px rgba(0,0,0,0.6);
}
.gb49-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
}
.gb49-logo img {
  width: 28px; height: 28px;
  border-radius: 6px;
}
.gb49-logo-text {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--gb49-primary);
  letter-spacing: 0.5px;
}
.gb49-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.gb49-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 36px;
  padding: 0 14px;
  border-radius: var(--gb49-radius-sm);
  font-size: 1.3rem;
  font-weight: 700;
  transition: transform 0.15s ease, box-shadow 0.2s ease;
  touch-action: manipulation;
}
.gb49-btn:active { transform: scale(0.95); }
.gb49-btn-register {
  background: linear-gradient(135deg, var(--gb49-primary) 0%, var(--gb49-primary-dark) 100%);
  color: #1A1A1A;
  box-shadow: 0 2px 8px var(--gb49-primary-glow);
}
.gb49-btn-login {
  background: transparent;
  color: var(--gb49-primary);
  border: 1.5px solid var(--gb49-primary);
}
.gb49-menu-toggle {
  width: 36px; height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gb49-primary);
  font-size: 2rem;
}

/* ===== Mobile Menu ===== */
.gb49-mobile-menu {
  position: fixed;
  top: 0; right: -100%;
  width: 80%;
  max-width: 320px;
  height: 100vh;
  background: var(--gb49-bg-dark);
  z-index: 9999;
  padding: 70px 16px 20px;
  transition: right 0.3s ease;
  overflow-y: auto;
  border-left: 1px solid var(--gb49-border);
}
.gb49-menu-open { right: 0; }
.gb49-menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 9998;
  display: none;
}
.gb49-menu-open + .gb49-menu-overlay { display: block; }
.gb49-menu-close {
  position: absolute;
  top: 14px; right: 14px;
  width: 36px; height: 36px;
  color: var(--gb49-text);
  font-size: 2rem;
}
.gb49-menu-link {
  display: block;
  padding: 14px 12px;
  color: var(--gb49-text);
  font-size: 1.5rem;
  border-bottom: 1px solid var(--gb49-border);
  transition: color 0.2s, padding-left 0.2s;
}
.gb49-menu-link:hover, .gb49-menu-link:focus { color: var(--gb49-primary); padding-left: 18px; }
.gb49-menu-link i { margin-right: 10px; color: var(--gb49-primary); }

/* ===== Main Layout ===== */
.gb49-main {
  padding-top: var(--gb49-header-h);
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
}
@media (max-width: 768px) {
  .gb49-main { padding-bottom: 80px; }
}

/* ===== Carousel ===== */
.gb49-carousel {
  position: relative;
  width: 100%;
  height: 180px;
  overflow: hidden;
  margin: 0 0 16px;
  border-radius: 0 0 var(--gb49-radius) var(--gb49-radius);
}
.gb49-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.5s ease;
  cursor: pointer;
}
.gb49-slide-active { opacity: 1; }
.gb49-slide img { width: 100%; height: 100%; object-fit: cover; }
.gb49-slide-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 12px;
  background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.85) 100%);
}
.gb49-slide-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 2px;
}
.gb49-slide-sub {
  font-size: 1.2rem;
  color: var(--gb49-primary);
}
.gb49-dots {
  position: absolute;
  bottom: 8px; right: 12px;
  display: flex;
  gap: 6px;
}
.gb49-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  cursor: pointer;
}
.gb49-dot-active { background: var(--gb49-primary); }

/* ===== Section ===== */
.gb49-section {
  padding: 20px 14px;
  margin-bottom: 8px;
}
.gb49-section-title {
  font-size: 2rem;
  font-weight: 800;
  color: var(--gb49-primary);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.gb49-section-title i { font-size: 2.2rem; }
.gb49-section-sub {
  font-size: 1.4rem;
  color: var(--gb49-text-muted);
  margin-bottom: 16px;
}

/* ===== Game Grid ===== */
.gb49-game-group { margin-bottom: 24px; }
.gb49-group-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  padding: 0 2px;
}
.gb49-group-title {
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--gb49-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}
.gb49-group-count {
  font-size: 1.2rem;
  color: var(--gb49-text-muted);
}
.gb49-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.gb49-game-card {
  background: var(--gb49-card-bg);
  border-radius: var(--gb49-radius-sm);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.2s;
  border: 1px solid var(--gb49-border);
}
.gb49-game-card:active {
  transform: scale(0.94);
  box-shadow: 0 0 12px var(--gb49-primary-glow);
}
.gb49-game-thumb {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #202020;
  display: flex;
  align-items: center;
  justify-content: center;
}
.gb49-game-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.gb49-game-name {
  font-size: 1.1rem;
  color: var(--gb49-text);
  padding: 4px;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3rem;
}

/* ===== Promo Banner ===== */
.gb49-promo-banner {
  background: linear-gradient(135deg, var(--gb49-bg-light) 0%, var(--gb49-bg-dark) 100%);
  border: 1px solid var(--gb49-primary);
  border-radius: var(--gb49-radius);
  padding: 16px;
  margin: 16px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.gb49-promo-icon {
  font-size: 3rem;
  color: var(--gb49-gold);
}
.gb49-promo-text {
  flex: 1;
}
.gb49-promo-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--gb49-primary);
  margin-bottom: 4px;
}
.gb49-promo-desc {
  font-size: 1.25rem;
  color: var(--gb49-text-muted);
  line-height: 1.6rem;
}

/* ===== Content Cards ===== */
.gb49-card {
  background: var(--gb49-card-bg);
  border-radius: var(--gb49-radius);
  padding: 16px;
  margin-bottom: 12px;
  border: 1px solid var(--gb49-border);
}
.gb49-card-title {
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--gb49-primary);
  margin-bottom: 8px;
}
.gb49-card-text {
  font-size: 1.35rem;
  color: var(--gb49-text);
  line-height: 1.8rem;
  margin-bottom: 8px;
}
.gb49-card-text strong { color: var(--gb49-primary); }
.gb49-card-list {
  list-style: none;
  margin-top: 8px;
}
.gb49-card-list li {
  font-size: 1.3rem;
  color: var(--gb49-text);
  padding: 6px 0 6px 22px;
  position: relative;
  line-height: 1.6rem;
}
.gb49-card-list li::before {
  content: '▸';
  color: var(--gb49-primary);
  position: absolute;
  left: 6px;
  font-size: 1.4rem;
}

/* ===== Steps ===== */
.gb49-steps {
  counter-reset: step;
  margin-top: 8px;
}
.gb49-step {
  display: flex;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--gb49-border);
}
.gb49-step:last-child { border-bottom: none; }
.gb49-step-num {
  flex-shrink: 0;
  width: 28px; height: 28px;
  background: var(--gb49-primary);
  color: #1A1A1A;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.4rem;
}
.gb49-step-body { flex: 1; }
.gb49-step-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--gb49-text);
  margin-bottom: 2px;
}
.gb49-step-desc {
  font-size: 1.25rem;
  color: var(--gb49-text-muted);
  line-height: 1.6rem;
}

/* ===== FAQ ===== */
.gb49-faq-item {
  background: var(--gb49-card-bg);
  border: 1px solid var(--gb49-border);
  border-radius: var(--gb49-radius-sm);
  margin-bottom: 8px;
  overflow: hidden;
}
.gb49-faq-q {
  width: 100%;
  text-align: left;
  padding: 14px;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--gb49-text);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.gb49-faq-q i { color: var(--gb49-primary); transition: transform 0.2s; }
.gb49-faq-open .gb49-faq-q i { transform: rotate(45deg); }
.gb49-faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0 14px;
  font-size: 1.3rem;
  color: var(--gb49-text-muted);
  line-height: 1.7rem;
}
.gb49-faq-open .gb49-faq-a {
  max-height: 400px;
  padding: 0 14px 14px;
}

/* ===== Winners ===== */
.gb49-winners {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}
.gb49-winner {
  background: var(--gb49-card-bg);
  border-radius: var(--gb49-radius-sm);
  padding: 10px;
  border: 1px solid var(--gb49-border);
}
.gb49-winner-name {
  font-size: 1.2rem;
  color: var(--gb49-text);
  font-weight: 600;
}
.gb49-winner-game {
  font-size: 1.1rem;
  color: var(--gb49-text-muted);
  margin: 2px 0;
}
.gb49-winner-amount {
  font-size: 1.4rem;
  color: var(--gb49-gold);
  font-weight: 800;
}

/* ===== Payments ===== */
.gb49-payments {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}
.gb49-payment {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--gb49-card-bg);
  border: 1px solid var(--gb49-border);
  border-radius: var(--gb49-radius-sm);
  padding: 8px 12px;
  font-size: 1.2rem;
  color: var(--gb49-text);
}
.gb49-payment i { color: var(--gb49-primary); font-size: 1.6rem; }

/* ===== Testimonials ===== */
.gb49-testimonial {
  background: var(--gb49-card-bg);
  border-radius: var(--gb49-radius);
  padding: 14px;
  margin-bottom: 10px;
  border-left: 3px solid var(--gb49-primary);
}
.gb49-testimonial-text {
  font-size: 1.3rem;
  color: var(--gb49-text);
  line-height: 1.7rem;
  font-style: italic;
  margin-bottom: 8px;
}
.gb49-testimonial-author {
  font-size: 1.2rem;
  color: var(--gb49-primary);
  font-weight: 700;
}
.gb49-testimonial-stars { color: var(--gb49-gold); font-size: 1.4rem; }

/* ===== App Download ===== */
.gb49-app-cta {
  background: linear-gradient(135deg, var(--gb49-primary) 0%, var(--gb49-primary-dark) 100%);
  border-radius: var(--gb49-radius);
  padding: 18px;
  margin: 16px 14px;
  text-align: center;
  color: #1A1A1A;
}
.gb49-app-cta h3 {
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 6px;
}
.gb49-app-cta p {
  font-size: 1.3rem;
  color: #1A1A1A;
  margin-bottom: 12px;
  line-height: 1.6rem;
}
.gb49-app-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #1A1A1A;
  color: var(--gb49-primary);
  padding: 10px 22px;
  border-radius: var(--gb49-radius-sm);
  font-size: 1.4rem;
  font-weight: 700;
  min-height: 44px;
}

/* ===== Achievements / Tricks ===== */
.gb49-stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 8px;
}
.gb49-stat {
  background: var(--gb49-card-bg);
  border: 1px solid var(--gb49-border);
  border-radius: var(--gb49-radius-sm);
  padding: 10px 6px;
  text-align: center;
}
.gb49-stat-value {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--gb49-primary);
}
.gb49-stat-label {
  font-size: 1.05rem;
  color: var(--gb49-text-muted);
  margin-top: 2px;
}

/* ===== RTP Table ===== */
.gb49-rtp-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid var(--gb49-border);
  font-size: 1.3rem;
}
.gb49-rtp-row:last-child { border-bottom: none; }
.gb49-rtp-row .gb49-rtp-game { color: var(--gb49-text); flex: 1; }
.gb49-rtp-row .gb49-rtp-value { color: var(--gb49-primary); font-weight: 700; }

/* ===== Footer ===== */
.gb49-footer {
  background: var(--gb49-bg-dark);
  padding: 24px 14px 90px;
  border-top: 1px solid var(--gb49-border);
  margin-top: 20px;
}
.gb49-footer-brand {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--gb49-primary);
  margin-bottom: 8px;
}
.gb49-footer-desc {
  font-size: 1.25rem;
  color: var(--gb49-text-muted);
  line-height: 1.7rem;
  margin-bottom: 16px;
}
.gb49-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}
.gb49-footer-link {
  font-size: 1.2rem;
  color: var(--gb49-text);
  padding: 6px 10px;
  background: var(--gb49-card-bg);
  border-radius: var(--gb49-radius-sm);
  border: 1px solid var(--gb49-border);
  min-height: 36px;
  display: inline-flex;
  align-items: center;
}
.gb49-footer-link:hover { color: var(--gb49-primary); border-color: var(--gb49-primary); }
.gb49-footer-promo {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}
.gb49-footer-promo-btn {
  flex: 1 1 45%;
  min-height: 40px;
  padding: 8px 10px;
  background: var(--gb49-primary);
  color: #1A1A1A;
  border-radius: var(--gb49-radius-sm);
  font-size: 1.2rem;
  font-weight: 700;
  text-align: center;
}
.gb49-copyright {
  font-size: 1.1rem;
  color: var(--gb49-text-muted);
  text-align: center;
  padding-top: 12px;
  border-top: 1px solid var(--gb49-border);
}

/* ===== Bottom Nav ===== */
.gb49-bottom-nav {
  position: fixed;
  bottom: 0; left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  height: var(--gb49-bottomnav-h);
  background: var(--gb49-bg-dark);
  border-top: 1px solid var(--gb49-border);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
  padding: 4px 0;
}
.gb49-nav-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-width: 60px;
  min-height: 56px;
  color: var(--gb49-text-muted);
  background: transparent;
  transition: color 0.2s, transform 0.15s;
  position: relative;
}
.gb49-nav-btn:active { transform: scale(0.9); }
.gb49-nav-btn i { font-size: 22px; }
.gb49-nav-btn .material-icons,
.gb49-nav-btn .ion-icon { font-size: 24px; }
.gb49-nav-label {
  font-size: 1rem;
  font-weight: 600;
}
.gb49-nav-btn.gb49-nav-active { color: var(--gb49-primary); }
.gb49-nav-btn.gb49-nav-active::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 28px; height: 2px;
  background: var(--gb49-primary);
  border-radius: 0 0 4px 4px;
}
.gb49-nav-promo {
  color: var(--gb49-primary);
}
.gb49-nav-badge {
  position: absolute;
  top: 4px; right: 14px;
  background: var(--gb49-red);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 700;
  min-width: 16px; height: 16px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

/* ===== Desktop hide bottom nav ===== */
@media (min-width: 769px) {
  .gb49-bottom-nav { display: none; }
  body { max-width: 430px; }
}

/* ===== Utility ===== */
.gb49-text-center { text-align: center; }
.gb49-mt-16 { margin-top: 16px; }
.gb49-mb-16 { margin-bottom: 16px; }
.gb49-highlight { color: var(--gb49-primary); font-weight: 700; }
.gb49-gold { color: var(--gb49-gold); font-weight: 700; }
.gb49-play-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 48px;
  background: linear-gradient(135deg, var(--gb49-primary) 0%, var(--gb49-primary-dark) 100%);
  color: #1A1A1A;
  border-radius: var(--gb49-radius-sm);
  font-size: 1.5rem;
  font-weight: 800;
  margin: 12px 0;
  box-shadow: 0 2px 12px var(--gb49-primary-glow);
}
.gb49-play-cta:active { transform: scale(0.97); }
.gb49-inline-link {
  color: var(--gb49-primary);
  font-weight: 700;
  border-bottom: 1px dashed var(--gb49-primary);
}
