/* ============================================================
   nustar-casino.homes - Core stylesheet (prefix: g547-)
   Mobile-first. All custom classes use the g547- prefix.
   ============================================================ */

:root {
  --g547-primary: #ffb43d;       /* warm gold accent */
  --g547-primary-2: #ff7a18;     /* deep amber */
  --g547-accent: #14e0c0;        /* mint neon */
  --g547-bg: #0a0e1a;            /* near-black navy */
  --g547-bg-2: #121a2e;          /* card navy */
  --g547-bg-3: #1a2542;          /* hover navy */
  --g547-text: #f4f7ff;
  --g547-text-dim: #aeb6cc;
  --g547-border: rgba(255, 180, 61, 0.25);
  --g547-danger: #ff4d6d;
  --g547-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: "Segoe UI", "Roboto", system-ui, -apple-system, sans-serif;
  background: var(--g547-bg);
  color: var(--g547-text);
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

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

a { color: var(--g547-primary); text-decoration: none; }

.g547-wrapper {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  position: relative;
}

/* ---------- Header ---------- */
.g547-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: linear-gradient(180deg, rgba(10, 14, 26, 0.98), rgba(10, 14, 26, 0.92));
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--g547-border);
}

.g547-header-inner {
  max-width: 430px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  min-height: 56px;
}

.g547-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--g547-text);
  font-weight: 800;
  font-size: 18px;
}

.g547-logo .g547-logo-icon {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--g547-primary), var(--g547-primary-2));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1a1206;
  font-size: 18px;
}

.g547-logo span { color: var(--g547-primary); }

.g547-header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.g547-btn {
  border: none;
  cursor: pointer;
  font-weight: 700;
  border-radius: 999px;
  padding: 9px 16px;
  font-size: 13px;
  transition: transform .15s ease, box-shadow .15s ease, opacity .15s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
}

.g547-btn:active { transform: scale(0.96); }

.g547-btn-login {
  background: transparent;
  color: var(--g547-text);
  border: 1px solid var(--g547-border);
}

.g547-btn-register {
  background: linear-gradient(135deg, var(--g547-primary), var(--g547-primary-2));
  color: #1a1206;
  box-shadow: 0 4px 14px rgba(255, 122, 24, 0.4);
}

.g547-menu-btn {
  background: transparent;
  border: none;
  color: var(--g547-text);
  font-size: 22px;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
}

/* ---------- Mobile menu (expanding) ---------- */
.g547-mobile-menu {
  max-height: 0;
  overflow: hidden;
  background: var(--g547-bg-2);
  transition: max-height .28s ease;
  border-top: 1px solid var(--g547-border);
}

.g547-mobile-menu.g547-menu-open {
  max-height: 420px;
}

.g547-mobile-menu ul {
  list-style: none;
  margin: 0;
  padding: 6px 12px;
}

.g547-mobile-menu li a {
  display: block;
  padding: 12px 8px;
  color: var(--g547-text);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 14px;
}

.g547-mobile-menu li a:active { color: var(--g547-primary); }

/* ---------- Main ---------- */
.g547-main {
  padding-top: 64px;
  padding-bottom: 16px;
}

/* ---------- Carousel ---------- */
.g547-carousel {
  position: relative;
  margin: 12px 0 18px;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--g547-shadow);
}

.g547-slide {
  display: none;
  position: relative;
  cursor: pointer;
}

.g547-slide.g547-slide-active { display: block; }

.g547-slide img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.g547-slide-caption {
  position: absolute;
  left: 14px;
  bottom: 14px;
  background: rgba(10, 14, 26, 0.7);
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
}

.g547-dots {
  position: absolute;
  right: 12px;
  bottom: 10px;
  display: flex;
  gap: 6px;
}

.g547-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  border: none;
  padding: 0;
}

.g547-dot.g547-dot-active { background: var(--g547-primary); }

/* ---------- Section ---------- */
.g547-section {
  padding: 14px 12px 6px;
}

.g547-section-title {
  font-size: 18px;
  font-weight: 800;
  margin: 0 0 4px;
  color: var(--g547-text);
}

.g547-section-title span { color: var(--g547-primary); }

