/* ===========================================================
 * nustar-apk.css - Mobile-first core styles (max-width: 430px)
 * All custom classes use the `ga3e-` prefix.
 * Palette: #FFCC33 (primary gold) | #2E4057 (dark bg) | #FFEBCD (cream text)
 * =========================================================== */

:root {
  --ga3e-primary: #FFCC33;
  --ga3e-primary-dark: #e5b328;
  --ga3e-bg: #2E4057;
  --ga3e-bg-deep: #1f2d3d;
  --ga3e-bg-light: #3a5170;
  --ga3e-text: #FFEBCD;
  --ga3e-text-muted: #c9d4e2;
  --ga3e-white: #ffffff;
  --ga3e-accent: #ff7a45;
  --ga3e-success: #34d399;
  --ga3e-shadow: 0 6px 22px rgba(0, 0, 0, 0.28);
  --ga3e-radius: 12px;
  --ga3e-radius-lg: 18px;
}

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

html {
  font-size: 62.5%; /* 1rem = 10px baseline */
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: "Segoe UI", "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  background: var(--ga3e-bg);
  color: var(--ga3e-text);
  line-height: 1.5rem;
  font-size: 1.4rem;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a { color: var(--ga3e-primary); text-decoration: none; }
a:hover { color: var(--ga3e-primary-dark); text-decoration: underline; }

/* ---------- Layout containers ---------- */
.ga3e-wrapper {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  position: relative;
  background: var(--ga3e-bg);
  min-height: 100vh;
}

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

main { display: block; padding-bottom: 90px; }

/* ---------- Header ---------- */
.ga3e-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: linear-gradient(135deg, var(--ga3e-bg-deep) 0%, var(--ga3e-bg) 100%);
  border-bottom: 2px solid var(--ga3e-primary);
  box-shadow: var(--ga3e-shadow);
}
.ga3e-header-inner {
  max-width: 430px;
  margin: 0 auto;
  padding: 0.6rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
}
.ga3e-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 800;
  font-size: 1.6rem;
  color: var(--ga3e-text);
}
.ga3e-logo img { width: 28px; height: 28px; border-radius: 6px; }
.ga3e-logo .ga3e-logo-text { color: var(--ga3e-primary); }

.ga3e-header-actions { display: flex; align-items: center; gap: 0.45rem; }

.ga3e-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  font-weight: 700;
  font-size: 1.25rem;
  border: none;
  border-radius: 8px;
  padding: 0.6rem 1rem;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
  min-height: 36px;
  line-height: 1;
}
.ga3e-btn:active { transform: scale(0.96); }
.ga3e-btn-primary {
  background: linear-gradient(135deg, var(--ga3e-primary) 0%, var(--ga3e-primary-dark) 100%);
  color: var(--ga3e-bg-deep);
  box-shadow: 0 3px 10px rgba(255, 204, 51, 0.35);
}
.ga3e-btn-outline {
  background: transparent;
  color: var(--ga3e-primary);
  border: 1.5px solid var(--ga3e-primary);
}
.ga3e-btn-block {
  width: 100%;
  padding: 0.95rem;
  font-size: 1.45rem;
}

.ga3e-icon-btn {
  background: transparent;
  border: none;
  color: var(--ga3e-text);
  font-size: 1.9rem;
  cursor: pointer;
  padding: 0.35rem;
  min-width: 36px;
  min-height: 36px;
  border-radius: 6px;
}
.ga3e-icon-btn:active { background: rgba(255, 204, 51, 0.12); }

/* ---------- Mobile slide-down menu ---------- */
.ga3e-mobile-menu {
  position: fixed;
  top: 56px; left: 0; right: 0;
  z-index: 9999;
  background: var(--ga3e-bg-deep);
  border-bottom: 2px solid var(--ga3e-primary);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.28s ease;
}
.ga3e-mobile-menu.ga3e-menu-open { max-height: 460px; }
.ga3e-mobile-menu-inner {
  max-width: 430px;
  margin: 0 auto;
  padding: 0.6rem 1rem 1rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.35rem;
}
.ga3e-mobile-menu a {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.8rem 0.7rem;
  color: var(--ga3e-text);
  border-radius: 8px;
  font-weight: 600;
  font-size: 1.3rem;
}
.ga3e-mobile-menu a:hover { background: rgba(255, 204, 51, 0.1); text-decoration: none; }
.ga3e-mobile-menu a i, .ga3e-mobile-menu a span.mi { color: var(--ga3e-primary); font-size: 1.6rem; }

