/* nustar game - shared stylesheet */
/* All custom classes use the ga56- prefix */

:root {
  --ga56-primary: #3CB371;
  --ga56-accent: #00FF00;
  --ga56-bg: #0C0C0C;
  --ga56-surface: #141414;
  --ga56-surface2: #1c1c1c;
  --ga56-text: #E9ECEF;
  --ga56-muted: #8FBC8F;
  --ga56-gold: #FFCC02;
  --ga56-border: rgba(60,179,113,0.25);
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { font-size: 62.5%; -webkit-text-size-adjust: 100%; }
body {
  font-family: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  background: var(--ga56-bg);
  color: var(--ga56-text);
  line-height: 1.5rem;
  font-size: 1.4rem;
  overflow-x: hidden;
  max-width: 430px;
  margin: 0 auto;
  position: relative;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--ga56-accent); text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

.ga56-container { width: 100%; padding: 0 1.2rem; }
.ga56-wrapper { max-width: 430px; margin: 0 auto; }

/* ===== Header ===== */
.ga56-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: linear-gradient(180deg, #0a0a0a 0%, #0C0C0C 100%);
  border-bottom: 1px solid var(--ga56-border);
  box-shadow: 0 2px 10px rgba(0,0,0,0.4);
}
.ga56-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 1rem;
  gap: 0.6rem;
}
.ga56-logo { display: flex; align-items: center; gap: 0.6rem; flex: 1; min-width: 0; }
.ga56-logo img { width: 28px; height: 28px; border-radius: 6px; }
.ga56-logo span {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--ga56-gold);
  letter-spacing: 0.3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ga56-header-actions { display: flex; gap: 0.5rem; align-items: center; }
.ga56-menu-btn {
  width: 40px; height: 40px;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--ga56-text);
  font-size: 22px;
  border-radius: 8px;
  background: var(--ga56-surface2);
}
.ga56-menu-btn:active { transform: scale(0.94); }
.ga56-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
  padding: 0.6rem 1rem;
  border-radius: 24px;
  font-size: 1.2rem;
  font-weight: 700;
  min-height: 36px;
  transition: transform 0.15s, opacity 0.15s;
}
.ga56-btn:active { transform: scale(0.95); }
.ga56-btn-register {
  background: linear-gradient(90deg, var(--ga56-primary), var(--ga56-accent));
  color: #001a00;
  box-shadow: 0 2px 8px rgba(0,255,0,0.25);
}
.ga56-btn-login {
  background: transparent;
  color: var(--ga56-gold);
  border: 1px solid var(--ga56-gold);
}

/* ===== Mobile menu ===== */
.ga56-mobile-menu {
  position: fixed;
  top: 0; right: 0;
  width: 78%; max-width: 320px;
  height: 100vh;
  background: var(--ga56-surface);
  z-index: 9999;
  transform: translateX(100%);
  transition: transform 0.25s ease;
  padding: 6rem 1.2rem 2rem;
  overflow-y: auto;
  border-left: 1px solid var(--ga56-border);
}
.ga56-mobile-menu.ga56-menu-open { transform: translateX(0); }
.ga56-menu-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.6); z-index: 9998; }
.ga56-menu-overlay.ga56-menu-open { display: block; }
.ga56-mobile-menu h3 {
  color: var(--ga56-gold); font-size: 1.4rem; margin: 1.2rem 0 0.6rem;
  padding-bottom: 0.4rem; border-bottom: 1px solid var(--ga56-border);
}
.ga56-mobile-menu a {
  display: block; padding: 0.7rem 0; color: var(--ga56-text);
  font-size: 1.3rem; border-bottom: 1px dashed rgba(143,188,143,0.2);
}
.ga56-mobile-menu a:active { color: var(--ga56-accent); }
.ga56-menu-close {
  position: absolute; top: 1rem; right: 1rem;
  width: 40px; height: 40px; color: var(--ga56-text); font-size: 22px;
}