.g547-section-sub {
  font-size: 12px;
  color: var(--g547-text-dim);
  margin: 0 0 12px;
}

.g547-h1 {
  font-size: 22px;
  font-weight: 900;
  line-height: 1.25;
  margin: 6px 0 8px;
}

.g547-h2 {
  font-size: 17px;
  font-weight: 800;
  margin: 18px 0 8px;
  color: var(--g547-text);
}

.g547-h2 span { color: var(--g547-primary); }

.g547-p {
  font-size: 13px;
  line-height: 1.6;
  color: var(--g547-text-dim);
  margin: 0 0 10px;
}

.g547-p a { color: var(--g547-primary); }

/* ---------- Game grid (compact icons) ---------- */
.g547-cat-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 16px 0 10px;
}

.g547-cat-head .g547-cat-ico {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--g547-primary), var(--g547-primary-2));
  color: #1a1206;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.g547-cat-name {
  font-size: 15px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .4px;
}

.g547-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.g547-game-card {
  background: var(--g547-bg-2);
  border-radius: 10px;
  padding: 4px;
  text-align: center;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform .15s ease, border-color .15s ease;
  overflow: hidden;
}

.g547-game-card:active {
  transform: scale(0.95);
  border-color: var(--g547-border);
}

.g547-game-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 8px;
  background: #0d1426;
}

.g547-game-name {
  font-size: 10px;
  color: var(--g547-text-dim);
  margin-top: 4px;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ---------- Cards / Features ---------- */
.g547-card {
  background: var(--g547-bg-2);
  border: 1px solid var(--g547-border);
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 12px;
}

.g547-feature-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.g547-feature {
  background: var(--g547-bg-2);
  border: 1px solid var(--g547-border);
  border-radius: 12px;
  padding: 12px;
  font-size: 12px;
}

.g547-feature .g547-feature-ico {
  font-size: 22px;
  color: var(--g547-primary);
  margin-bottom: 6px;
}

.g547-feature b { color: var(--g547-text); display: block; margin-bottom: 3px; }

.g547-list {
  margin: 0;
  padding-left: 18px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--g547-text-dim);
}

.g547-list li { margin-bottom: 4px; }
.g547-list a { color: var(--g547-primary); }

/* ---------- RTP table ---------- */
.g547-rtp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  background: var(--g547-bg-2);
  border-radius: 10px;
  overflow: hidden;
}