/* ---------- Hero carousel ---------- */
.ga3e-hero {
  margin-top: 60px;
  position: relative;
  overflow: hidden;
  border-radius: 0 0 var(--ga3e-radius-lg) var(--ga3e-radius-lg);
}
.ga3e-carousel { position: relative; width: 100%; }
.ga3e-slide {
  position: relative;
  display: none;
  width: 100%;
  height: 200px;
}
.ga3e-slide.ga3e-slide-active { display: block; }
.ga3e-slide img { width: 100%; height: 200px; object-fit: cover; border-radius: 0 0 var(--ga3e-radius-lg) var(--ga3e-radius-lg); }
.ga3e-slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(46,64,87,0.15) 0%, rgba(31,45,61,0.85) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1rem 1.2rem 1.4rem;
}
.ga3e-slide-title { color: var(--ga3e-primary); font-weight: 800; font-size: 1.7rem; margin-bottom: 0.3rem; }
.ga3e-slide-sub { color: var(--ga3e-text); font-size: 1.25rem; margin-bottom: 0.6rem; }
.ga3e-dots {
  position: absolute;
  bottom: 0.7rem;
  left: 0; right: 0;
  display: flex;
  justify-content: center;
  gap: 0.4rem;
  z-index: 2;
}
.ga3e-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255, 235, 205, 0.4);
  border: none; cursor: pointer;
}
.ga3e-dot.ga3e-dot-active { background: var(--ga3e-primary); width: 22px; border-radius: 4px; }

/* ---------- Sections ---------- */
.ga3e-section {
  padding: 1.6rem 0 0.4rem;
}
.ga3e-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.9rem;
}
.ga3e-section-title {
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--ga3e-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.ga3e-section-more { font-size: 1.15rem; font-weight: 600; }
.ga3e-h1 {
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--ga3e-primary);
  margin: 0.6rem 0 0.4rem;
  line-height: 1.25;
}
.ga3e-h2 {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--ga3e-text);
  margin: 1.2rem 0 0.6rem;
}
.ga3e-h3 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--ga3e-primary);
  margin: 0.9rem 0 0.4rem;
}
.ga3e-lead { color: var(--ga3e-text-muted); font-size: 1.25rem; margin-bottom: 0.6rem; }
.ga3e-p { margin-bottom: 0.75rem; color: var(--ga3e-text); }

/* ---------- Game grid ---------- */
.ga3e-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
}
.ga3e-game-card {
  background: var(--ga3e-bg-light);
  border-radius: var(--ga3e-radius);
  padding: 0.5rem;
  text-align: center;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
  overflow: hidden;
  border: 1px solid rgba(255, 204, 51, 0.12);
}
.ga3e-game-card:active { transform: scale(0.95); }
.ga3e-game-card img {
  width: 100%;
  height: 84px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 0.35rem;
}
.ga3e-game-name {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--ga3e-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ---------- Category header pill ---------- */
.ga3e-cat-head {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 0.9rem;
  background: linear-gradient(90deg, var(--ga3e-bg-deep), var(--ga3e-bg-light));
  border-radius: var(--ga3e-radius);
  margin: 1.2rem 0 0.7rem;
  border-left: 4px solid var(--ga3e-primary);
}
.ga3e-cat-head i, .ga3e-cat-head .mi { color: var(--ga3e-primary); font-size: 1.7rem; }
.ga3e-cat-title { font-size: 1.4rem; font-weight: 700; color: var(--ga3e-text); }

/* ---------- Cards / feature / step ---------- */
.ga3e-card {
  background: var(--ga3e-bg-light);
  border-radius: var(--ga3e-radius);
  padding: 1rem;
  margin-bottom: 0.7rem;
  border: 1px solid rgba(255, 204, 51, 0.15);
}
.ga3e-card-title { font-size: 1.3rem; font-weight: 700; color: var(--ga3e-primary); margin-bottom: 0.35rem; }

.ga3e-feature-row {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  padding: 0.7rem 0;
  border-bottom: 1px dashed rgba(255, 235, 205, 0.12);
}
.ga3e-feature-row:last-child { border-bottom: none; }
.ga3e-feature-icon {
  flex-shrink: 0;
  width: 36px; height: 36px;
  border-radius: 8px;
  background: rgba(255, 204, 51, 0.15);
  color: var(--ga3e-primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem;
}

.ga3e-step-list { list-style: none; counter-reset: ga3estep; }
.ga3e-step-list li {
  position: relative;
  padding: 0.55rem 0 0.55rem 2.6rem;
  counter-increment: ga3estep;
  color: var(--ga3e-text);
}
.ga3e-step-list li::before {
  content: counter(ga3estep);
  position: absolute;
  left: 0; top: 0.45rem;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--ga3e-primary);
  color: var(--ga3e-bg-deep);
  font-weight: 800;
  font-size: 1.1rem;
  display: flex; align-items: center; justify-content: center;
}

/* ---------- RTP table ---------- */
.ga3e-rtp-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--ga3e-bg-light);
  border-radius: var(--ga3e-radius);
  overflow: hidden;
}
.ga3e-rtp-table th, .ga3e-rtp-table td {
  padding: 0.6rem 0.7rem;
  text-align: left;
  font-size: 1.15rem;
  border-bottom: 1px solid rgba(255, 235, 205, 0.08);
}
.ga3e-rtp-table th { background: var(--ga3e-bg-deep); color: var(--ga3e-primary); }
.ga3e-rtp-table td.ga3e-rt-num { color: var(--ga3e-success); font-weight: 700; }

