/* lucky game app - Base Styles - prefix ge59 */
/* Color palette: #3A3A3A | #2C3E50 | #9400D3 | #36454F | #6C757D */
/* Dark = background, Light = text */

:root {
  --ge59-bg-dark: #3A3A3A;
  --ge59-bg-deep: #2C3E50;
  --ge59-primary: #9400D3;
  --ge59-bg-charcoal: #36454F;
  --ge59-muted: #6C757D;
  --ge59-text-light: #f5f5f5;
  --ge59-text-dim: #c9d1d9;
  --ge59-accent: #ff3d8a;
  --ge59-gold: #ffc94a;
  --ge59-green: #2ecc71;
  --ge59-radius: 12px;
  --ge59-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
  --ge59-shadow-hover: 0 8px 28px rgba(148, 0, 211, 0.35);
  --ge59-transition: 0.25s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 62.5%; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 1.5rem;
  line-height: 1.5;
  color: var(--ge59-text-light);
  background: radial-gradient(circle at top, var(--ge59-bg-deep), var(--ge59-bg-dark) 70%);
  min-height: 100vh;
  overflow-x: hidden;
}

a { color: var(--ge59-accent); text-decoration: none; transition: color var(--ge59-transition); }
a:hover { color: var(--ge59-gold); }

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

h1, h2, h3, h4 { line-height: 1.3; }

.ge59-container { width: 100%; max-width: 430px; margin: 0 auto; padding: 0 12px; }

/* === Header === */
.ge59-header {
  position: fixed; top: 0; left: 0; right: 0;
  background: linear-gradient(90deg, var(--ge59-bg-deep), var(--ge59-bg-charcoal));
  border-bottom: 2px solid var(--ge59-primary);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
  z-index: 1000;
}
.ge59-header-inner {
  max-width: 430px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 12px; gap: 6px;
}
.ge59-logo { display: flex; align-items: center; gap: 8px; color: #fff; font-weight: 700; font-size: 1.55rem; }
.ge59-logo img { width: 28px; height: 28px; border-radius: 6px; }
.ge59-logo-text {
  background: linear-gradient(90deg, var(--ge59-accent), var(--ge59-gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.ge59-header-actions { display: flex; gap: 6px; align-items: center; }
.ge59-btn {
  border: none; border-radius: 20px; padding: 7px 12px;
  font-size: 1.25rem; font-weight: 600; cursor: pointer;
  transition: all var(--ge59-transition);
  display: inline-flex; align-items: center; gap: 4px;
}
.ge59-btn-login { background: transparent; color: var(--ge59-text-light); border: 1px solid var(--ge59-muted); }
.ge59-btn-login:hover { background: rgba(255, 255, 255, 0.08); border-color: var(--ge59-text-light); }
.ge59-btn-register {
  background: linear-gradient(90deg, var(--ge59-primary), var(--ge59-accent));
  color: #fff; box-shadow: 0 2px 8px rgba(148, 0, 211, 0.4);
}
.ge59-btn-register:hover { transform: translateY(-1px); box-shadow: 0 4px 14px rgba(255, 61, 138, 0.5); }
.ge59-menu-toggle {
  background: transparent; border: none; color: var(--ge59-text-light);
  font-size: 1.8rem; cursor: pointer; padding: 4px 6px;
}

/* === Mobile Menu === */
.ge59-mobile-menu {
  position: fixed; top: 0; right: -100%;
  width: 80%; max-width: 320px; height: 100vh;
  background: var(--ge59-bg-charcoal);
  padding: 60px 18px 30px; z-index: 9999;
  transition: right 0.3s ease; overflow-y: auto;
  border-left: 2px solid var(--ge59-primary);
}
.ge59-mobile-menu.ge59-open { right: 0; }
.ge59-mobile-menu h4 {
  color: var(--ge59-gold); font-size: 1.4rem;
  margin: 16px 0 6px; text-transform: uppercase; letter-spacing: 1px;
}
.ge59-mobile-menu ul { list-style: none; }
.ge59-mobile-menu li { margin: 4px 0; }
.ge59-mobile-menu a {
  display: block; color: var(--ge59-text-light);
  padding: 8px 10px; border-radius: 8px; font-size: 1.3rem;
}
.ge59-mobile-menu a:hover { background: rgba(148, 0, 211, 0.18); color: var(--ge59-accent); }
.ge59-menu-overlay {
  position: fixed; inset: 0; background: rgba(0, 0, 0, 0.55);
  z-index: 9998; opacity: 0; pointer-events: none;
  transition: opacity 0.3s ease;
}
.ge59-menu-overlay.ge59-open { opacity: 1; pointer-events: all; }
.ge59-menu-close {
  position: absolute; top: 12px; right: 12px;
  background: transparent; border: none; color: var(--ge59-text-light);
  font-size: 2rem; cursor: pointer;
}

/* === Hero Carousel === */
.ge59-hero { margin-top: 60px; padding: 12px 0 4px; }
.ge59-carousel {
  position: relative; border-radius: var(--ge59-radius);
  overflow: hidden; box-shadow: var(--ge59-shadow);
}
.ge59-carousel-track { display: flex; transition: transform 0.5s ease; }
.ge59-carousel-slide {
  flex: 0 0 100%; position: relative;
  cursor: pointer;
}
.ge59-carousel-slide img { width: 100%; height: 200px; object-fit: cover; }
.ge59-carousel-caption {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.88));
  padding: 28px 14px 12px;
}
.ge59-carousel-caption h2 { color: var(--ge59-gold); font-size: 1.7rem; margin-bottom: 4px; }
.ge59-carousel-caption p { color: var(--ge59-text-dim); font-size: 1.2rem; }
.ge59-carousel-dots {
  position: absolute; bottom: 8px; right: 12px;
  display: flex; gap: 5px;
}
.ge59-carousel-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.4); border: none;
  cursor: pointer; padding: 0;
}
.ge59-carousel-dot.ge59-active { background: var(--ge59-accent); transform: scale(1.2); }

