/* ============================================================
   nustar game update apk - Core Stylesheet
   Mobile-first casino portal theme.
   All custom classes use the "w1043-" prefix.
   Palette: #2C2C2C (dark base) | #00CED1 (cyan accent)
   Comments in English only.
   ============================================================ */

:root {
  --w1043-primary: #00CED1;
  --w1043-primary-dark: #00a3a5;
  --w1043-primary-soft: #5fe3e6;
  --w1043-bg: #2C2C2C;
  --w1043-bg-deep: #1c1c1c;
  --w1043-bg-soft: #3a3a3a;
  --w1043-text: #f5f7f8;
  --w1043-text-dim: #b9c0c2;
  --w1043-border: rgba(0, 206, 209, 0.25);
  --w1043-gold: #ffd76a;
  --w1043-danger: #ff5d73;
  --w1043-shadow: 0 6px 24px rgba(0, 0, 0, 0.45);
  --w1043-radius: 14px;
  --w1043-radius-sm: 10px;
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html {
  font-size: 62.5%; /* 1rem = 10px base for rem-based sizing */
  scroll-behavior: smooth;
}

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

a { color: var(--w1043-primary); text-decoration: none; }
a:hover, a:focus { color: var(--w1043-primary-soft); }
img { max-width: 100%; display: block; }

/* ===== Layout container ===== */
.w1043-container {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1.4rem;
  position: relative;
}

.w1043-wrapper {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  background: var(--w1043-bg);
  min-height: 100vh;
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.4);
}

main { padding-bottom: 80px; }

/* ===== Header ===== */
.w1043-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: linear-gradient(135deg, #1c1c1c 0%, #2C2C2C 60%, #213a3b 100%);
  border-bottom: 2px solid var(--w1043-border);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5);
}

.w1043-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 1.2rem;
  gap: 0.8rem;
}

.w1043-brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-width: 0;
}

.w1043-logo {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  border: 1.5px solid var(--w1043-primary);
  background: radial-gradient(circle, rgba(0,206,209,0.2), transparent);
}

.w1043-brand-name {
  font-weight: 800;
  font-size: 1.4rem;
  color: var(--w1043-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: 0.3px;
}
.w1043-brand-name span { color: var(--w1043-primary); }

.w1043-actions { display: flex; align-items: center; gap: 0.5rem; }

.w1043-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border: none;
  cursor: pointer;
  font-weight: 700;
  border-radius: 999px;
  padding: 0.7rem 1.2rem;
  font-size: 1.25rem;
  min-height: 36px;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.w1043-btn:active { transform: scale(0.95); }

.w1043-btn-login {
  background: transparent;
  color: var(--w1043-text);
  border: 1.5px solid var(--w1043-primary);
}
.w1043-btn-login:hover { background: rgba(0,206,209,0.12); }

.w1043-btn-register {
  background: linear-gradient(135deg, var(--w1043-primary), var(--w1043-primary-dark));
  color: #062526;
  box-shadow: 0 4px 14px rgba(0, 206, 209, 0.4);
}
.w1043-btn-register:hover { box-shadow: 0 6px 18px rgba(0, 206, 209, 0.55); }

/* Menu toggle */
.w1043-menu-btn {
  background: transparent;
  border: none;
  color: var(--w1043-text);
  font-size: 2.1rem;
  cursor: pointer;
  padding: 0.4rem 0.6rem;
  border-radius: 8px;
}
.w1043-menu-btn:hover { background: rgba(255,255,255,0.06); }

/* Mobile slide-down menu */
.w1043-mobile-menu {
  display: none;
  background: #181818;
  border-bottom: 1px solid var(--w1043-border);
  padding: 0.6rem 1.2rem 1rem;
}
.w1043-mobile-menu.w1043-menu-open { display: block; animation: w1043Slide 0.25s ease; }

@keyframes w1043Slide {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

.w1043-mobile-menu a {
  display: block;
  padding: 0.85rem 0.6rem;
  border-bottom: 1px dashed rgba(255,255,255,0.08);
  color: var(--w1043-text);
  font-size: 1.3rem;
}
.w1043-mobile-menu a:last-child { border-bottom: none; }
.w1043-mobile-menu a:hover { color: var(--w1043-primary); padding-left: 1rem; }

/* ===== Hero Carousel ===== */
.w1043-hero {
  position: relative;
  margin: 1rem 0;
  border-radius: var(--w1043-radius);
  overflow: hidden;
  box-shadow: var(--w1043-shadow);
}
.w1043-slides { position: relative; width: 100%; aspect-ratio: 16 / 9; }
.w1043-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.5s ease;
}
.w1043-slide img { width: 100%; height: 100%; object-fit: cover; }
.w1043-slide.w1043-slide-active { opacity: 1; }

.w1043-slide-overlay {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 1rem 1.2rem;
  background: linear-gradient(transparent, rgba(0,0,0,0.85));
  color: #fff;
}
.w1043-slide-overlay strong { color: var(--w1043-primary); font-size: 1.5rem; display: block; }
.w1043-slide-overlay span { font-size: 1.2rem; color: var(--w1043-text-dim); }

.w1043-dots {
  position: absolute;
  bottom: 0.6rem;
  right: 0.8rem;
  display: flex;
  gap: 0.4rem;
}
.w1043-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.45);
  cursor: pointer;
}
.w1043-dot.w1043-dot-active { background: var(--w1043-primary); }

