/**
 * 7ezbd Core Stylesheet
 * All classes use g871- prefix for namespace isolation
 * Color palette: #FF8A80 | #999999 | #C9C9FF | #1B263B
 * Mobile-first design, max-width 430px
 */

/* CSS Variables */
:root {
  --g871-primary: #FF8A80;
  --g871-secondary: #C9C9FF;
  --g871-dark: #1B263B;
  --g871-gray: #999999;
  --g871-bg: #0F1923;
  --g871-text: #FFFFFF;
  --g871-accent: #FF6B6B;
  --g871-card-bg: #1A2738;
  --g871-border: #2A3A4D;
  --g871-header-bg: #1B263B;
  --g871-bottom-bg: #1B263B;
  --g871-gold: #FFD700;
  --g871-green: #4CAF50;
  --g871-radius: 8px;
  --g871-shadow: 0 2px 12px rgba(0,0,0,0.3);
}

/* Reset & Base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 62.5%; scroll-behavior: smooth; }
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: var(--g871-bg);
  color: var(--g871-text);
  line-height: 1.5rem;
  font-size: 1.4rem;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  max-width: 430px;
  margin: 0 auto;
}
a { color: var(--g871-primary); text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

/* Header */
.g871-header {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  background: var(--g871-header-bg);
  z-index: 1000;
  padding: 0 1rem;
  height: 5.2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--g871-border);
  box-shadow: var(--g871-shadow);
}
.g871-header-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  cursor: pointer;
}
.g871-header-logo img {
  width: 2.8rem;
  height: 2.8rem;
  border-radius: 50%;
}
.g871-header-logo span {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--g871-primary);
  letter-spacing: 0.5px;
}
.g871-header-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.g871-btn-register {
  background: linear-gradient(135deg, var(--g871-primary), var(--g871-accent));
  color: #fff;
  border: none;
  padding: 0.5rem 1.2rem;
  border-radius: 2rem;
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}
.g871-btn-login {
  background: transparent;
  color: var(--g871-primary);
  border: 1px solid var(--g871-primary);
  padding: 0.5rem 1.2rem;
  border-radius: 2rem;
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}
.g871-menu-toggle {
  background: none;
  border: none;
  color: var(--g871-text);
  font-size: 2.2rem;
  cursor: pointer;
  padding: 0.4rem;
  display: flex;
  align-items: center;
}

/* Mobile Menu */
.g871-mobile-menu {
  position: fixed;
  top: 0;
  right: -280px;
  width: 260px;
  height: 100%;
  background: var(--g871-dark);
  z-index: 9999;
  transition: right 0.3s ease;
  padding: 2rem 0;
  overflow-y: auto;
}
.g871-menu-active { right: 0; }
.g871-mobile-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 1.5rem 1.5rem;
  border-bottom: 1px solid var(--g871-border);
}
.g871-mobile-menu-header span {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--g871-primary);
}
.g871-menu-close {
  background: none;
  border: none;
  color: var(--g871-text);
  font-size: 2.4rem;
  cursor: pointer;
}
.g871-mobile-menu nav { padding: 1rem 0; }
.g871-mobile-menu nav a {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.2rem 1.5rem;
  color: var(--g871-text);
  font-size: 1.4rem;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  transition: background 0.2s;
}
.g871-mobile-menu nav a:hover,
.g871-mobile-menu nav a:active {
  background: rgba(255,138,128,0.1);
  color: var(--g871-primary);
}
.g871-mobile-menu nav a i,
.g871-mobile-menu nav a .material-icons {
  font-size: 2rem;
  width: 2.4rem;
  text-align: center;
}
.g871-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  z-index: 9998;
  display: none;
}
.g871-overlay-active { display: block; }

/* Main Content */
.g871-main {
  padding-top: 5.2rem;
  min-height: 100vh;
}
@media (max-width: 768px) {
  .g871-main { padding-bottom: 7rem; }
}

/* Carousel */
.g871-carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 0 0 var(--g871-radius) var(--g871-radius);
}
.g871-carousel-slide {
  display: none;
  width: 100%;
  cursor: pointer;
}
.g871-carousel-slide img {
  width: 100%;
  height: auto;
  min-height: 160px;
  object-fit: cover;
}
.g871-carousel-dots {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.6rem;
}
.g871-carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  cursor: pointer;
  border: none;
  transition: background 0.3s;
}
.g871-dot-active {
  background: var(--g871-primary);
  width: 2rem;
  border-radius: 4px;
}

