/* =========================================================
   nunstar.homes - Core stylesheet (theme-10a4.css)
   Every custom selector is prefixed with "ga46-".
   Palette: #141414 (bg) | #F5F5F5 (text) | #708090 (accent)
   Mobile-first, max viewport 430px.
   ========================================================= */

:root {
  --ga46-bg: #141414;
  --ga46-bg-soft: #1d1f22;
  --ga46-bg-card: #23262b;
  --ga46-bg-elevated: #2c3036;
  --ga46-text: #f5f5f5;
  --ga46-text-muted: #c7ccd2;
  --ga46-primary: #708090;
  --ga46-primary-light: #8a9aab;
  --ga46-primary-dark: #4f5b68;
  --ga46-accent: #e6b54a;
  --ga46-accent-hot: #ff5a5f;
  --ga46-success: #2ecc71;
  --ga46-border: rgba(245, 245, 245, 0.08);
  --ga46-radius: 12px;
  --ga46-radius-lg: 18px;
  --ga46-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  --ga46-header-h: 56px;
  --ga46-bottom-h: 62px;
  --ga46-max-w: 430px;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; }
html { font-size: 62.5%; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, system-ui, sans-serif;
  background: var(--ga46-bg);
  color: var(--ga46-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(--ga46-accent); text-decoration: none; }
h1, h2, h3, h4 { margin: 0 0 0.6rem; line-height: 1.25; font-weight: 700; }
h1 { font-size: 2.1rem; }
h2 { font-size: 1.8rem; }
h3 { font-size: 1.55rem; }
p { margin: 0 0 1rem; color: var(--ga46-text-muted); }
ul { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

/* ---- Layout primitives ---- */
.ga46-wrapper {
  width: 100%;
  max-width: var(--ga46-max-w);
  margin: 0 auto;
  padding: 0 1.2rem;
  position: relative;
}
.ga46-container { padding: 1.6rem 0; }
.ga46-section { padding: 2rem 0; border-top: 1px solid var(--ga46-border); }
.ga46-section-alt { background: var(--ga46-bg-soft); }
.ga46-section-title {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.2rem;
}
.ga46-section-title h2 { margin: 0; flex: 1; }
.ga46-section-title .material-icons,
.ga46-section-title .fas,
.ga46-section-title .bi { color: var(--ga46-accent); font-size: 2rem; }

/* ---- Header ---- */
.ga46-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--ga46-header-h);
  background: rgba(20, 20, 20, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--ga46-border);
  z-index: 1000;
}
.ga46-header-inner {
  max-width: var(--ga46-max-w);
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.2rem;
  gap: 0.6rem;
}
.ga46-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-width: 0;
}
.ga46-logo img { width: 28px; height: 28px; border-radius: 6px; }
.ga46-logo-text {
  font-weight: 800;
  font-size: 1.6rem;
  letter-spacing: 0.04em;
  color: var(--ga46-text);
  text-transform: lowercase;
}
.ga46-logo-text b { color: var(--ga46-accent); }
.ga46-header-actions { display: flex; align-items: center; gap: 0.5rem; }
.ga46-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1.25rem;
  min-height: 36px;
  transition: transform 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
  border: 1px solid transparent;
}
.ga46-btn:active { transform: scale(0.96); }
.ga46-btn-login {
  background: transparent;
  color: var(--ga46-text);
  border-color: var(--ga46-primary);
}
.ga46-btn-register {
  background: linear-gradient(135deg, var(--ga46-accent), #d99a2b);
  color: #1a1a1a;
  box-shadow: 0 4px 14px rgba(230, 181, 74, 0.35);
}
.ga46-menu-btn {
  width: 36px; height: 36px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--ga46-bg-card);
  color: var(--ga46-text);
}
.ga46-menu-btn .material-icons { font-size: 2.2rem; }