/* ===== Hero / Carousel ===== */
.ga56-hero {
  position: relative;
  width: 100%;
  height: 190px;
  overflow: hidden;
  background: var(--ga56-surface);
}
.ga56-hero-slide {
  position: absolute; inset: 0;
  opacity: 0; transition: opacity 0.6s ease;
  display: flex; align-items: flex-end;
}
.ga56-hero-slide.ga56-hero-active { opacity: 1; }
.ga56-hero-slide img { width: 100%; height: 100%; object-fit: cover; }
.ga56-hero-caption {
  position: absolute; left: 1rem; right: 1rem; bottom: 1.2rem;
  background: linear-gradient(0deg, rgba(0,0,0,0.85), rgba(0,0,0,0));
  padding: 1.2rem 1rem 0.8rem; border-radius: 10px;
}
.ga56-hero-caption h2 { color: var(--ga56-gold); font-size: 1.6rem; margin-bottom: 0.3rem; }
.ga56-hero-caption p { color: var(--ga56-text); font-size: 1.2rem; margin-bottom: 0.6rem; }
.ga56-hero-cta { font-weight: 700; color: var(--ga56-accent); font-size: 1.25rem; }
.ga56-hero-prev, .ga56-hero-next {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(0,0,0,0.45); color: #fff; font-size: 18px;
  display: inline-flex; align-items: center; justify-content: center;
  z-index: 2;
}
.ga56-hero-prev { left: 8px; }
.ga56-hero-next { right: 8px; }
.ga56-hero-dots {
  position: absolute; bottom: 6px; left: 0; right: 0;
  display: flex; gap: 6px; justify-content: center; z-index: 2;
}
.ga56-hero-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: rgba(255,255,255,0.35);
}
.ga56-hero-dot.ga56-dot-active { background: var(--ga56-gold); width: 18px; border-radius: 4px; }

/* ===== Sections ===== */
.ga56-section { padding: 1.6rem 1.2rem; }
.ga56-section-title {
  display: flex; align-items: center; gap: 0.6rem;
  font-size: 1.5rem; font-weight: 700; color: var(--ga56-gold);
  margin-bottom: 0.8rem; padding-bottom: 0.4rem;
  border-bottom: 2px solid var(--ga56-primary);
}
.ga56-section-title i { font-size: 20px; color: var(--ga56-accent); }
.ga56-section-sub { color: var(--ga56-muted); font-size: 1.2rem; margin-bottom: 1rem; }

/* ===== H1 ===== */
.ga56-h1 {
  font-size: 1.9rem; font-weight: 800; color: var(--ga56-gold);
  text-align: center; padding: 1rem 1rem 0.5rem; line-height: 1.3;
}
.ga56-h1-desc { text-align: center; color: var(--ga56-muted); font-size: 1.2rem; padding: 0 1.5rem 1rem; }

