/*!
 * nustar-online-app.click core stylesheet
 * Prefix: w05d4-  (all classes / CSS variables)
 * Palette: #FFD700 (gold) | #0E1621 (dark) | #495057 (slate)
 * Mobile-first, max 430px content width.
 */
:root {
  --w05d4-primary: #FFD700;
  --w05d4-primary-dark: #d6b400;
  --w05d4-bg: #0E1621;
  --w05d4-bg-2: #111c2b;
  --w05d4-bg-3: #18253a;
  --w05d4-text: #f3f5f8;
  --w05d4-text-muted: #aab4c2;
  --w05d4-slate: #495057;
  --w05d4-accent: #ff5a3c;
  --w05d4-success: #28d17c;
  --w05d4-radius: 12px;
  --w05d4-shadow: 0 6px 18px rgba(0,0,0,0.35);
  --w05d4-header-h: 56px;
  --w05d4-bottomnav-h: 62px;
}

* { box-sizing: border-box; }
html { font-size: 62.5%; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: radial-gradient(1200px 600px at 50% -10%, #1a2a44 0%, var(--w05d4-bg) 60%);
  color: var(--w05d4-text);
  line-height: 1.5rem;
  font-size: 1.4rem;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--w05d4-primary); text-decoration: none; }
a:hover { color: #fff; text-decoration: underline; }

.w05d4-wrapper { width: 100%; max-width: 430px; margin: 0 auto; position: relative; }
.w05d4-container { width: 100%; padding: 0 14px; }
main { padding-bottom: 90px; }

/* ---------- Header ---------- */
.w05d4-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--w05d4-header-h);
  background: linear-gradient(180deg, #0c1320, #0E1621ee);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255,215,0,0.25);
  display: flex; align-items: center;
}
.w05d4-header .w05d4-wrapper {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 12px;
}
.w05d4-logo { display: flex; align-items: center; gap: 8px; color: #fff; font-weight: 800; font-size: 1.5rem; }
.w05d4-logo img { width: 28px; height: 28px; border-radius: 6px; }
.w05d4-logo span { color: var(--w05d4-primary); letter-spacing: 0.3px; }
.w05d4-header-actions { display: flex; align-items: center; gap: 8px; }
.w05d4-menu-btn {
  background: transparent; border: 1px solid rgba(255,215,0,0.4);
  color: var(--w05d4-primary); width: 36px; height: 36px; border-radius: 8px;
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
}
.w05d4-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  font-weight: 700; font-size: 1.3rem; padding: 8px 14px; border-radius: 999px;
  cursor: pointer; border: none; min-height: 36px; line-height: 1;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.w05d4-btn:active { transform: scale(0.96); }
.w05d4-btn-primary { background: linear-gradient(180deg, var(--w05d4-primary), var(--w05d4-primary-dark)); color: #0E1621; box-shadow: 0 4px 14px rgba(255,215,0,0.35); }
.w05d4-btn-outline { background: transparent; color: var(--w05d4-primary); border: 1px solid var(--w05d4-primary); }
.w05d4-btn-block { display: block; width: 100%; padding: 12px; font-size: 1.5rem; }
.w05d4-link-strong { color: var(--w05d4-primary); font-weight: 800; border-bottom: 2px dashed rgba(255,215,0,0.6); }

/* ---------- Mobile slide-down menu ---------- */
.w05d4-mobile-menu {
  position: fixed; top: var(--w05d4-header-h); left: 0; right: 0; z-index: 9999;
  max-height: 0; overflow: hidden; background: var(--w05d4-bg-2);
  border-bottom: 1px solid rgba(255,215,0,0.18);
  transition: max-height .3s ease;
}
.w05d4-mobile-menu.w05d4-menu-open { max-height: 80vh; overflow-y: auto; box-shadow: var(--w05d4-shadow); }
.w05d4-mobile-menu ul { list-style: none; margin: 0; padding: 6px 12px; }
.w05d4-mobile-menu li { border-bottom: 1px solid rgba(255,255,255,0.06); }
.w05d4-mobile-menu li:last-child { border-bottom: none; }
.w05d4-mobile-menu a {
  display: flex; align-items: center; gap: 10px; padding: 12px 6px; color: var(--w05d4-text);
  font-size: 1.4rem;
}
.w05d4-mobile-menu a i.material-icons,
.w05d4-mobile-menu a i.fas,
.w05d4-mobile-menu a i.bi { color: var(--w05d4-primary); font-size: 18px; }

/* ---------- Hero / Carousel ---------- */
.w05d4-hero { margin-top: calc(var(--w05d4-header-h) + 10px); position: relative; }
.w05d4-carousel { position: relative; border-radius: var(--w05d4-radius); overflow: hidden; box-shadow: var(--w05d4-shadow); }
.w05d4-slide {
  display: none; position: relative; cursor: pointer;
}
.w05d4-slide.w05d4-slide-active { display: block; }
.w05d4-slide img { width: 100%; height: 190px; object-fit: cover; }
.w05d4-slide-cap {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: linear-gradient(180deg, transparent, rgba(14,22,33,0.92));
  padding: 24px 14px 12px; color: #fff;
}
.w05d4-slide-cap h2 { margin: 0 0 4px; font-size: 1.7rem; color: var(--w05d4-primary); }
.w05d4-slide-cap p { margin: 0; font-size: 1.25rem; color: var(--w05d4-text-muted); }
.w05d4-dots { position: absolute; bottom: 8px; left: 0; right: 0; display: flex; justify-content: center; gap: 6px; z-index: 2; }
.w05d4-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.4); cursor: pointer; }
.w05d4-dot.w05d4-dot-active { background: var(--w05d4-primary); width: 22px; border-radius: 4px; }