/* ===== Section heading ===== */
.w1043-section { margin: 1.8rem 0; }
.w1043-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.9rem;
}
.w1043-section-title {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--w1043-text);
  margin: 0;
  padding-left: 0.8rem;
  border-left: 4px solid var(--w1043-primary);
  line-height: 1.4;
}
.w1043-section-title em { color: var(--w1043-primary); font-style: normal; }
.w1043-section-more { font-size: 1.2rem; color: var(--w1043-primary); }

.w1043-card {
  background: var(--w1043-bg-soft);
  border: 1px solid var(--w1043-border);
  border-radius: var(--w1043-radius);
  padding: 1.2rem;
  margin-bottom: 1rem;
}

/* ===== Game grid ===== */
.w1043-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.7rem;
}
.w1043-grid-4 { grid-template-columns: repeat(4, 1fr); }

.w1043-game {
  display: block;
  background: var(--w1043-bg-soft);
  border-radius: var(--w1043-radius-sm);
  overflow: hidden;
  text-align: center;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  cursor: pointer;
  border: 1px solid transparent;
}
.w1043-game:hover, .w1043-game:focus {
  transform: translateY(-3px);
  border-color: var(--w1043-primary);
  box-shadow: 0 6px 14px rgba(0,206,209,0.25);
}
.w1043-game img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}
.w1043-game-name {
  font-size: 1.1rem;
  color: var(--w1043-text-dim);
  padding: 0.4rem 0.3rem 0.5rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ===== Promo CTA ===== */
.w1043-cta {
  background: linear-gradient(135deg, #003a3b 0%, #00CED1 110%);
  color: #062526;
  border-radius: var(--w1043-radius);
  padding: 1.3rem 1.2rem;
  text-align: center;
  margin: 1.2rem 0;
  box-shadow: 0 8px 22px rgba(0, 206, 209, 0.35);
}
.w1043-cta h3 { margin: 0 0 0.3rem; font-size: 1.6rem; }
.w1043-cta p { margin: 0 0 0.8rem; font-size: 1.2rem; color: #08383a; }
.w1043-cta .w1043-btn {
  background: #1c1c1c;
  color: var(--w1043-primary);
  padding: 0.9rem 2rem;
  font-size: 1.35rem;
}

/* ===== Text promo link ===== */
.w1043-link-text {
  color: var(--w1043-primary);
  font-weight: 700;
  border-bottom: 1px dashed var(--w1043-primary);
  cursor: pointer;
}
.w1043-link-text:hover { color: var(--w1043-primary-soft); }

/* ===== Lists ===== */
.w1043-list { margin: 0; padding-left: 1.4rem; }
.w1043-list li { margin-bottom: 0.5rem; line-height: 1.6; }
.w1043-para { line-height: 1.7; color: var(--w1043-text-dim); margin: 0 0 0.8rem; }

/* ===== Stats / RTP ===== */
.w1043-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.7rem;
}
.w1043-stat {
  background: var(--w1043-bg-soft);
  border-radius: var(--w1043-radius-sm);
  padding: 0.9rem;
  text-align: center;
  border: 1px solid var(--w1043-border);
}
.w1043-stat-num {
  display: block;
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--w1043-primary);
}
.w1043-stat-label { font-size: 1.15rem; color: var(--w1043-text-dim); }

/* Bar chart */
.w1043-bar-row { margin-bottom: 0.7rem; }
.w1043-bar-label {
  display: flex;
  justify-content: space-between;
  font-size: 1.2rem;
  margin-bottom: 0.3rem;
  color: var(--w1043-text-dim);
}
.w1043-bar-track {
  height: 8px;
  background: #111;
  border-radius: 6px;
  overflow: hidden;
}
.w1043-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--w1043-primary), var(--w1043-primary-soft));
}