/* === Section === */
.ge59-section { padding: 16px 0; }
.ge59-section-title {
  display: flex; align-items: center; gap: 8px;
  font-size: 1.7rem; color: var(--ge59-gold);
  margin-bottom: 8px; padding-bottom: 6px;
  border-bottom: 2px solid var(--ge59-primary);
}
.ge59-section-title i, .ge59-section-title .material-icons { font-size: 2rem; color: var(--ge59-accent); }
.ge59-section-text { color: var(--ge59-text-dim); font-size: 1.3rem; margin-bottom: 8px; }
.ge59-section-text strong { color: var(--ge59-accent); font-weight: 700; }
.ge59-promo-link { color: var(--ge59-gold); font-weight: 700; }
.ge59-promo-link:hover { color: var(--ge59-accent); text-decoration: underline; }

/* === Game Grid === */
.ge59-game-block { margin-bottom: 14px; }
.ge59-game-block-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 8px; padding: 0 2px;
}
.ge59-game-block-title {
  font-size: 1.5rem; color: var(--ge59-gold);
  display: flex; align-items: center; gap: 6px;
}
.ge59-game-block-title .material-icons,
.ge59-game-block-title i { font-size: 1.8rem; color: var(--ge59-accent); }
.ge59-game-block-more { font-size: 1.15rem; color: var(--ge59-accent); font-weight: 600; }
.ge59-game-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px;
}
.ge59-game-card {
  background: var(--ge59-bg-charcoal); border-radius: 10px;
  overflow: hidden; cursor: pointer;
  transition: all var(--ge59-transition);
  border: 1px solid transparent; text-align: center; display: block;
}
.ge59-game-card:hover {
  transform: translateY(-3px);
  border-color: var(--ge59-primary);
  box-shadow: 0 6px 16px rgba(148, 0, 211, 0.3);
}
.ge59-game-card-img {
  width: 100%; aspect-ratio: 1; object-fit: cover;
  background: #1a1a1a;
}
.ge59-game-card-name {
  padding: 5px 4px; font-size: 1.1rem; color: var(--ge59-text-light);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* === Info Cards === */
.ge59-card {
  background: var(--ge59-bg-charcoal); border-radius: var(--ge59-radius);
  padding: 12px 14px; margin-bottom: 10px;
  border-left: 3px solid var(--ge59-primary);
}
.ge59-card-title {
  font-size: 1.45rem; color: var(--ge59-accent);
  margin-bottom: 6px; display: flex; align-items: center; gap: 6px;
}
.ge59-card-body { color: var(--ge59-text-dim); font-size: 1.25rem; }
.ge59-card-body p { margin-bottom: 6px; }
.ge59-card-body strong { color: var(--ge59-gold); }

/* === Feature Grid === */
.ge59-feature-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.ge59-feature-item {
  background: var(--ge59-bg-deep); padding: 10px;
  border-radius: 8px; text-align: center;
}
.ge59-feature-item i, .ge59-feature-item .material-icons { font-size: 2rem; color: var(--ge59-gold); }
.ge59-feature-item h4 { color: var(--ge59-text-light); font-size: 1.2rem; margin: 4px 0 2px; }
.ge59-feature-item p { color: var(--ge59-text-dim); font-size: 1.1rem; }

/* === FAQ === */
.ge59-faq-item {
  background: var(--ge59-bg-charcoal); border-radius: 8px;
  margin-bottom: 6px; overflow: hidden;
}
.ge59-faq-q {
  padding: 10px 12px; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 1.3rem; color: var(--ge59-text-light); font-weight: 600;
}
.ge59-faq-q .ge59-faq-icon { color: var(--ge59-accent); transition: transform 0.3s; font-weight: 700; font-size: 1.6rem; }
.ge59-faq-a {
  max-height: 0; overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0 12px; color: var(--ge59-text-dim); font-size: 1.2rem;
}
.ge59-faq-item.ge59-open .ge59-faq-a { max-height: 240px; padding: 0 12px 10px; }
.ge59-faq-item.ge59-open .ge59-faq-icon { transform: rotate(45deg); }

/* === Testimonials === */
.ge59-testimonial-grid { display: grid; grid-template-columns: 1fr; gap: 8px; }
.ge59-testimonial {
  background: var(--ge59-bg-charcoal); border-radius: 10px;
  padding: 10px 12px; border-left: 3px solid var(--ge59-gold);
}
.ge59-testimonial-stars { color: var(--ge59-gold); font-size: 1.15rem; margin-bottom: 4px; }
.ge59-testimonial p { color: var(--ge59-text-dim); font-size: 1.2rem; margin-bottom: 6px; font-style: italic; }
.ge59-testimonial-author { color: var(--ge59-accent); font-size: 1.15rem; font-weight: 600; }

/* === Payment Methods === */
.ge59-payment-row { display: flex; gap: 6px; flex-wrap: wrap; }
.ge59-payment {
  background: var(--ge59-bg-charcoal); border: 1px solid var(--ge59-muted);
  border-radius: 8px; padding: 6px 10px; font-size: 1.1rem;
  color: var(--ge59-text-light); display: inline-flex; align-items: center; gap: 4px;
}
.ge59-payment i, .ge59-payment .material-icons { font-size: 1.4rem; color: var(--ge59-gold); }

/* === Winners === */
.ge59-winner-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 6px 10px; background: var(--ge59-bg-charcoal);
  border-radius: 6px; margin-bottom: 4px; font-size: 1.2rem;
}
.ge59-winner-name { color: var(--ge59-text-light); }
.ge59-winner-game { color: var(--ge59-text-dim); font-size: 1.05rem; }
.ge59-winner-amount { color: var(--ge59-gold); font-weight: 700; }

