/**
 * Table Games - Core Stylesheet
 * All classes use g1ae- prefix for namespace isolation
 * Color Palette: #141414 | #FDF5E6 | #00E5FF | #CD853F | #6F4E37
 */

/* === CSS Variables === */
:root {
  --g1ae-bg: #141414;
  --g1ae-bg-alt: #1c1a17;
  --g1ae-bg-card: #221f1a;
  --g1ae-text: #FDF5E6;
  --g1ae-text-muted: #b8a88a;
  --g1ae-accent: #00E5FF;
  --g1ae-gold: #CD853F;
  --g1ae-brown: #6F4E37;
  --g1ae-accent-glow: rgba(0, 229, 255, 0.15);
  --g1ae-gold-glow: rgba(205, 133, 63, 0.2);
  --g1ae-radius: 10px;
  --g1ae-radius-sm: 6px;
  --g1ae-shadow: 0 2px 12px 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: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: var(--g1ae-bg);
  color: var(--g1ae-text);
  line-height: 1.5rem;
  font-size: 1.4rem;
  -webkit-font-smoothing: antialiased;
  max-width: 430px;
  margin: 0 auto;
  overflow-x: hidden;
}
a { color: var(--g1ae-accent); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--g1ae-gold); }
img { max-width: 100%; height: auto; display: block; }

/* === Header === */
.g1ae-header {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  height: 52px;
  background: linear-gradient(135deg, #1a1714 0%, #0d0b09 100%);
  border-bottom: 1px solid rgba(205, 133, 63, 0.3);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  z-index: 1000;
}
.g1ae-logo-area {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}
.g1ae-logo-area img {
  width: 28px;
  height: 28px;
  border-radius: 4px;
}
.g1ae-logo-area span {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--g1ae-gold);
  letter-spacing: 0.5px;
}
.g1ae-header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}
.g1ae-btn-register, .g1ae-btn-login {
  padding: 6px 14px;
  border-radius: var(--g1ae-radius-sm);
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
}
.g1ae-btn-register {
  background: linear-gradient(135deg, var(--g1ae-gold), #e8a54b);
  color: #141414;
}
.g1ae-btn-register:hover { background: linear-gradient(135deg, #e8a54b, var(--g1ae-gold)); transform: scale(1.04); }
.g1ae-btn-login {
  background: transparent;
  color: var(--g1ae-accent);
  border: 1px solid var(--g1ae-accent);
}
.g1ae-btn-login:hover { background: rgba(0, 229, 255, 0.1); }
.g1ae-menu-toggle {
  background: none;
  border: none;
  color: var(--g1ae-text);
  font-size: 2rem;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
}

/* === Mobile Menu === */
.g1ae-menu-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  z-index: 9998;
}
.g1ae-mobile-menu {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%) translateX(-100%);
  width: 100%;
  max-width: 430px;
  height: 100%;
  background: linear-gradient(180deg, #1a1714, #0d0b09);
  z-index: 9999;
  padding: 20px;
  transition: transform 0.3s ease;
  visibility: hidden;
  overflow-y: auto;
}
.g1ae-mobile-menu.g1ae-menu-open { transform: translateX(-50%) translateX(0); visibility: visible; }
.g1ae-menu-close {
  background: none;
  border: none;
  color: var(--g1ae-text);
  font-size: 2.4rem;
  cursor: pointer;
  position: absolute;
  top: 14px;
  right: 16px;
}
.g1ae-mobile-menu nav { margin-top: 50px; }
.g1ae-mobile-menu nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 8px;
  color: var(--g1ae-text);
  font-size: 1.5rem;
  border-bottom: 1px solid rgba(205, 133, 63, 0.15);
  transition: all 0.2s;
}
.g1ae-mobile-menu nav a:hover { color: var(--g1ae-gold); padding-left: 16px; }
.g1ae-mobile-menu nav a i, .g1ae-mobile-menu nav a .material-icons {
  font-size: 2rem;
  width: 24px;
  text-align: center;
}

/* === Main Content === */
.g1ae-main {
  padding-top: 56px;
  min-height: 100vh;
}
@media (max-width: 768px) {
  .g1ae-main { padding-bottom: 80px; }
}

/* === Carousel === */
.g1ae-carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 0 0 var(--g1ae-radius) var(--g1ae-radius);
}
.g1ae-slide {
  display: none;
  width: 100%;
  cursor: pointer;
}
.g1ae-slide img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}
.g1ae-dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}
.g1ae-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(253, 245, 230, 0.4);
  cursor: pointer;
  transition: all 0.3s;
}
.g1ae-dot-active {
  background: var(--g1ae-gold);
  width: 20px;
  border-radius: 4px;
}

/* === Section Container === */
.g1ae-section {
  padding: 20px 14px;
}
.g1ae-section-title {
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--g1ae-gold);
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid rgba(205, 133, 63, 0.3);
  display: flex;
  align-items: center;
  gap: 8px;
}
.g1ae-section-title i, .g1ae-section-title .material-icons {
  font-size: 2rem;
  color: var(--g1ae-accent);
}