/* ===== Game grid ===== */
.ga56-filter-bar {
  display: flex; gap: 0.5rem; overflow-x: auto; padding: 0.4rem 0 1rem;
  -ms-overflow-style: none; scrollbar-width: none;
}
.ga56-filter-bar::-webkit-scrollbar { display: none; }
.ga56-filter-tab {
  white-space: nowrap; padding: 0.45rem 0.9rem;
  border-radius: 16px; background: var(--ga56-surface2);
  color: var(--ga56-text); font-size: 1.15rem; border: 1px solid transparent;
}
.ga56-filter-tab.ga56-filter-active {
  background: var(--ga56-primary); color: #001a00; font-weight: 700;
}
.ga56-game-section { margin-bottom: 1.4rem; }
.ga56-game-section h3 {
  color: var(--ga56-gold); font-size: 1.3rem; margin: 0.6rem 0 0.8rem;
  display: flex; align-items: center; gap: 0.4rem;
}
.ga56-game-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
}
.ga56-game-card {
  background: var(--ga56-surface2);
  border-radius: 8px; overflow: hidden;
  border: 1px solid var(--ga56-border);
  transition: transform 0.15s;
}
.ga56-game-card:active { transform: scale(0.96); }
.ga56-game-card img { width: 100%; aspect-ratio: 1/1; object-fit: cover; }
.ga56-game-card .ga56-game-name {
  font-size: 1.05rem; padding: 0.4rem 0.5rem;
  text-align: center; color: var(--ga56-text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* ===== Cards / features ===== */
.ga56-card {
  background: var(--ga56-surface);
  border: 1px solid var(--ga56-border);
  border-radius: 10px; padding: 1rem; margin-bottom: 0.8rem;
}
.ga56-card h3 { color: var(--ga56-gold); font-size: 1.3rem; margin-bottom: 0.4rem; }
.ga56-card p { color: var(--ga56-text); font-size: 1.2rem; }
.ga56-feature-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 0.6rem; }
.ga56-feature-item {
  background: var(--ga56-surface2); border-radius: 10px; padding: 0.9rem;
  text-align: center; border: 1px solid var(--ga56-border);
}
.ga56-feature-item i { font-size: 26px; color: var(--ga56-accent); margin-bottom: 0.4rem; }
.ga56-feature-item h4 { color: var(--ga56-gold); font-size: 1.15rem; margin-bottom: 0.2rem; }
.ga56-feature-item p { color: var(--ga56-muted); font-size: 1.05rem; }

/* ===== RTP table ===== */
.ga56-rtp-table { width: 100%; border-collapse: collapse; font-size: 1.15rem; }
.ga56-rtp-table th, .ga56-rtp-table td {
  padding: 0.55rem 0.5rem; text-align: left;
  border-bottom: 1px solid var(--ga56-border);
}
.ga56-rtp-table th { color: var(--ga56-gold); background: var(--ga56-surface2); }
.ga56-rtp-table td { color: var(--ga56-text); }
.ga56-rtp-high { color: var(--ga56-accent); font-weight: 700; }
.ga56-rtp-bar { height: 6px; background: #222; border-radius: 3px; overflow: hidden; }
.ga56-rtp-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--ga56-primary), var(--ga56-accent)); }

/* ===== Promotions ===== */
.ga56-promo {
  background: linear-gradient(135deg, rgba(60,179,113,0.18), rgba(255,204,2,0.12));
  border: 1px solid var(--ga56-border); border-radius: 12px;
  padding: 1rem; margin-bottom: 0.8rem;
}
.ga56-promo h3 { color: var(--ga56-gold); font-size: 1.3rem; margin-bottom: 0.3rem; }
.ga56-promo p { color: var(--ga56-text); font-size: 1.2rem; margin-bottom: 0.6rem; }

/* ===== Testimonials ===== */
.ga56-testimonial {
  background: var(--ga56-surface2); border-radius: 10px; padding: 0.9rem;
  margin-bottom: 0.6rem; border-left: 3px solid var(--ga56-primary);
}
.ga56-testimonial .ga56-stars { color: var(--ga56-gold); font-size: 1.1rem; margin-bottom: 0.3rem; }
.ga56-testimonial p { color: var(--ga56-text); font-size: 1.15rem; margin-bottom: 0.3rem; }
.ga56-testimonial span { color: var(--ga56-muted); font-size: 1.05rem; }

/* ===== Payment methods ===== */
.ga56-pay-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 0.5rem; }
.ga56-pay-item {
  background: var(--ga56-surface2); border-radius: 8px; padding: 0.7rem;
  text-align: center; border: 1px solid var(--ga56-border);
}
.ga56-pay-item span { display: block; color: var(--ga56-text); font-size: 1.05rem; margin-top: 0.2rem; }

/* ===== Winners ===== */
.ga56-winner {
  display: flex; align-items: center; gap: 0.6rem;
  background: var(--ga56-surface2); padding: 0.7rem; border-radius: 8px;
  margin-bottom: 0.5rem; border: 1px solid var(--ga56-border);
}
.ga56-winner .ga56-winner-amount { color: var(--ga56-gold); font-weight: 700; font-size: 1.3rem; }
.ga56-winner small { color: var(--ga56-muted); display: block; font-size: 1.05rem; }