/* === RTP Table === */
.ge59-rtp-table { width: 100%; border-collapse: collapse; font-size: 1.2rem; }
.ge59-rtp-table th, .ge59-rtp-table td {
  padding: 7px 8px; text-align: left;
  border-bottom: 1px solid var(--ge59-muted);
}
.ge59-rtp-table th { color: var(--ge59-gold); background: var(--ge59-bg-deep); }
.ge59-rtp-table td { color: var(--ge59-text-dim); }
.ge59-rtp-table td.ge59-rtp-high { color: var(--ge59-green); font-weight: 700; }

/* === CTA Promo === */
.ge59-cta {
  background: linear-gradient(135deg, var(--ge59-primary), var(--ge59-accent));
  border-radius: var(--ge59-radius); padding: 16px;
  text-align: center; margin: 10px 0; box-shadow: var(--ge59-shadow);
}
.ge59-cta h3 { color: #fff; font-size: 1.7rem; margin-bottom: 4px; }
.ge59-cta p { color: rgba(255, 255, 255, 0.9); font-size: 1.2rem; margin-bottom: 10px; }
.ge59-cta-btn {
  display: inline-block; background: #fff; color: var(--ge59-primary);
  padding: 10px 22px; border-radius: 24px;
  font-weight: 700; font-size: 1.3rem; cursor: pointer;
  border: none; transition: all var(--ge59-transition);
}
.ge59-cta-btn:hover { transform: scale(1.04); background: var(--ge59-gold); color: #1a1a1a; }

/* === App Download CTA === */
.ge59-app-cta {
  background: var(--ge59-bg-charcoal); border-radius: var(--ge59-radius);
  padding: 14px; display: flex; align-items: center; gap: 12px;
  border-left: 3px solid var(--ge59-gold);
}
.ge59-app-cta-icon {
  width: 52px; height: 52px; border-radius: 10px;
  background: linear-gradient(135deg, var(--ge59-primary), var(--ge59-accent));
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 1.8rem; flex-shrink: 0;
}
.ge59-app-cta-text { flex: 1; }
.ge59-app-cta-text h4 { color: var(--ge59-gold); font-size: 1.35rem; margin-bottom: 2px; }
.ge59-app-cta-text p { color: var(--ge59-text-dim); font-size: 1.15rem; }
.ge59-app-cta-btn {
  background: linear-gradient(90deg, var(--ge59-gold), var(--ge59-accent));
  color: #fff; border: none; padding: 7px 14px;
  border-radius: 16px; font-size: 1.15rem; font-weight: 700;
  cursor: pointer; white-space: nowrap;
}

/* === Footer === */
.ge59-footer {
  background: var(--ge59-bg-deep);
  padding: 20px 12px 100px;
  margin-top: 18px;
  border-top: 2px solid var(--ge59-primary);
}
.ge59-footer-desc { color: var(--ge59-text-dim); font-size: 1.2rem; margin-bottom: 12px; line-height: 1.6; }
.ge59-footer-desc strong { color: var(--ge59-gold); }
.ge59-footer h4 { color: var(--ge59-gold); font-size: 1.3rem; margin: 12px 0 6px; }
.ge59-footer-links { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-bottom: 12px; }
.ge59-footer-links a { color: var(--ge59-text-dim); font-size: 1.15rem; }
.ge59-footer-links a:hover { color: var(--ge59-accent); }
.ge59-footer-promo { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0; }
.ge59-footer-promo button {
  background: linear-gradient(90deg, var(--ge59-primary), var(--ge59-accent));
  color: #fff; border: none; padding: 6px 12px;
  border-radius: 14px; font-size: 1.1rem; cursor: pointer;
  transition: transform var(--ge59-transition);
}
.ge59-footer-promo button:hover { transform: translateY(-2px); }
.ge59-footer-copyright {
  color: var(--ge59-muted); font-size: 1.05rem;
  text-align: center; margin-top: 10px; padding-top: 10px;
  border-top: 1px solid var(--ge59-muted);
}

/* === Bottom Nav === */
.ge59-bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0;
  background: linear-gradient(180deg, var(--ge59-bg-charcoal), var(--ge59-bg-deep));
  border-top: 2px solid var(--ge59-primary);
  display: flex; justify-content: space-around;
  padding: 6px 0; z-index: 1000;
  box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.3);
}
.ge59-bottom-nav-item {
  flex: 1; background: transparent; border: none;
  color: var(--ge59-text-dim);
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 6px 4px; min-width: 60px; min-height: 60px;
  cursor: pointer; transition: all var(--ge59-transition);
  border-radius: 8px; text-decoration: none;
}
.ge59-bottom-nav-item i,
.ge59-bottom-nav-item ion-icon,
.ge59-bottom-nav-item .material-icons { font-size: 2.1rem; }
.ge59-bottom-nav-item .ge59-bottom-label { font-size: 1rem; }
.ge59-bottom-nav-item:hover { color: var(--ge59-accent); transform: translateY(-2px); }
.ge59-bottom-nav-item.ge59-active { color: var(--ge59-gold); }
.ge59-bottom-nav-item.ge59-active::after {
  content: ''; display: block;
  width: 22px; height: 3px;
  background: var(--ge59-gold); border-radius: 2px; margin-top: 2px;
}

/* === Desktop layout: hide bottom nav, constrain width === */
@media (min-width: 769px) {
  .ge59-bottom-nav { display: none; }
  .ge59-footer { padding-bottom: 24px; }
  body { max-width: 430px; margin: 0 auto; border-left: 1px solid var(--ge59-muted); border-right: 1px solid var(--ge59-muted); }
}

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

@media (max-width: 360px) {
  html { font-size: 55%; }
  .ge59-game-grid { grid-template-columns: repeat(2, 1fr); }
}