/* ---- Mobile slide-down menu ---- */
.ga46-mobile-menu {
  position: fixed;
  top: var(--ga46-header-h);
  left: 0; right: 0;
  background: var(--ga46-bg-soft);
  border-bottom: 1px solid var(--ga46-border);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  z-index: 9999;
}
.ga46-mobile-menu.ga46-menu-open { max-height: 80vh; overflow-y: auto; }
.ga46-mobile-menu-inner { max-width: var(--ga46-max-w); margin: 0 auto; padding: 1rem 1.2rem; }
.ga46-mobile-menu a {
  display: block;
  padding: 0.85rem 0.6rem;
  border-bottom: 1px solid var(--ga46-border);
  color: var(--ga46-text);
  font-weight: 600;
}
.ga46-mobile-menu a:active { background: var(--ga46-bg-card); }

/* ---- Main padding to clear fixed header / bottom nav ---- */
main { padding-top: calc(var(--ga46-header-h) + 0.4rem); }

/* ---- Hero / Carousel ---- */
.ga46-carousel {
  position: relative;
  border-radius: var(--ga46-radius-lg);
  overflow: hidden;
  box-shadow: var(--ga46-shadow);
  margin-top: 1rem;
}
.ga46-slide {
  position: relative;
  display: none;
  cursor: pointer;
}
.ga46-slide.ga46-slide-active { display: block; }
.ga46-slide img { width: 100%; height: 200px; object-fit: cover; }
.ga46-slide-caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 1.2rem;
  background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.75) 100%);
  color: var(--ga46-text);
}
.ga46-slide-caption h3 { margin: 0 0 0.3rem; color: var(--ga46-accent); }
.ga46-slide-caption p { margin: 0; font-size: 1.25rem; color: var(--ga46-text-muted); }
.ga46-dot-row {
  position: absolute;
  bottom: 8px; left: 0; right: 0;
  display: flex; justify-content: center; gap: 6px;
}
.ga46-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(245,245,245,0.4);
  cursor: pointer;
}
.ga46-dot.ga46-dot-active { background: var(--ga46-accent); width: 22px; border-radius: 4px; }

/* ---- Promo strip ---- */
.ga46-promo-strip {
  display: flex;
  gap: 0.6rem;
  margin: 1.2rem 0;
  flex-wrap: wrap;
}
.ga46-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  background: var(--ga46-bg-card);
  color: var(--ga46-text);
  font-size: 1.15rem;
  border: 1px solid var(--ga46-border);
}
.ga46-pill .material-icons { font-size: 1.4rem; color: var(--ga46-accent); }

/* ---- H1 / page intro ---- */
.ga46-hero-title {
  font-size: 2.3rem;
  font-weight: 800;
  margin: 1.2rem 0 0.6rem;
  line-height: 1.2;
}
.ga46-hero-title span { color: var(--ga46-accent); }
.ga46-hero-sub { font-size: 1.35rem; color: var(--ga46-text-muted); }

/* ---- Filter tabs ---- */
.ga46-filter-row {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding: 0.6rem 0 1rem;
  scrollbar-width: none;
}
.ga46-filter-row::-webkit-scrollbar { display: none; }
.ga46-filter-tab {
  padding: 0.5rem 1.1rem;
  border-radius: 999px;
  background: var(--ga46-bg-card);
  color: var(--ga46-text-muted);
  font-size: 1.2rem;
  font-weight: 600;
  white-space: nowrap;
  border: 1px solid var(--ga46-border);
}
.ga46-filter-tab.ga46-nav-active {
  background: var(--ga46-accent);
  color: #1a1a1a;
  border-color: var(--ga46-accent);
}