/* === Game Grid === */
.g1ae-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.g1ae-game-item {
  text-align: center;
  cursor: pointer;
  transition: transform 0.2s;
  background: var(--g1ae-bg-card);
  border-radius: var(--g1ae-radius-sm);
  padding: 8px 4px 6px;
}
.g1ae-game-item:hover { transform: translateY(-2px); }
.g1ae-game-item img {
  width: 56px;
  height: 56px;
  border-radius: 8px;
  margin: 0 auto 6px;
  object-fit: cover;
  border: 1px solid rgba(205, 133, 63, 0.2);
}
.g1ae-game-item span {
  font-size: 1.05rem;
  color: var(--g1ae-text);
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* === Promo Buttons & Links === */
.g1ae-promo-btn {
  display: inline-block;
  padding: 10px 24px;
  background: linear-gradient(135deg, var(--g1ae-gold), #e8a54b);
  color: #141414;
  font-weight: 700;
  font-size: 1.4rem;
  border-radius: var(--g1ae-radius);
  cursor: pointer;
  border: none;
  text-align: center;
  transition: all 0.2s;
}
.g1ae-promo-btn:hover { transform: scale(1.03); box-shadow: 0 4px 20px var(--g1ae-gold-glow); }
.g1ae-promo-link {
  color: var(--g1ae-accent);
  font-weight: 600;
  cursor: pointer;
  transition: color 0.2s;
}
.g1ae-promo-link:hover { color: var(--g1ae-gold); text-decoration: underline; }

/* === Cards === */
.g1ae-card {
  background: var(--g1ae-bg-card);
  border-radius: var(--g1ae-radius);
  padding: 16px;
  margin-bottom: 14px;
  border: 1px solid rgba(205, 133, 63, 0.15);
}
.g1ae-card h3 {
  font-size: 1.5rem;
  color: var(--g1ae-gold);
  margin-bottom: 8px;
}
.g1ae-card p {
  color: var(--g1ae-text-muted);
  font-size: 1.3rem;
  line-height: 1.6;
}

/* === Footer === */
.g1ae-footer {
  background: linear-gradient(180deg, #1a1714, #0a0908);
  padding: 24px 14px 16px;
  border-top: 1px solid rgba(205, 133, 63, 0.2);
}
.g1ae-footer-brand {
  color: var(--g1ae-text-muted);
  font-size: 1.2rem;
  line-height: 1.6;
  margin-bottom: 16px;
}
.g1ae-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}
.g1ae-footer-links a {
  font-size: 1.1rem;
  color: var(--g1ae-text-muted);
  padding: 4px 8px;
  background: rgba(255,255,255,0.05);
  border-radius: 4px;
  transition: all 0.2s;
}
.g1ae-footer-links a:hover { color: var(--g1ae-accent); background: rgba(0,229,255,0.1); }
.g1ae-footer-partners {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.g1ae-footer-partners img {
  height: 24px;
  opacity: 0.6;
  filter: grayscale(0.5);
}
.g1ae-footer-copy {
  text-align: center;
  color: rgba(253,245,230,0.3);
  font-size: 1.1rem;
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 12px;
}

/* === Bottom Navigation === */
.g1ae-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  height: 60px;
  background: linear-gradient(180deg, #1a1714, #0d0b09);
  border-top: 1px solid rgba(205, 133, 63, 0.25);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
  padding: 0 4px;
}
.g1ae-bnav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  min-height: 56px;
  background: none;
  border: none;
  color: var(--g1ae-text-muted);
  cursor: pointer;
  transition: all 0.2s;
  padding: 4px;
  border-radius: var(--g1ae-radius-sm);
}
.g1ae-bnav-btn:hover, .g1ae-bnav-btn:focus {
  color: var(--g1ae-gold);
  background: var(--g1ae-gold-glow);
}
.g1ae-bnav-btn i, .g1ae-bnav-btn .material-icons, .g1ae-bnav-btn ion-icon {
  font-size: 22px;
  margin-bottom: 2px;
}
.g1ae-bnav-btn span {
  font-size: 1rem;
  font-weight: 500;
}
.g1ae-bnav-active {
  color: var(--g1ae-gold) !important;
}
.g1ae-bnav-active::after {
  content: '';
  display: block;
  width: 20px;
  height: 2px;
  background: var(--g1ae-gold);
  border-radius: 1px;
  margin-top: 1px;
}
@media (min-width: 769px) {
  .g1ae-bottom-nav { display: none; }
}

/* === Info Blocks === */
.g1ae-info-block {
  background: var(--g1ae-bg-card);
  border-left: 3px solid var(--g1ae-accent);
  padding: 14px;
  margin-bottom: 12px;
  border-radius: 0 var(--g1ae-radius-sm) var(--g1ae-radius-sm) 0;
}
.g1ae-info-block h3 {
  font-size: 1.4rem;
  color: var(--g1ae-accent);
  margin-bottom: 6px;
}
.g1ae-info-block p {
  color: var(--g1ae-text-muted);
  font-size: 1.2rem;
  line-height: 1.5;
}
.g1ae-faq-item {
  margin-bottom: 10px;
}
.g1ae-faq-q {
  font-weight: 600;
  color: var(--g1ae-gold);
  font-size: 1.3rem;
  margin-bottom: 4px;
}
.g1ae-faq-a {
  color: var(--g1ae-text-muted);
  font-size: 1.2rem;
  padding-left: 10px;
  border-left: 2px solid rgba(0, 229, 255, 0.3);
}

/* === Winners Table === */
.g1ae-winners-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.g1ae-winner-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 10px;
  background: rgba(205, 133, 63, 0.08);
  border-radius: var(--g1ae-radius-sm);
  font-size: 1.2rem;
}
.g1ae-winner-row .g1ae-winner-name { color: var(--g1ae-text); font-weight: 600; }
.g1ae-winner-row .g1ae-winner-game { color: var(--g1ae-text-muted); }
.g1ae-winner-row .g1ae-winner-amount { color: var(--g1ae-accent); font-weight: 700; }

/* === Testimonials === */
.g1ae-testimonial {
  background: var(--g1ae-bg-card);
  border-radius: var(--g1ae-radius);
  padding: 14px;
  margin-bottom: 10px;
  border: 1px solid rgba(205, 133, 63, 0.1);
}
.g1ae-testimonial-text {
  color: var(--g1ae-text-muted);
  font-size: 1.2rem;
  font-style: italic;
  margin-bottom: 6px;
}
.g1ae-testimonial-author {
  font-size: 1.1rem;
  color: var(--g1ae-gold);
  font-weight: 600;
}

/* === Payment Methods === */
.g1ae-payment-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}
.g1ae-payment-item {
  background: var(--g1ae-bg-card);
  border-radius: var(--g1ae-radius-sm);
  padding: 10px 14px;
  font-size: 1.2rem;
  color: var(--g1ae-text-muted);
  border: 1px solid rgba(205, 133, 63, 0.15);
  display: flex;
  align-items: center;
  gap: 6px;
}