/* Section */
.g871-section {
  padding: 2rem 1.2rem;
}
.g871-section-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--g871-text);
  margin-bottom: 1.2rem;
  padding-left: 0.8rem;
  border-left: 3px solid var(--g871-primary);
  line-height: 2rem;
}

/* Game Grid */
.g871-game-category {
  margin-bottom: 2rem;
}
.g871-game-category-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--g871-primary);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.g871-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
}
.g871-game-item {
  text-align: center;
  cursor: pointer;
  transition: transform 0.2s;
}
.g871-game-item:active {
  transform: scale(0.95);
}
.g871-game-item img {
  width: 100%;
  aspect-ratio: 1;
  border-radius: var(--g871-radius);
  object-fit: cover;
  border: 1px solid var(--g871-border);
  margin-bottom: 0.3rem;
}
.g871-game-item span {
  font-size: 1.1rem;
  color: var(--g871-gray);
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Content Cards */
.g871-card {
  background: var(--g871-card-bg);
  border-radius: var(--g871-radius);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  border: 1px solid var(--g871-border);
}
.g871-card h2 {
  font-size: 1.6rem;
  color: var(--g871-primary);
  margin-bottom: 1rem;
}
.g871-card h3 {
  font-size: 1.4rem;
  color: var(--g871-secondary);
  margin-bottom: 0.8rem;
}
.g871-card p {
  color: #ccc;
  line-height: 1.8rem;
  font-size: 1.3rem;
  margin-bottom: 0.8rem;
}
.g871-card ul {
  list-style: none;
  padding: 0;
}
.g871-card ul li {
  padding: 0.6rem 0;
  color: #ccc;
  font-size: 1.3rem;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
}
.g871-card ul li::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--g871-primary);
  border-radius: 50%;
  margin-top: 0.6rem;
  flex-shrink: 0;
}

/* Promotional CTA */
.g871-cta-box {
  background: linear-gradient(135deg, var(--g871-dark), #2A1A3E);
  border: 1px solid var(--g871-primary);
  border-radius: var(--g871-radius);
  padding: 2rem 1.5rem;
  text-align: center;
  margin: 1.5rem 0;
}
.g871-cta-box h3 {
  font-size: 1.8rem;
  color: var(--g871-primary);
  margin-bottom: 1rem;
}
.g871-cta-box p {
  color: var(--g871-gray);
  font-size: 1.3rem;
  margin-bottom: 1.5rem;
}
.g871-cta-btn {
  display: inline-block;
  background: linear-gradient(135deg, var(--g871-primary), var(--g871-accent));
  color: #fff;
  padding: 1rem 3rem;
  border-radius: 3rem;
  font-size: 1.5rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: transform 0.2s, box-shadow 0.2s;
}
.g871-cta-btn:active {
  transform: scale(0.96);
}

/* Footer */
.g871-footer {
  background: var(--g871-dark);
  padding: 2rem 1.2rem 1rem;
  border-top: 1px solid var(--g871-border);
}
.g871-footer-brand {
  text-align: center;
  padding: 1rem 0;
  margin-bottom: 1.5rem;
}
.g871-footer-brand p {
  color: var(--g871-gray);
  font-size: 1.2rem;
  line-height: 1.6rem;
  margin-bottom: 0.5rem;
}
.g871-footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.8rem;
  margin-bottom: 1.5rem;
}
.g871-footer-links a {
  color: var(--g871-primary);
  font-size: 1.2rem;
  padding: 0.4rem 0.8rem;
  border: 1px solid var(--g871-border);
  border-radius: 2rem;
  transition: all 0.2s;
}
.g871-footer-links a:hover {
  background: var(--g871-primary);
  color: #fff;
}
.g871-footer-partners {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding: 1rem 0;
  border-top: 1px solid var(--g871-border);
  border-bottom: 1px solid var(--g871-border);
}
.g871-footer-partners span {
  color: var(--g871-gray);
  font-size: 1.1rem;
  padding: 0.3rem 0.6rem;
  background: rgba(255,255,255,0.05);
  border-radius: 4px;
}
.g871-footer-copy {
  text-align: center;
  color: var(--g871-gray);
  font-size: 1.1rem;
  padding-top: 1rem;
}