.g547-rtp-table th, .g547-rtp-table td {
  padding: 8px 10px;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.g547-rtp-table th { background: #0d1426; color: var(--g547-primary); }
.g547-rtp-table td { color: var(--g547-text-dim); }
.g547-rtp-badge {
  background: rgba(20, 224, 192, 0.15);
  color: var(--g547-accent);
  padding: 2px 8px;
  border-radius: 999px;
  font-weight: 700;
}

/* ---------- Testimonial ---------- */
.g547-testi {
  background: var(--g547-bg-2);
  border-left: 3px solid var(--g547-primary);
  border-radius: 10px;
  padding: 12px;
  margin-bottom: 10px;
  font-size: 12px;
  color: var(--g547-text-dim);
}

.g547-testi b { color: var(--g547-text); display: block; margin-bottom: 4px; }

/* ---------- Winner strip ---------- */
.g547-winner {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--g547-bg-2);
  border-radius: 10px;
  padding: 8px 10px;
  margin-bottom: 6px;
  font-size: 12px;
}

.g547-winner .g547-winner-amount {
  margin-left: auto;
  color: var(--g547-primary);
  font-weight: 800;
}

/* ---------- Payment chips ---------- */
.g547-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.g547-chip {
  background: var(--g547-bg-2);
  border: 1px solid var(--g547-border);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 12px;
  color: var(--g547-text-dim);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* ---------- App CTA ---------- */
.g547-app-cta {
  background: linear-gradient(135deg, #1a2542, #0d1426);
  border: 1px solid var(--g547-border);
  border-radius: 14px;
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.g547-app-cta .g547-app-ico {
  font-size: 36px;
  color: var(--g547-primary);
}

.g547-app-cta b { color: var(--g547-text); display: block; font-size: 14px; }
.g547-app-cta small { color: var(--g547-text-dim); font-size: 11px; }

.g547-app-btns { display: flex; gap: 8px; margin-top: 8px; }

.g547-app-btn {
  background: var(--g547-primary);
  color: #1a1206;
  padding: 7px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}

/* ---------- Play now CTA ---------- */
.g547-play-cta {
  display: block;
  width: 100%;
  text-align: center;
  background: linear-gradient(135deg, var(--g547-primary), var(--g547-primary-2));
  color: #1a1206;
  font-weight: 800;
  padding: 14px;
  border-radius: 12px;
  font-size: 15px;
  box-shadow: 0 6px 18px rgba(255, 122, 24, 0.4);
}

/* ---------- FAQ ---------- */
.g547-faq {
  background: var(--g547-bg-2);
  border-radius: 10px;
  padding: 12px;
  margin-bottom: 8px;
}

.g547-faq b { display: block; color: var(--g547-text); font-size: 13px; margin-bottom: 4px; }
.g547-faq p { margin: 0; font-size: 12px; color: var(--g547-text-dim); line-height: 1.5; }

/* ---------- Footer ---------- */
.g547-footer {
  background: #06080f;
  border-top: 1px solid var(--g547-border);
  padding: 20px 12px 24px;
  margin-top: 20px;
}

.g547-footer p { font-size: 12px; color: var(--g547-text-dim); line-height: 1.6; margin: 0 0 12px; }

.g547-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.g547-footer-links a {
  font-size: 11px;
  background: var(--g547-bg-2);
  border: 1px solid var(--g547-border);
  padding: 6px 10px;
  border-radius: 8px;
  color: var(--g547-text);
}

.g547-footer-links a span { color: var(--g547-primary); font-weight: 700; }

.g547-footer-copy {
  font-size: 11px;
  color: #6b748a;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 12px;
}

/* ---------- Mobile bottom nav ---------- */
.g547-bnav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: 62px;
  background: linear-gradient(180deg, #0d1426, #06080f);
  border-top: 1px solid var(--g547-border);
  display: flex;
  justify-content: space-around;
  align-items: stretch;
  box-shadow: 0 -4px 18px rgba(0, 0, 0, 0.5);
}

.g547-bnav-btn {
  flex: 1;
  min-width: 60px;
  min-height: 60px;
  background: transparent;
  border: none;
  color: var(--g547-text-dim);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  text-decoration: none;
  cursor: pointer;
  font-size: 10px;
  font-weight: 600;
  transition: color .15s ease, transform .15s ease;
}

.g547-bnav-btn .g547-bnav-ico {
  font-size: 22px;
  line-height: 1;
}

.g547-bnav-btn:active { transform: scale(0.92); }
.g547-bnav-btn.g547-bnav-active { color: var(--g547-primary); }

.g547-bnav-btn.g547-bnav-promo {
  color: #1a1206;
  background: linear-gradient(135deg, var(--g547-primary), var(--g547-primary-2));
  position: relative;
  top: -10px;
  border-radius: 50%;
  width: 56px;
  height: 56px;
  min-width: 56px;
  min-height: 56px;
  align-self: center;
  flex: 0 0 56px;
  box-shadow: 0 6px 16px rgba(255, 122, 24, 0.5);
}

.g547-bnav-btn.g547-bnav-promo .g547-bnav-ico { font-size: 26px; }
.g547-bnav-btn.g547-bnav-promo .g547-bnav-label { font-size: 9px; }

/* ---------- Desktop show header menu button hidden, hide bottom nav ---------- */
@media (min-width: 769px) {
  .g547-bnav { display: none; }
  .g547-wrapper { max-width: 760px; }
  .g547-header-inner { max-width: 760px; }
  .g547-grid { grid-template-columns: repeat(6, 1fr); }
  .g547-main { padding-bottom: 40px; }
}

/* ---------- Mobile: bottom padding so content clears fixed nav ---------- */
@media (max-width: 768px) {
  .g547-menu-btn { display: inline-flex; }
  .g547-header-desktop { display: none; }
  main { padding-bottom: 80px; }
  .g547-footer { padding-bottom: 84px; }
}