/* ---- Game grid ---- */
.ga46-game-group h3 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 1.4rem 0 0.9rem;
  color: var(--ga46-text);
}
.ga46-game-group h3 .badge {
  font-size: 1rem;
  background: var(--ga46-primary-dark);
  color: var(--ga46-text);
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
}
.ga46-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.7rem;
}
.ga46-game-card {
  background: var(--ga46-bg-card);
  border-radius: var(--ga46-radius);
  padding: 0.5rem;
  text-align: center;
  border: 1px solid var(--ga46-border);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  cursor: pointer;
  overflow: hidden;
}
.ga46-game-card:active {
  transform: scale(0.96);
  box-shadow: 0 4px 14px rgba(230, 181, 74, 0.25);
}
.ga46-game-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 8px;
  background: #000;
}
.ga46-game-card-name {
  font-size: 1.1rem;
  font-weight: 600;
  margin-top: 0.4rem;
  color: var(--ga46-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ---- Generic cards / features ---- */
.ga46-card {
  background: var(--ga46-bg-card);
  border-radius: var(--ga46-radius);
  padding: 1.2rem;
  border: 1px solid var(--ga46-border);
}
.ga46-card h3 { color: var(--ga46-accent); }
.ga46-feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.8rem;
}
.ga46-feature {
  background: var(--ga46-bg-card);
  padding: 1rem;
  border-radius: var(--ga46-radius);
  border: 1px solid var(--ga46-border);
}
.ga46-feature .icon { font-size: 2rem; color: var(--ga46-accent); }
.ga46-feature h4 { margin: 0.4rem 0 0.2rem; font-size: 1.25rem; color: var(--ga46-text); }
.ga46-feature p { margin: 0; font-size: 1.15rem; }

/* ---- RTP / stat table ---- */
.ga46-stat-row {
  display: flex;
  justify-content: space-between;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--ga46-border);
  font-size: 1.25rem;
}
.ga46-stat-row:last-child { border-bottom: none; }
.ga46-stat-row span:last-child { color: var(--ga46-accent); font-weight: 700; }

/* ---- Testimonials ---- */
.ga46-testimonial {
  background: var(--ga46-bg-card);
  border-left: 3px solid var(--ga46-accent);
  border-radius: 8px;
  padding: 0.9rem 1rem;
  margin-bottom: 0.7rem;
}
.ga46-testimonial p { margin: 0 0 0.3rem; font-style: italic; font-size: 1.2rem; }
.ga46-testimonial small { color: var(--ga46-primary-light); font-size: 1.05rem; }

/* ---- Winners rail ---- */
.ga46-winners { display: flex; flex-direction: column; gap: 0.5rem; }
.ga46-winner {
  display: flex; align-items: center; gap: 0.7rem;
  background: var(--ga46-bg-card); padding: 0.6rem 0.9rem; border-radius: 8px;
}
.ga46-winner .avatar {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--ga46-primary-dark);
  display: flex; align-items: center; justify-content: center;
  color: var(--ga46-text); font-weight: 700; font-size: 1.1rem;
}
.ga46-winner .meta { flex: 1; min-width: 0; }
.ga46-winner .meta b { color: var(--ga46-text); display: block; font-size: 1.15rem; }
.ga46-winner .meta small { color: var(--ga46-text-muted); font-size: 1rem; }
.ga46-winner .amt { color: var(--ga46-success); font-weight: 700; font-size: 1.2rem; }