/* ---------- FAQ ---------- */
.ga3e-faq-item {
  background: var(--ga3e-bg-light);
  border-radius: var(--ga3e-radius);
  margin-bottom: 0.55rem;
  overflow: hidden;
  border: 1px solid rgba(255, 204, 51, 0.12);
}
.ga3e-faq-q {
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  padding: 0.85rem 1rem;
  color: var(--ga3e-text);
  font-weight: 700;
  font-size: 1.25rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
}
.ga3e-faq-q .ga3e-faq-icon { color: var(--ga3e-primary); transition: transform 0.2s ease; }
.ga3e-faq-item.ga3e-faq-open .ga3e-faq-icon { transform: rotate(45deg); }
.ga3e-faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
  padding: 0 1rem;
  color: var(--ga3e-text-muted);
  font-size: 1.15rem;
}
.ga3e-faq-item.ga3e-faq-open .ga3e-faq-a { max-height: 320px; padding: 0 1rem 0.9rem; }

/* ---------- Testimonial / winner ---------- */
.ga3e-testi {
  background: var(--ga3e-bg-light);
  border-radius: var(--ga3e-radius);
  padding: 0.8rem;
  margin-bottom: 0.55rem;
  border-left: 3px solid var(--ga3e-primary);
}
.ga3e-testi-name { color: var(--ga3e-primary); font-weight: 700; font-size: 1.2rem; }
.ga3e-testi-stars { color: var(--ga3e-primary); font-size: 1.1rem; margin: 0.2rem 0; }
.ga3e-testi-text { color: var(--ga3e-text-muted); font-size: 1.15rem; }

.ga3e-winner-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.45rem 0.6rem;
  background: var(--ga3e-bg-light);
  border-radius: 8px;
  margin-bottom: 0.4rem;
  font-size: 1.15rem;
}
.ga3e-winner-name { color: var(--ga3e-text); font-weight: 600; }
.ga3e-winner-amount { color: var(--ga3e-success); font-weight: 800; }

/* ---------- Payment chips ---------- */
.ga3e-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.ga3e-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--ga3e-bg-light);
  color: var(--ga3e-text);
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  font-size: 1.15rem;
  border: 1px solid rgba(255, 204, 51, 0.2);
}
.ga3e-chip i, .ga3e-chip .mi { color: var(--ga3e-primary); }

/* ---------- Promo CTA banner ---------- */
.ga3e-cta {
  background: linear-gradient(135deg, var(--ga3e-primary) 0%, var(--ga3e-accent) 100%);
  color: var(--ga3e-bg-deep);
  border-radius: var(--ga3e-radius-lg);
  padding: 1.1rem;
  text-align: center;
  margin: 1rem 0;
}
.ga3e-cta-title { font-size: 1.55rem; font-weight: 800; margin-bottom: 0.3rem; }
.ga3e-cta-text { font-size: 1.2rem; margin-bottom: 0.7rem; }
.ga3e-cta .ga3e-btn { background: var(--ga3e-bg-deep); color: var(--ga3e-primary); }