/* ---------- Sections / Headings ---------- */
.w05d4-section { padding: 18px 0; }
.w05d4-section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.w05d4-section-head h2 { font-size: 1.7rem; margin: 0; color: #fff; display: flex; align-items: center; gap: 8px; }
.w05d4-section-head h2 i { color: var(--w05d4-primary); }
.w05d4-section-head .w05d4-more { font-size: 1.2rem; color: var(--w05d4-primary); }
.w05d4-h1 {
  font-size: 2rem; line-height: 1.35; margin: 16px 0 8px; color: #fff; font-weight: 800;
}
.w05d4-h1 span { color: var(--w05d4-primary); }
.w05d4-lead { font-size: 1.35rem; color: var(--w05d4-text-muted); margin: 0 0 14px; }

/* ---------- Filter tabs ---------- */
.w05d4-filters { display: flex; gap: 8px; overflow-x: auto; padding: 6px 0 12px; -webkit-overflow-scrolling: touch; }
.w05d4-filters::-webkit-scrollbar { display: none; }
.w05d4-filter-tab {
  flex: 0 0 auto; padding: 7px 14px; border-radius: 999px;
  background: var(--w05d4-bg-3); color: var(--w05d4-text-muted); font-size: 1.2rem; cursor: pointer;
  border: 1px solid rgba(255,255,255,0.05); white-space: nowrap;
}
.w05d4-filter-tab.w05d4-filter-tab-active {
  background: linear-gradient(180deg, var(--w05d4-primary), var(--w05d4-primary-dark));
  color: #0E1621; font-weight: 700; border-color: transparent;
}

/* ---------- Game grid ---------- */
.w05d4-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.w05d4-card {
  background: var(--w05d4-bg-2); border-radius: var(--w05d4-radius); overflow: hidden;
  border: 1px solid rgba(255,215,0,0.08); cursor: pointer; transition: transform .15s ease, border-color .15s ease;
  display: flex; flex-direction: column;
}
.w05d4-card:hover { transform: translateY(-2px); border-color: rgba(255,215,0,0.5); }
.w05d4-card-img { width: 100%; aspect-ratio: 1/1; background: #0a121e; object-fit: cover; }
.w05d4-card-name {
  font-size: 1.15rem; padding: 6px 8px; text-align: center; color: var(--w05d4-text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-height: 28px;
}
.w05d4-card-tag {
  font-size: 1rem; padding: 2px 8px 6px; text-align: center; color: var(--w05d4-primary);
}
.w05d4-grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }

/* ---------- Feature / info blocks ---------- */
.w05d4-panel {
  background: var(--w05d4-bg-2); border-radius: var(--w05d4-radius); padding: 14px;
  border: 1px solid rgba(255,255,255,0.05); margin-bottom: 12px;
}
.w05d4-panel h3 { margin: 0 0 8px; font-size: 1.45rem; color: var(--w05d4-primary); }
.w05d4-panel p { margin: 0 0 8px; color: var(--w05d4-text-muted); font-size: 1.3rem; }
.w05d4-steps { counter-reset: step; list-style: none; padding: 0; margin: 0; }
.w05d4-steps li {
  position: relative; padding: 8px 8px 8px 40px; color: var(--w05d4-text-muted); font-size: 1.3rem;
  border-bottom: 1px dashed rgba(255,255,255,0.08);
}
.w05d4-steps li:last-child { border-bottom: none; }
.w05d4-steps li::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 6px; top: 8px;
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--w05d4-primary); color: #0E1621; font-weight: 800; font-size: 1.2rem;
  display: inline-flex; align-items: center; justify-content: center;
}
.w05d4-features { display: grid; grid-template-columns: 1fr; gap: 10px; }
.w05d4-feature {
  display: flex; gap: 10px; padding: 12px; background: var(--w05d4-bg-3); border-radius: 10px;
  border-left: 3px solid var(--w05d4-primary);
}
.w05d4-feature i { color: var(--w05d4-primary); font-size: 22px; }
.w05d4-feature h4 { margin: 0 0 4px; font-size: 1.35rem; color: #fff; }
.w05d4-feature p { margin: 0; font-size: 1.2rem; color: var(--w05d4-text-muted); }

/* ---------- Testimonials ---------- */
.w05d4-testimonials { display: grid; grid-template-columns: 1fr; gap: 10px; }
.w05d4-testimonial { background: var(--w05d4-bg-3); border-radius: 10px; padding: 12px; border: 1px solid rgba(255,215,0,0.08); }
.w05d4-stars { color: var(--w05d4-primary); font-size: 1.3rem; letter-spacing: 2px; margin-bottom: 6px; }
.w05d4-testimonial p { margin: 0 0 6px; font-size: 1.25rem; color: var(--w05d4-text-muted); }
.w05d4-testimonial .w05d4-author { font-size: 1.15rem; color: var(--w05d4-primary); font-weight: 700; }

/* ---------- Payment icons ---------- */
.w05d4-payments { display: flex; flex-wrap: wrap; gap: 8px; }
.w05d4-pay {
  flex: 1 1 30%; min-width: 90px; padding: 10px; background: #fff; color: #0E1621;
  border-radius: 8px; text-align: center; font-weight: 700; font-size: 1.2rem;
}

/* ---------- Winners ---------- */
.w05d4-winners { background: var(--w05d4-bg-2); border-radius: var(--w05d4-radius); padding: 8px 12px; }
.w05d4-winner-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 0; border-bottom: 1px dashed rgba(255,255,255,0.08); font-size: 1.25rem;
}
.w05d4-winner-row:last-child { border-bottom: none; }
.w05d4-winner-name { color: #fff; font-weight: 700; }
.w05d4-winner-game { color: var(--w05d4-text-muted); font-size: 1.15rem; }
.w05d4-winner-amount { color: var(--w05d4-success); font-weight: 800; }

/* ---------- FAQ ---------- */
.w05d4-faq-item { background: var(--w05d4-bg-2); border-radius: 10px; margin-bottom: 8px; overflow: hidden; border: 1px solid rgba(255,255,255,0.05); }
.w05d4-faq-q {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 14px; cursor: pointer; font-weight: 700; color: #fff; font-size: 1.3rem;
}
.w05d4-faq-q i { color: var(--w05d4-primary); transition: transform .2s ease; }
.w05d4-faq-a { max-height: 0; overflow: hidden; padding: 0 14px; color: var(--w05d4-text-muted); font-size: 1.25rem; transition: max-height .25s ease, padding .25s ease; }
.w05d4-faq-item.w05d4-faq-open .w05d4-faq-a { max-height: 320px; padding: 0 14px 12px; }
.w05d4-faq-item.w05d4-faq-open .w05d4-faq-q i { transform: rotate(45deg); }

/* ---------- RTP / stats ---------- */
.w05d4-rtp-row { display: flex; align-items: center; justify-content: space-between; padding: 6px 0; border-bottom: 1px dashed rgba(255,255,255,0.06); font-size: 1.25rem; }
.w05d4-rtp-row:last-child { border-bottom: none; }
.w05d4-rtp-bar { width: 60px; height: 6px; background: rgba(255,255,255,0.1); border-radius: 4px; overflow: hidden; }
.w05d4-rtp-fill { height: 100%; background: linear-gradient(90deg, var(--w05d4-primary), var(--w05d4-success)); }
.w05d4-rtp-val { color: var(--w05d4-success); font-weight: 700; }

/* ---------- App download CTA ---------- */
.w05d4-cta {
  background: linear-gradient(135deg, #1c2c46, #0E1621); border: 1px solid rgba(255,215,0,0.25);
  border-radius: var(--w05d4-radius); padding: 16px; text-align: center;
}
.w05d4-cta h3 { margin: 0 0 6px; color: var(--w05d4-primary); font-size: 1.6rem; }
.w05d4-cta p { margin: 0 0 12px; color: var(--w05d4-text-muted); font-size: 1.25rem; }
.w05d4-cta-buttons { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.w05d4-footer {
  background: #080f18; border-top: 1px solid rgba(255,215,0,0.18); padding: 18px 14px 20px;
}
.w05d4-footer h4 { color: var(--w05d4-primary); font-size: 1.35rem; margin: 12px 0 6px; }
.w05d4-footer p { color: var(--w05d4-text-muted); font-size: 1.2rem; margin: 0 0 8px; }
.w05d4-footer-links { display: flex; flex-wrap: wrap; gap: 8px 14px; }
.w05d4-footer-links a { color: var(--w05d4-text-muted); font-size: 1.2rem; }
.w05d4-footer-links a:hover { color: var(--w05d4-primary); }
.w05d4-footer-promos { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
.w05d4-footer-promos .w05d4-btn { flex: 1 1 auto; min-width: 120px; }
.w05d4-footer-copy { text-align: center; color: #6b7785; font-size: 1.1rem; margin-top: 14px; border-top: 1px solid rgba(255,255,255,0.05); padding-top: 10px; }

/* ---------- Bottom nav ---------- */
.w05d4-bottomnav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 1000;
  height: var(--w05d4-bottomnav-h);
  background: linear-gradient(180deg, #0c1320, #050a12);
  border-top: 1px solid rgba(255,215,0,0.25);
  display: flex; justify-content: space-around; align-items: stretch;
  padding-bottom: env(safe-area-inset-bottom);
}
.w05d4-bottomnav-btn {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: transparent; border: none; color: var(--w05d4-text-muted);
  font-size: 1.05rem; gap: 2px; cursor: pointer; min-width: 60px; min-height: 60px;
  transition: color .15s ease, transform .15s ease;
}
.w05d4-bottomnav-btn i { font-size: 22px; }
.w05d4-bottomnav-btn:active { transform: scale(0.92); }
.w05d4-bottomnav-btn.w05d4-bottomnav-active,
.w05d4-bottomnav-btn:hover { color: var(--w05d4-primary); }
.w05d4-bottomnav-btn.w05d4-bottomnav-active i { transform: translateY(-1px); }
.w05d4-bottomnav-badge {
  position: absolute; top: 6px; transform: translateX(14px);
  background: var(--w05d4-accent); color: #fff; font-size: 0.95rem;
  padding: 1px 5px; border-radius: 8px; line-height: 1.2;
}
.w05d4-bottomnav-btn { position: relative; }

/* ---------- Back to top ---------- */
.w05d4-back-top {
  position: fixed; right: 14px; bottom: calc(var(--w05d4-bottomnav-h) + 14px);
  width: 40px; height: 40px; border-radius: 50%; border: none;
  background: var(--w05d4-primary); color: #0E1621; font-size: 18px; cursor: pointer;
  display: none; z-index: 999; box-shadow: var(--w05d4-shadow);
}
.w05d4-back-top.w05d4-back-top-show { display: inline-flex; align-items: center; justify-content: center; }

/* ---------- Desktop ---------- */
@media (min-width: 768px) {
  .w05d4-wrapper { max-width: 430px; }
  .w05d4-bottomnav { display: none; }
  main { padding-bottom: 30px; }
}
@media (min-width: 769px) {
  body { background: radial-gradient(1400px 700px at 50% -10%, #1a2a44 0%, var(--w05d4-bg) 60%); }
}