/* ---- Payment chips ---- */
.ga46-pay-row { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.ga46-pay-chip {
  background: var(--ga46-bg-card);
  padding: 0.5rem 0.9rem;
  border-radius: 8px;
  border: 1px solid var(--ga46-border);
  font-size: 1.15rem;
  color: var(--ga46-text);
  display: inline-flex; align-items: center; gap: 0.35rem;
}
.ga46-pay-chip .fab, .ga46-pay-chip .fas { color: var(--ga46-primary-light); }

/* ---- FAQ ---- */
.ga46-faq details {
  background: var(--ga46-bg-card);
  border-radius: 8px;
  padding: 0.8rem 1rem;
  margin-bottom: 0.5rem;
  border: 1px solid var(--ga46-border);
}
.ga46-faq summary { cursor: pointer; font-weight: 600; color: var(--ga46-text); }
.ga46-faq details[open] summary { color: var(--ga46-accent); }

/* ---- Big CTA ---- */
.ga46-cta {
  background: linear-gradient(135deg, var(--ga46-primary-dark), var(--ga46-bg-card));
  border-radius: var(--ga46-radius-lg);
  padding: 1.6rem;
  text-align: center;
  border: 1px solid var(--ga46-border);
}
.ga46-cta h3 { color: var(--ga46-accent); }
.ga46-cta .ga46-btn-register { margin-top: 0.6rem; padding: 0.8rem 2rem; font-size: 1.4rem; }

/* ---- Footer ---- */
.ga46-footer {
  background: #0e0f10;
  border-top: 1px solid var(--ga46-border);
  padding: 2rem 0 calc(var(--ga46-bottom-h) + 2rem);
  margin-top: 2rem;
}
.ga46-footer-brand { font-weight: 700; color: var(--ga46-text); margin-bottom: 0.6rem; }
.ga46-footer-brand b { color: var(--ga46-accent); }
.ga46-footer p { font-size: 1.2rem; }
.ga46-footer-links {
  display: flex; flex-wrap: wrap; gap: 0.4rem 1rem;
  margin: 1rem 0;
}
.ga46-footer-links a {
  color: var(--ga46-text-muted);
  font-size: 1.15rem;
  text-decoration: underline;
}
.ga46-footer-promos { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0.8rem 0; }
.ga46-footer-promos button, .ga46-footer-promos a {
  background: var(--ga46-bg-card);
  color: var(--ga46-text);
  padding: 0.5rem 0.9rem;
  border-radius: 8px;
  border: 1px solid var(--ga46-primary);
  font-size: 1.15rem; font-weight: 600;
}
.ga46-copyright { color: var(--ga46-primary-light); font-size: 1.1rem; margin-top: 1rem; }

/* ---- Bottom navigation (mobile only) ---- */
.ga46-bottom-nav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: var(--ga46-bottom-h);
  background: rgba(14, 15, 16, 0.98);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--ga46-border);
  display: flex;
  justify-content: space-around;
  align-items: stretch;
  z-index: 1000;
}
.ga46-bottom-nav a {
  flex: 1;
  min-width: 60px;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  color: var(--ga46-text-muted);
  font-size: 1rem;
  font-weight: 600;
  transition: color 0.2s ease, transform 0.2s ease;
  position: relative;
}
.ga46-bottom-nav a:active { transform: scale(0.92); }
.ga46-bottom-nav a .material-icons,
.ga46-bottom-nav a .fas,
.ga46-bottom-nav a .ion-icon,
.ga46-bottom-nav a ion-icon,
.ga46-bottom-nav a i { font-size: 2.2rem; }
.ga46-bottom-nav a.ga46-nav-current { color: var(--ga46-accent); }
.ga46-bottom-nav a.ga46-nav-current::before {
  content: "";
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 24px; height: 3px;
  background: var(--ga46-accent);
  border-radius: 0 0 4px 4px;
}
.ga46-bottom-nav .ga46-badge {
  position: absolute;
  top: 8px; right: 50%;
  margin-right: -22px;
  background: var(--ga46-accent-hot);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  border-radius: 999px;
  padding: 0 5px;
  min-width: 16px; height: 16px;
  display: flex; align-items: center; justify-content: center;
}

/* ---- Mobile bottom padding ---- */
@media (max-width: 768px) {
  main { padding-bottom: calc(var(--ga46-bottom-h) + 1.2rem); }
  body { padding-bottom: 0; }
}

/* ---- Desktop: hide bottom nav, widen wrapper ---- */
@media (min-width: 769px) {
  .ga46-bottom-nav { display: none; }
  .ga46-wrapper { max-width: 760px; }
  .ga46-footer { padding-bottom: 2rem; }
  .ga46-grid { grid-template-columns: repeat(6, 1fr); }
  .ga46-feature-grid { grid-template-columns: repeat(4, 1fr); }
  main { padding-bottom: 2rem; }
}

/* ---- Utility ---- */
.ga46-text-accent { color: var(--ga46-accent); font-weight: 700; }
.ga46-link-inline { color: var(--ga46-accent); text-decoration: underline; font-weight: 600; }
.ga46-hidden { display: none !important; }
.ga46-mt-1 { margin-top: 0.5rem; }
.ga46-mt-2 { margin-top: 1rem; }