/* ---------- Footer ---------- */
.ga3e-footer {
  background: var(--ga3e-bg-deep);
  border-top: 2px solid var(--ga3e-primary);
  padding: 1.5rem 0 1.2rem;
  margin-top: 1.2rem;
}
.ga3e-footer-brand { color: var(--ga3e-text); font-size: 1.2rem; margin-bottom: 0.8rem; }
.ga3e-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.8rem;
  margin-bottom: 0.8rem;
}
.ga3e-footer-links a { color: var(--ga3e-text-muted); font-size: 1.15rem; }
.ga3e-footer-links a:hover { color: var(--ga3e-primary); }
.ga3e-footer-promo { display: flex; flex-wrap: wrap; gap: 0.45rem; margin: 0.7rem 0; }
.ga3e-footer-copy { color: var(--ga3e-text-muted); font-size: 1.1rem; border-top: 1px solid rgba(255, 235, 205, 0.08); padding-top: 0.7rem; }

/* ---------- Bottom navigation ---------- */
.ga3e-bottom-nav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 1000;
  height: 62px;
  background: linear-gradient(180deg, var(--ga3e-bg-deep) 0%, #182434 100%);
  border-top: 2px solid var(--ga3e-primary);
  display: flex;
  justify-content: space-around;
  align-items: stretch;
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.35);
}
.ga3e-bottom-nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  background: transparent;
  border: none;
  color: var(--ga3e-text-muted);
  cursor: pointer;
  min-width: 60px;
  min-height: 60px;
  padding: 0.3rem;
  font-size: 1rem;
  transition: color 0.15s ease, transform 0.12s ease;
}
.ga3e-bottom-nav-item:active { transform: scale(0.92); }
.ga3e-bottom-nav-item i,
.ga3e-bottom-nav-item .mi,
.ga3e-bottom-nav-item ion-icon { font-size: 22px; color: var(--ga3e-text-muted); }
.ga3e-bottom-nav-item.ga3e-active { color: var(--ga3e-primary); }
.ga3e-bottom-nav-item.ga3e-active i,
.ga3e-bottom-nav-item.ga3e-active .mi,
.ga3e-bottom-nav-item.ga3e-active ion-icon { color: var(--ga3e-primary); }
.ga3e-bottom-nav-item.ga3e-promo {
  position: relative;
}
.ga3e-bottom-nav-item.ga3e-promo::before {
  content: "";
  position: absolute;
  top: -10px;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--ga3e-primary), var(--ga3e-accent));
  z-index: 0;
  box-shadow: 0 3px 10px rgba(255, 122, 69, 0.4);
}
.ga3e-bottom-nav-item.ga3e-promo i,
.ga3e-bottom-nav-item.ga3e-promo ion-icon {
  position: relative;
  z-index: 1;
  color: var(--ga3e-bg-deep);
  font-size: 22px;
  margin-top: -10px;
}
.ga3e-bottom-nav-item.ga3e-promo span { margin-top: 6px; }

/* ---------- Back-to-top ---------- */
.ga3e-to-top {
  position: fixed;
  right: 1rem;
  bottom: 76px;
  z-index: 1100;
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--ga3e-primary);
  color: var(--ga3e-bg-deep);
  border: none;
  font-size: 1.6rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.12s ease;
  box-shadow: var(--ga3e-shadow);
}
.ga3e-to-top.ga3e-to-top-show { opacity: 1; visibility: visible; }
.ga3e-to-top:active { transform: scale(0.9); }

/* ---------- Helpers ---------- */
.ga3e-text-center { text-align: center; }
.ga3e-mt-1 { margin-top: 0.6rem; }
.ga3e-mt-2 { margin-top: 1.2rem; }
.ga3e-mb-1 { margin-bottom: 0.6rem; }
.ga3e-promo-link { color: var(--ga3e-primary); font-weight: 700; }
.ga3e-promo-link:hover { text-decoration: underline; }

/* ---------- Responsive: hide bottom nav on desktop ---------- */
@media (min-width: 769px) {
  .ga3e-bottom-nav { display: none; }
  .ga3e-wrapper { max-width: 430px; }
  main { padding-bottom: 1.5rem; }
}

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