/* === CTA Section === */
.g1ae-cta-section {
  text-align: center;
  padding: 24px 14px;
  background: linear-gradient(135deg, rgba(205,133,63,0.1), rgba(0,229,255,0.05));
  border-radius: var(--g1ae-radius);
  margin: 16px 0;
}
.g1ae-cta-section h3 {
  font-size: 1.6rem;
  color: var(--g1ae-gold);
  margin-bottom: 8px;
}
.g1ae-cta-section p {
  color: var(--g1ae-text-muted);
  font-size: 1.3rem;
  margin-bottom: 14px;
}

/* === Desktop Navigation (visible on wider screens) === */
.g1ae-desktop-nav {
  display: none;
}
@media (min-width: 769px) {
  .g1ae-desktop-nav {
    display: flex;
    gap: 12px;
  }
  .g1ae-desktop-nav a {
    color: var(--g1ae-text-muted);
    font-size: 1.2rem;
    padding: 4px 8px;
    transition: color 0.2s;
  }
  .g1ae-desktop-nav a:hover { color: var(--g1ae-gold); }
}

/* === Responsive Utilities === */
@media (max-width: 360px) {
  .g1ae-game-grid { grid-template-columns: repeat(3, 1fr); }
  .g1ae-game-item img { width: 48px; height: 48px; }
}

/* === Help Page Styles === */
.g1ae-help-content {
  padding: 14px;
}
.g1ae-help-content h2 {
  font-size: 1.6rem;
  color: var(--g1ae-gold);
  margin: 18px 0 10px;
}
.g1ae-help-content h3 {
  font-size: 1.4rem;
  color: var(--g1ae-accent);
  margin: 14px 0 8px;
}
.g1ae-help-content p {
  color: var(--g1ae-text-muted);
  font-size: 1.3rem;
  line-height: 1.6;
  margin-bottom: 10px;
}
.g1ae-step-list {
  counter-reset: g1ae-step;
  list-style: none;
  padding: 0;
}
.g1ae-step-list li {
  counter-increment: g1ae-step;
  padding: 10px 10px 10px 42px;
  margin-bottom: 8px;
  background: var(--g1ae-bg-card);
  border-radius: var(--g1ae-radius-sm);
  color: var(--g1ae-text-muted);
  font-size: 1.2rem;
  position: relative;
}
.g1ae-step-list li::before {
  content: counter(g1ae-step);
  position: absolute;
  left: 10px;
  top: 10px;
  background: var(--g1ae-gold);
  color: #141414;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  font-size: 1.1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