/* ===== Testimonials ===== */
.w1043-testimonials { display: grid; gap: 0.8rem; }
.w1043-testimonial {
  background: var(--w1043-bg-soft);
  border-left: 3px solid var(--w1043-primary);
  border-radius: var(--w1043-radius-sm);
  padding: 0.9rem 1rem;
}
.w1043-testimonial p { margin: 0 0 0.4rem; font-size: 1.25rem; }
.w1043-testimonial cite { color: var(--w1043-primary); font-style: normal; font-size: 1.15rem; }

/* ===== Payment chips ===== */
.w1043-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.w1043-chip-pill {
  background: var(--w1043-bg-soft);
  border: 1px solid var(--w1043-border);
  border-radius: 999px;
  padding: 0.5rem 1rem;
  font-size: 1.15rem;
  color: var(--w1043-text);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

/* ===== Category filter chips ===== */
.w1043-filter-row {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
}
.w1043-chip {
  background: var(--w1043-bg-soft);
  border: 1px solid var(--w1043-border);
  border-radius: 999px;
  padding: 0.5rem 1.1rem;
  font-size: 1.2rem;
  color: var(--w1043-text-dim);
  cursor: pointer;
  white-space: nowrap;
}
.w1043-chip.w1043-chip-active {
  background: var(--w1043-primary);
  color: #062526;
  border-color: var(--w1043-primary);
}

/* ===== Winners ===== */
.w1043-winners {
  display: grid;
  gap: 0.5rem;
}
.w1043-winner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--w1043-bg-soft);
  padding: 0.6rem 0.9rem;
  border-radius: var(--w1043-radius-sm);
  font-size: 1.2rem;
}
.w1043-winner b { color: var(--w1043-gold); }

/* ===== FAQ ===== */
.w1043-faq-item {
  background: var(--w1043-bg-soft);
  border-radius: var(--w1043-radius-sm);
  padding: 0.9rem 1rem;
  margin-bottom: 0.6rem;
  border: 1px solid var(--w1043-border);
}
.w1043-faq-item h4 {
  margin: 0 0 0.4rem;
  font-size: 1.3rem;
  color: var(--w1043-primary);
}
.w1043-faq-item p { margin: 0; font-size: 1.2rem; color: var(--w1043-text-dim); }

/* ===== Achievements grid ===== */
.w1043-ach-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.6rem;
}
.w1043-ach {
  background: var(--w1043-bg-soft);
  border-radius: var(--w1043-radius-sm);
  padding: 0.9rem;
  text-align: center;
  border: 1px solid var(--w1043-border);
}
.w1043-ach .material-icons, .w1043-ach i {
  color: var(--w1043-gold);
  font-size: 2.2rem;
  margin-bottom: 0.3rem;
}
.w1043-ach span { display: block; font-size: 1.1rem; color: var(--w1043-text-dim); }