/* ===== App CTA ===== */
.ga56-app-cta {
  background: linear-gradient(135deg, var(--ga56-primary), #0a4a2a);
  border-radius: 12px; padding: 1.2rem; text-align: center;
}
.ga56-app-cta h3 { color: #fff; font-size: 1.5rem; margin-bottom: 0.4rem; }
.ga56-app-cta p { color: rgba(255,255,255,0.92); font-size: 1.2rem; margin-bottom: 0.8rem; }
.ga56-app-cta .ga56-btn { background: var(--ga56-gold); color: #1a1a1a; margin: 0.2rem; }

/* ===== FAQ ===== */
.ga56-faq-item {
  background: var(--ga56-surface); border: 1px solid var(--ga56-border);
  border-radius: 8px; margin-bottom: 0.5rem; overflow: hidden;
}
.ga56-faq-q {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0.8rem 1rem; width: 100%; text-align: left;
  font-size: 1.2rem; color: var(--ga56-text); font-weight: 600;
}
.ga56-faq-icon { color: var(--ga56-gold); font-size: 1.5rem; }
.ga56-faq-a { display: none; padding: 0 1rem 0.8rem; color: var(--ga56-muted); font-size: 1.15rem; }
.ga56-faq-open .ga56-faq-a { display: block; }

/* ===== Play Now CTA ===== */
.ga56-play-now {
  position: sticky; bottom: 70px; z-index: 500;
  margin: 1rem; padding: 0.9rem; text-align: center;
  background: linear-gradient(90deg, var(--ga56-primary), var(--ga56-accent));
  color: #001a00; font-weight: 800; font-size: 1.4rem;
  border-radius: 30px; box-shadow: 0 4px 14px rgba(0,255,0,0.3);
}

/* ===== Footer ===== */
.ga56-footer {
  background: #050505; border-top: 1px solid var(--ga56-border);
  padding: 1.4rem 1.2rem 2rem; margin-top: 1rem;
}
.ga56-footer h4 { color: var(--ga56-gold); font-size: 1.2rem; margin: 0.8rem 0 0.4rem; }
.ga56-footer p { color: var(--ga56-muted); font-size: 1.1rem; margin-bottom: 0.6rem; }
.ga56-footer-links { display: flex; flex-wrap: wrap; gap: 0.5rem 0.8rem; margin: 0.4rem 0; }
.ga56-footer-links a { color: var(--ga56-text); font-size: 1.1rem; }
.ga56-footer-links a:active { color: var(--ga56-accent); }
.ga56-footer-buttons { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0.8rem 0; }
.ga56-footer-buttons .ga56-btn { padding: 0.5rem 0.9rem; font-size: 1.1rem; }
.ga56-copy { color: var(--ga56-muted); font-size: 1.05rem; text-align: center; margin-top: 0.8rem; }

/* ===== Promo inline link ===== */
.ga56-link { color: var(--ga56-accent); font-weight: 700; }
.ga56-link:active { color: var(--ga56-gold); }

/* ===== Mobile bottom nav ===== */
.ga56-bottom-nav {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 430px;
  height: 60px; z-index: 1000;
  background: linear-gradient(180deg, #0a0a0a, #000);
  border-top: 1px solid var(--ga56-border);
  display: flex; justify-content: space-around; align-items: center;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.5);
}
.ga56-bottom-nav a {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-width: 60px; min-height: 60px; color: var(--ga56-muted);
  font-size: 1rem; gap: 2px; transition: color 0.15s, transform 0.15s;
}
.ga56-bottom-nav a i { font-size: 22px; }
.ga56-bottom-nav a:active { transform: scale(0.92); color: var(--ga56-accent); }
.ga56-bottom-nav a.ga56-nav-active { color: var(--ga56-gold); }
.ga56-bottom-nav a.ga56-nav-active i { color: var(--ga56-accent); }

/* Desktop hides bottom nav */
@media (min-width: 769px) {
  .ga56-bottom-nav { display: none; }
  body { max-width: 100%; }
}

/* Mobile bottom padding for main content */
@media (max-width: 768px) {
  main { padding-bottom: 80px; }
}

/* Desktop layout expands grids */
@media (min-width: 431px) {
  .ga56-wrapper { max-width: 960px; }
  .ga56-game-grid { grid-template-columns: repeat(4, 1fr); }
  .ga56-feature-grid { grid-template-columns: repeat(3,1fr); }
  .ga56-pay-grid { grid-template-columns: repeat(6,1fr); }
}

/* Accessibility focus */
a:focus-visible, button:focus-visible { outline: 2px solid var(--ga56-gold); outline-offset: 2px; }