/**
 * x777 game - Core Stylesheet
 * Class prefix: g4a7-
 * Mobile-first responsive design, max-width 430px
 */

/* === CSS Variables === */
:root {
  --g4a7-primary: #800080;
  --g4a7-secondary: #008000;
  --g4a7-bg: #1A1A1A;
  --g4a7-text: #E0E0E0;
  --g4a7-accent: #BF360C;
  --g4a7-highlight: #7CFC00;
  --g4a7-bg-card: #2A2A2A;
  --g4a7-bg-hover: #3A3A3A;
  --g4a7-border: #444444;
  --g4a7-radius: 8px;
  --g4a7-shadow: 0 2px 8px rgba(0,0,0,0.4);
  font-size: 62.5%;
}

/* === Reset & Base === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 1.6rem;
  line-height: 1.5rem;
  color: var(--g4a7-text);
  background: var(--g4a7-bg);
  max-width: 430px;
  margin: 0 auto;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--g4a7-highlight); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }

/* === Header === */
.g4a7-header {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  height: 56px;
  background: linear-gradient(135deg, var(--g4a7-bg) 0%, #2D0A2D 100%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  z-index: 1000;
  border-bottom: 2px solid var(--g4a7-primary);
}

.g4a7-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.g4a7-logo img {
  width: 28px;
  height: 28px;
  border-radius: 4px;
}

.g4a7-logo span {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--g4a7-highlight);
  letter-spacing: 0.5px;
}

.g4a7-header-right {
  display: flex;
  align-items: center;
  gap: 6px;
}

.g4a7-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 14px;
  border-radius: var(--g4a7-radius);
  font-size: 1.3rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
  min-height: 36px;
}

.g4a7-btn-register {
  background: linear-gradient(135deg, var(--g4a7-primary), #A020A0);
  color: #fff;
}

.g4a7-btn-register:hover {
  background: linear-gradient(135deg, #A020A0, var(--g4a7-primary));
  transform: scale(1.05);
}

.g4a7-btn-login {
  background: transparent;
  color: var(--g4a7-highlight);
  border: 1.5px solid var(--g4a7-highlight);
}

.g4a7-btn-login:hover {
  background: rgba(124, 252, 0, 0.1);
}

.g4a7-menu-btn {
  background: none;
  border: none;
  color: var(--g4a7-text);
  font-size: 2.4rem;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
}

/* === Mobile Menu === */
.g4a7-mobile-menu {
  position: fixed;
  top: 56px;
  left: 50%;
  transform: translateX(-50%) translateY(-10px);
  width: 100%;
  max-width: 430px;
  background: #1E0E1E;
  flex-direction: column;
  padding: 8px 0;
  z-index: 9999;
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
  border-bottom: 2px solid var(--g4a7-primary);
  box-shadow: 0 8px 24px rgba(0,0,0,0.6);
}

.g4a7-mobile-menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  color: var(--g4a7-text);
  font-size: 1.5rem;
  transition: background 0.2s;
}

.g4a7-mobile-menu a:hover {
  background: rgba(128, 0, 128, 0.2);
  text-decoration: none;
}

.g4a7-mobile-menu a i,
.g4a7-mobile-menu a .material-icons {
  font-size: 2rem;
  width: 24px;
  text-align: center;
}

/* === Main Content === */
.g4a7-main {
  padding-top: 56px;
  padding-bottom: 80px;
}

/* === Carousel === */
.g4a7-carousel {
  position: relative;
  overflow: hidden;
  border-radius: 0 0 var(--g4a7-radius) var(--g4a7-radius);
}

.g4a7-carousel-track {
  display: flex;
  transition: transform 0.5s ease;
}

.g4a7-carousel-slide {
  min-width: 100%;
  cursor: pointer;
}

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

.g4a7-carousel-dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
}

.g4a7-carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  cursor: pointer;
  transition: all 0.3s;
}

.g4a7-dot-active {
  background: var(--g4a7-highlight);
  transform: scale(1.3);
}

/* === Section Titles === */
.g4a7-section-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--g4a7-highlight);
  padding: 16px 14px 8px;
  border-left: 4px solid var(--g4a7-primary);
  margin: 16px 14px 8px;
}

.g4a7-section-title i {
  margin-right: 8px;
  color: var(--g4a7-primary);
}

/* === Game Grid === */
.g4a7-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding: 8px 14px;
}

.g4a7-game-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  transition: transform 0.2s;
  border-radius: var(--g4a7-radius);
  overflow: hidden;
  background: var(--g4a7-bg-card);
}

.g4a7-game-card:hover {
  transform: scale(1.05);
}

.g4a7-game-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--g4a7-radius) var(--g4a7-radius) 0 0;
}

.g4a7-game-card span {
  font-size: 1.1rem;
  color: var(--g4a7-text);
  text-align: center;
  padding: 4px 2px;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
}

/* === Content Sections === */
.g4a7-content-block {
  padding: 14px;
  margin: 8px 14px;
  background: var(--g4a7-bg-card);
  border-radius: var(--g4a7-radius);
  border-left: 3px solid var(--g4a7-secondary);
}

.g4a7-content-block h2 {
  font-size: 1.8rem;
  color: var(--g4a7-highlight);
  margin-bottom: 8px;
}