/* ===== Footer ===== */
.w1043-footer {
  background: #161616;
  border-top: 2px solid var(--w1043-border);
  padding: 1.5rem 1.4rem 2rem;
  color: var(--w1043-text-dim);
  font-size: 1.2rem;
}
.w1043-footer-brand { margin-bottom: 1rem; }
.w1043-footer-brand h4 { color: var(--w1043-primary); margin: 0 0 0.4rem; font-size: 1.4rem; }
.w1043-footer-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
  margin: 1rem 0;
}
.w1043-footer-links a { color: var(--w1043-text-dim); font-size: 1.15rem; }
.w1043-footer-links a:hover { color: var(--w1043-primary); }
.w1043-footer-promo {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.8rem 0 1rem;
}
.w1043-footer-promo button, .w1043-footer-promo a {
  flex: 1 1 40%;
  background: rgba(0,206,209,0.12);
  color: var(--w1043-primary);
  border: 1px solid var(--w1043-border);
  border-radius: 999px;
  padding: 0.5rem 0.8rem;
  font-size: 1.15rem;
  text-align: center;
  cursor: pointer;
}
.w1043-copyright {
  text-align: center;
  font-size: 1.1rem;
  border-top: 1px dashed rgba(255,255,255,0.08);
  padding-top: 0.8rem;
  margin-top: 0.6rem;
}

/* ===== Mobile bottom navigation ===== */
.w1043-bottomnav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: 62px;
  background: linear-gradient(180deg, #232323, #161616);
  border-top: 2px solid var(--w1043-border);
  display: flex;
  justify-content: space-around;
  align-items: stretch;
  box-shadow: 0 -4px 18px rgba(0,0,0,0.5);
}
.w1043-bottomnav button, .w1043-bottomnav a {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--w1043-text-dim);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-width: 60px;
  min-height: 60px;
  cursor: pointer;
  font-size: 1.05rem;
  text-decoration: none;
  position: relative;
  padding: 4px 2px;
  transition: color 0.15s ease, transform 0.15s ease;
}
.w1043-bottomnav button:active, .w1043-bottomnav a:active { transform: scale(0.92); }
.w1043-bottomnav .material-icons,
.w1043-bottomnav i {
  font-size: 22px;
}
.w1043-bottomnav button.w1043-navitem-current,
.w1043-bottomnav a.w1043-navitem-current {
  color: var(--w1043-primary);
}
.w1043-bottomnav .w1043-navitem-current::after {
  content: "";
  position: absolute;
  top: 0;
  width: 28px;
  height: 3px;
  border-radius: 3px;
  background: var(--w1043-primary);
}

/* Promo highlighted button */
.w1043-bottomnav .w1043-navitem-promo {
  color: var(--w1043-primary);
}
.w1043-bottomnav .w1043-navitem-promo .material-icons,
.w1043-bottomnav .w1043-navitem-promo i {
  background: linear-gradient(135deg, var(--w1043-primary), var(--w1043-primary-dark));
  color: #062526;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-top: -10px;
  box-shadow: 0 4px 10px rgba(0,206,209,0.5);
  border: 2px solid #161616;
}

/* ===== Reveal animation ===== */
.w1043-reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.w1043-reveal.w1043-revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Back to top ===== */
.w1043-totop {
  position: fixed;
  right: 14px;
  bottom: 78px;
  z-index: 999;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--w1043-primary);
  color: #062526;
  border: none;
  font-size: 1.6rem;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,206,209,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ===== Desktop rules ===== */
@media (min-width: 769px) {
  .w1043-bottomnav { display: none; }
  .w1043-totop { display: none; }
  main { padding-bottom: 30px; }
  .w1043-wrapper {
    max-width: 760px;
    margin: 24px auto;
    border-radius: 18px;
    overflow: hidden;
  }
  .w1043-grid { grid-template-columns: repeat(6, 1fr); }
  .w1043-grid-4 { grid-template-columns: repeat(8, 1fr); }
  .w1043-footer-links { grid-template-columns: repeat(3, 1fr); }
}

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

/* Focus visible accessibility */
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--w1043-primary);
  outline-offset: 2px;
}