/* Bottom Navigation */
.g871-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  height: 6rem;
  background: var(--g871-bottom-bg);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
  border-top: 1px solid var(--g871-border);
  box-shadow: 0 -2px 10px rgba(0,0,0,0.3);
}
.g871-bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 6rem;
  min-height: 5rem;
  cursor: pointer;
  color: var(--g871-gray);
  transition: color 0.2s, transform 0.2s;
  background: none;
  border: none;
  -webkit-tap-highlight-color: transparent;
}
.g871-bottom-nav-item:active {
  transform: scale(0.9);
}
.g871-bottom-nav-item.g871-nav-active {
  color: var(--g871-primary);
}
.g871-bottom-nav-item i,
.g871-bottom-nav-item .material-icons {
  font-size: 2.4rem;
  margin-bottom: 0.2rem;
}
.g871-bottom-nav-item span {
  font-size: 1rem;
  white-space: nowrap;
}

/* Promo text link */
.g871-promo-link {
  color: var(--g871-primary);
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
}
.g871-promo-link:hover {
  color: var(--g871-accent);
}

/* Testimonials */
.g871-testimonial {
  background: var(--g871-card-bg);
  border-radius: var(--g871-radius);
  padding: 1.2rem;
  margin-bottom: 1rem;
  border-left: 3px solid var(--g871-primary);
}
.g871-testimonial-name {
  font-size: 1.2rem;
  color: var(--g871-primary);
  font-weight: 600;
  margin-bottom: 0.4rem;
}
.g871-testimonial-text {
  font-size: 1.2rem;
  color: #aaa;
  line-height: 1.6rem;
}

/* Winner showcase */
.g871-winner-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.g871-winner-name {
  color: var(--g871-secondary);
  font-size: 1.2rem;
}
.g871-winner-amount {
  color: var(--g871-green);
  font-weight: 700;
  font-size: 1.3rem;
}
.g871-winner-game {
  color: var(--g871-gray);
  font-size: 1.1rem;
}

/* Payment icons */
.g871-payment-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 1rem 0;
}
.g871-payment-item {
  background: rgba(255,255,255,0.05);
  padding: 0.6rem 1.2rem;
  border-radius: 2rem;
  color: var(--g871-gray);
  font-size: 1.2rem;
  border: 1px solid var(--g871-border);
}

/* Feature icons row */
.g871-feature-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 1rem 0;
}
.g871-feature-item {
  text-align: center;
  padding: 1rem 0.5rem;
  background: var(--g871-card-bg);
  border-radius: var(--g871-radius);
  border: 1px solid var(--g871-border);
}
.g871-feature-item i,
.g871-feature-item .material-icons {
  font-size: 2.4rem;
  color: var(--g871-primary);
  margin-bottom: 0.5rem;
  display: block;
}
.g871-feature-item span {
  font-size: 1.1rem;
  color: var(--g871-gray);
}

/* Help page content */
.g871-help-section {
  padding: 1.5rem 1.2rem;
}
.g871-help-section h2 {
  font-size: 1.6rem;
  color: var(--g871-primary);
  margin-bottom: 1rem;
  padding-left: 0.8rem;
  border-left: 3px solid var(--g871-primary);
}
.g871-help-section h3 {
  font-size: 1.4rem;
  color: var(--g871-secondary);
  margin: 1rem 0 0.5rem;
}
.g871-help-section p {
  color: #bbb;
  font-size: 1.3rem;
  line-height: 1.8rem;
  margin-bottom: 0.8rem;
}
.g871-faq-item {
  background: var(--g871-card-bg);
  border-radius: var(--g871-radius);
  padding: 1.2rem;
  margin-bottom: 1rem;
  border: 1px solid var(--g871-border);
}
.g871-faq-q {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--g871-primary);
  margin-bottom: 0.5rem;
}
.g871-faq-a {
  font-size: 1.2rem;
  color: #bbb;
  line-height: 1.7rem;
}

/* Responsive */
@media (min-width: 769px) {
  .g871-bottom-nav { display: none; }
  .g871-header { max-width: 100%; left: 0; transform: none; }
}
@media (max-width: 768px) {
  body { max-width: 100%; }
}