.g4a7-content-block h3 {
  font-size: 1.5rem;
  color: var(--g4a7-primary);
  margin: 8px 0 4px;
}

.g4a7-content-block p {
  font-size: 1.4rem;
  line-height: 2.2rem;
  color: var(--g4a7-text);
  margin-bottom: 8px;
}

.g4a7-content-block ul {
  padding-left: 16px;
  margin-bottom: 8px;
}

.g4a7-content-block li {
  font-size: 1.4rem;
  line-height: 2.2rem;
  color: var(--g4a7-text);
  list-style: disc;
  margin-bottom: 4px;
}

.g4a7-promo-text {
  color: var(--g4a7-highlight);
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
}

.g4a7-promo-text:hover {
  color: #9FFF40;
}

/* === CTA Button === */
.g4a7-cta-btn {
  display: block;
  width: calc(100% - 28px);
  margin: 12px 14px;
  padding: 14px;
  background: linear-gradient(135deg, var(--g4a7-primary), #A020A0);
  color: #fff;
  font-size: 1.6rem;
  font-weight: 700;
  text-align: center;
  border: none;
  border-radius: var(--g4a7-radius);
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 4px 12px rgba(128, 0, 128, 0.4);
}

.g4a7-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(128, 0, 128, 0.6);
}

/* === Winners Section === */
.g4a7-winner-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  border-bottom: 1px solid var(--g4a7-border);
}

.g4a7-winner-item:last-child { border-bottom: none; }

.g4a7-winner-name {
  font-size: 1.3rem;
  color: var(--g4a7-text);
}

.g4a7-winner-amount {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--g4a7-highlight);
}

.g4a7-winner-game {
  font-size: 1.2rem;
  color: #999;
}

/* === Footer === */
.g4a7-footer {
  background: #0E0E0E;
  padding: 20px 14px 16px;
  border-top: 2px solid var(--g4a7-primary);
  margin-bottom: 0;
}

.g4a7-footer-desc {
  font-size: 1.3rem;
  color: #999;
  line-height: 2rem;
  margin-bottom: 12px;
}

.g4a7-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.g4a7-footer-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 10px;
  background: var(--g4a7-bg-card);
  color: var(--g4a7-text);
  font-size: 1.2rem;
  border-radius: 4px;
  transition: all 0.2s;
}

.g4a7-footer-link:hover {
  background: var(--g4a7-bg-hover);
  color: var(--g4a7-highlight);
  text-decoration: none;
}

.g4a7-footer-copy {
  font-size: 1.2rem;
  color: #666;
  text-align: center;
  padding-top: 8px;
  border-top: 1px solid var(--g4a7-border);
}

/* === Bottom Navigation === */
.g4a7-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  height: 60px;
  background: linear-gradient(180deg, #1E0E1E 0%, #120812 100%);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
  border-top: 2px solid var(--g4a7-primary);
  box-shadow: 0 -4px 12px rgba(0,0,0,0.5);
}

.g4a7-bnav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  min-height: 54px;
  background: none;
  border: none;
  color: #888;
  cursor: pointer;
  transition: all 0.2s;
  padding: 4px;
}

.g4a7-bnav-btn i,
.g4a7-bnav-btn .material-icons,
.g4a7-bnav-btn ion-icon {
  font-size: 22px;
}

.g4a7-bnav-btn span {
  font-size: 1rem;
  margin-top: 2px;
}

.g4a7-bnav-btn:hover,
.g4a7-bnav-active {
  color: var(--g4a7-highlight);
  transform: scale(1.1);
}

.g4a7-bnav-active {
  text-shadow: 0 0 8px rgba(124, 252, 0, 0.5);
}

/* === FAQ Section === */
.g4a7-faq-item {
  padding: 10px 14px;
  margin: 6px 14px;
  background: var(--g4a7-bg-card);
  border-radius: var(--g4a7-radius);
}

.g4a7-faq-item h3 {
  font-size: 1.4rem;
  color: var(--g4a7-highlight);
  margin-bottom: 4px;
}

.g4a7-faq-item p {
  font-size: 1.3rem;
  color: var(--g4a7-text);
  line-height: 2rem;
}

/* === Payment Methods === */
.g4a7-payment-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 8px 14px;
}

.g4a7-payment-item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  background: var(--g4a7-bg-card);
  border-radius: var(--g4a7-radius);
  font-size: 1.2rem;
  color: var(--g4a7-text);
}

/* === Testimonials === */
.g4a7-testimonial {
  padding: 10px 14px;
  margin: 6px 14px;
  background: var(--g4a7-bg-card);
  border-radius: var(--g4a7-radius);
  border-left: 3px solid var(--g4a7-secondary);
}

.g4a7-testimonial p {
  font-size: 1.3rem;
  color: var(--g4a7-text);
  line-height: 2rem;
  font-style: italic;
}

.g4a7-testimonial-author {
  font-size: 1.2rem;
  color: var(--g4a7-highlight);
  margin-top: 4px;
  font-style: normal;
}

/* === Responsive === */
@media (min-width: 769px) {
  .g4a7-bottom-nav { display: none; }
  .g4a7-main { padding-bottom: 20px; }
  .g4a7-game-grid { grid-template-columns: repeat(6, 1fr); }
}

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