/* ============================================================
 * nustar casino app - style.css
 * All custom classes use the w3276- prefix.
 * Palette: #273746 (dark bg) | #FFB347 (amber accent) | #FAFAD2 (light text)
 * Mobile-first. Root font 62.5% so 1rem = 10px.
 * ============================================================ */

:root {
  --w3276-primary: #273746;
  --w3276-primary-2: #1c2a36;
  --w3276-primary-3: #324b5f;
  --w3276-accent: #FFB347;
  --w3276-accent-2: #ff9b2f;
  --w3276-light: #FAFAD2;
  --w3276-light-2: #fffdf0;
  --w3276-text: #f5f1d8;
  --w3276-muted: #b9c2cf;
  --w3276-danger: #e05656;
  --w3276-success: #4caf93;
  --w3276-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
  --w3276-radius: 14px;
  --w3276-radius-sm: 8px;
}

* {
  box-sizing: border-box;
}

html {
  font-size: 62.5%;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  padding: 0;
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  background: linear-gradient(180deg, #1c2a36 0%, #273746 40%, #1c2a36 100%);
  color: var(--w3276-text);
  line-height: 1.5rem;
  font-size: 1.4rem;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--w3276-accent); text-decoration: none; }
a:hover { color: var(--w3276-light); }
img { max-width: 100%; display: block; }

h1, h2, h3, h4 { color: var(--w3276-light); margin: 0 0 .6rem; line-height: 1.4rem; font-weight: 700; }
h1 { font-size: 2.2rem; }
h2 { font-size: 1.9rem; }
h3 { font-size: 1.6rem; }
h4 { font-size: 1.35rem; }
p  { margin: 0 0 1rem; }

/* ---------- Layout ---------- */
.w3276-wrapper {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1.2rem;
}

.w3276-container {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
}

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

/* ---------- Header ---------- */
.w3276-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: linear-gradient(90deg, #1c2a36 0%, #273746 60%, #324b5f 100%);
  border-bottom: 2px solid var(--w3276-accent);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
}

.w3276-header-inner {
  max-width: 430px;
  margin: 0 auto;
  padding: .55rem 1rem;
  display: flex;
  align-items: center;
  gap: .55rem;
}

.w3276-logo {
  display: flex;
  align-items: center;
  gap: .5rem;
  flex: 1;
  min-width: 0;
}

.w3276-logo img {
  width: 28px; height: 28px;
  border-radius: 6px;
  border: 1px solid var(--w3276-accent);
}

.w3276-logo-text {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--w3276-light);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.w3276-logo-text span { color: var(--w3276-accent); }

.w3276-header-btns {
  display: flex;
  align-items: center;
  gap: .4rem;
}

.w3276-menu-toggle {
  background: transparent;
  border: 1px solid var(--w3276-accent);
  color: var(--w3276-accent);
  width: 34px; height: 34px;
  border-radius: 6px;
  font-size: 1.4rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* ---------- Buttons ---------- */
.w3276-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .35rem;
  padding: .55rem .9rem;
  border-radius: var(--w3276-radius-sm);
  font-size: 1.25rem;
  font-weight: 700;
  border: 1px solid transparent;
  cursor: pointer;
  min-height: 36px;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  text-decoration: none;
  line-height: 1;
}
.w3276-btn:active { transform: scale(.96); }

.w3276-btn-primary {
  background: linear-gradient(180deg, #FFB347 0%, #ff9b2f 100%);
  color: #273746;
  box-shadow: 0 3px 0 #b96f1c;
}
.w3276-btn-primary:hover { background: var(--w3276-accent); color: #1c2a36; }

.w3276-btn-ghost {
  background: transparent;
  color: var(--w3276-light);
  border: 1px solid var(--w3276-accent);
}
.w3276-btn-ghost:hover { background: rgba(255, 179, 71, .12); }

.w3276-btn-block {
  width: 100%;
  padding: .9rem;
  font-size: 1.45rem;
}

.w3276-text-link {
  color: var(--w3276-accent);
  font-weight: 700;
  border-bottom: 1px dashed rgba(255, 179, 71, .55);
}

/* ---------- Mobile Menu ---------- */
.w3276-mobile-menu {
  position: fixed;
  top: 0; right: -100%;
  width: 80%;
  max-width: 320px;
  height: 100vh;
  background: #1c2a36;
  z-index: 9999;
  padding: 6rem 1.2rem 2rem;
  overflow-y: auto;
  transition: right .25s ease;
  border-left: 1px solid rgba(255, 179, 71, .25);
  visibility: hidden;
}
.w3276-mobile-menu.w3276-menu-open { right: 0; visibility: visible; }

.w3276-mobile-menu h4 {
  color: var(--w3276-accent);
  font-size: 1.2rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin: 1.2rem 0 .5rem;
  border-bottom: 1px solid rgba(255, 179, 71, .25);
  padding-bottom: .3rem;
}

.w3276-mobile-menu a {
  display: block;
  padding: .65rem .4rem;
  color: var(--w3276-text);
  border-bottom: 1px solid rgba(255, 255, 255, .06);
  font-size: 1.25rem;
}
.w3276-mobile-menu a:hover { color: var(--w3276-accent); padding-left: .8rem; }

.w3276-menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .55);
  z-index: 9998;
  display: none;
}
.w3276-menu-overlay.w3276-menu-open { display: block; }

.w3276-menu-close {
  position: absolute;
  top: 1rem; right: 1rem;
  background: transparent;
  border: none;
  color: var(--w3276-accent);
  font-size: 1.8rem;
  cursor: pointer;
}

/* ---------- Sections ---------- */
.w3276-section {
  padding: 1.6rem 0;
}

.w3276-section-title {
  display: flex;
  align-items: center;
  gap: .55rem;
  margin-bottom: 1rem;
}
.w3276-section-title .material-icons,
.w3276-section-title .fas { color: var(--w3276-accent); font-size: 1.6rem; }
.w3276-section-title h2 { margin: 0; flex: 1; }

.w3276-card {
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 179, 71, .18);
  border-radius: var(--w3276-radius);
  padding: 1.1rem;
  margin-bottom: 1rem;
  box-shadow: var(--w3276-shadow);
}

.w3276-card-accent {
  border-left: 4px solid var(--w3276-accent);
}

/* ---------- Hero / Carousel ---------- */
.w3276-carousel {
  position: relative;
  overflow: hidden;
  border-radius: var(--w3276-radius);
  box-shadow: var(--w3276-shadow);
  margin-top: 1rem;
}

.w3276-slides { position: relative; }

.w3276-slide {
  display: none;
  position: relative;
}
.w3276-slide.w3276-slide-active { display: block; }

.w3276-slide img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: var(--w3276-radius);
}

.w3276-slide-caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  background: linear-gradient(0deg, rgba(0,0,0,.85), transparent);
  padding: 1.2rem 1rem 1rem;
  color: var(--w3276-light);
}
.w3276-slide-caption h3 { color: var(--w3276-accent); margin: 0 0 .25rem; font-size: 1.5rem; }
.w3276-slide-caption p { margin: 0; font-size: 1.15rem; color: var(--w3276-light-2); }

.w3276-dots {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 5;
}
.w3276-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .5);
  cursor: pointer;
  border: none;
}
.w3276-dot.w3276-dot-active { background: var(--w3276-accent); width: 18px; border-radius: 4px; }

/* ---------- Hero CTA strip ---------- */
.w3276-hero-cta {
  margin: 1rem 0;
  padding: 1.1rem;
  border-radius: var(--w3276-radius);
  background: linear-gradient(135deg, #FFB347 0%, #ff9b2f 100%);
  color: #1c2a36;
  text-align: center;
}
.w3276-hero-cta h2 { color: #1c2a36; margin: 0 0 .35rem; font-size: 1.7rem; }
.w3276-hero-cta p { margin: 0 0 .75rem; color: #273746; font-weight: 600; }
.w3276-hero-cta .w3276-btn { background: #1c2a36; color: var(--w3276-accent); }

/* ---------- Game grid ---------- */
.w3276-game-group { margin-bottom: 1.8rem; }
.w3276-game-group-header {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-bottom: .8rem;
  padding-bottom: .4rem;
  border-bottom: 1px solid rgba(255, 179, 71, .25);
}
.w3276-game-group-header h3 { margin: 0; flex: 1; font-size: 1.45rem; color: var(--w3276-accent); }
.w3276-game-group-header .w3276-count { font-size: 1.1rem; color: var(--w3276-muted); }

.w3276-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .6rem;
}
.w3276-grid-4 { grid-template-columns: repeat(4, 1fr); }

.w3276-game-card {
  background: rgba(255, 255, 255, .04);
  border-radius: var(--w3276-radius-sm);
  border: 1px solid rgba(255, 255, 255, .08);
  padding: .45rem;
  text-align: center;
  transition: transform .15s ease, border-color .15s ease;
  cursor: pointer;
  overflow: hidden;
}
.w3276-game-card:hover {
  transform: translateY(-2px);
  border-color: var(--w3276-accent);
}
.w3276-game-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: .35rem;
}
.w3276-game-card .w3276-game-name {
  font-size: 1.05rem;
  color: var(--w3276-light);
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2;
}

/* ---------- Filter chips ---------- */
.w3276-chips {
  display: flex;
  gap: .45rem;
  overflow-x: auto;
  padding: .5rem 0;
  -webkit-overflow-scrolling: touch;
}
.w3276-chip {
  padding: .4rem .85rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 179, 71, .25);
  color: var(--w3276-text);
  font-size: 1.1rem;
  white-space: nowrap;
  cursor: pointer;
}
.w3276-chip:hover, .w3276-chip.is-active { background: var(--w3276-accent); color: #1c2a36; border-color: var(--w3276-accent); }

/* ---------- Feature list ---------- */
.w3276-feature-list { list-style: none; padding: 0; margin: 0; }
.w3276-feature-list li {
  display: flex;
  align-items: flex-start;
  gap: .65rem;
  padding: .55rem 0;
  border-bottom: 1px dashed rgba(255, 255, 255, .08);
}
.w3276-feature-list li:last-child { border-bottom: none; }
.w3276-feature-list .material-icons,
.w3276-feature-list .fas,
.w3276-feature-list .bi { color: var(--w3276-accent); font-size: 1.4rem; margin-top: .15rem; }

/* ---------- RTP table ---------- */
.w3276-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1.2rem;
  background: rgba(255, 255, 255, .03);
  border-radius: var(--w3276-radius-sm);
  overflow: hidden;
}
.w3276-table th, .w3276-table td {
  padding: .6rem .65rem;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, .07);
}
.w3276-table th {
  background: rgba(255, 179, 71, .15);
  color: var(--w3276-accent);
  font-size: 1.15rem;
}
.w3276-table td.num { text-align: right; color: var(--w3276-success); font-weight: 700; }

/* ---------- FAQ ---------- */
.w3276-faq-item {
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 179, 71, .15);
  border-radius: var(--w3276-radius-sm);
  padding: .8rem .9rem;
  margin-bottom: .6rem;
}
.w3276-faq-item h4 { color: var(--w3276-accent); margin: 0 0 .35rem; font-size: 1.25rem; }
.w3276-faq-item p { margin: 0; font-size: 1.2rem; color: var(--w3276-text); }

/* ---------- Testimonials ---------- */
.w3276-testimonial {
  background: rgba(255, 255, 255, .04);
  border-left: 3px solid var(--w3276-accent);
  padding: .8rem .9rem;
  border-radius: var(--w3276-radius-sm);
  margin-bottom: .6rem;
}
.w3276-testimonial .w3276-stars { color: var(--w3276-accent); font-size: 1.1rem; }
.w3276-testimonial p { margin: .3rem 0; font-size: 1.2rem; }
.w3276-testimonial .w3276-author { font-size: 1.1rem; color: var(--w3276-muted); }

/* ---------- Payment / winners ---------- */
.w3276-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}
.w3276-pill {
  padding: .4rem .8rem;
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 179, 71, .25);
  border-radius: 20px;
  font-size: 1.1rem;
  color: var(--w3276-light);
  display: inline-flex;
  align-items: center;
  gap: .35rem;
}

.w3276-winner {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .5rem .7rem;
  border-bottom: 1px dashed rgba(255, 255, 255, .07);
  font-size: 1.15rem;
}
.w3276-winner:last-child { border-bottom: none; }
.w3276-winner .w3276-amount { margin-left: auto; color: var(--w3276-success); font-weight: 700; }

/* ---------- Achievement grid ---------- */
.w3276-stat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: .6rem;
}
.w3276-stat {
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 179, 71, .2);
  border-radius: var(--w3276-radius-sm);
  padding: .8rem;
  text-align: center;
}
.w3276-stat .w3276-num { font-size: 1.8rem; color: var(--w3276-accent); font-weight: 800; }
.w3276-stat .w3276-label { font-size: 1.05rem; color: var(--w3276-muted); }

/* ---------- Footer ---------- */
.w3276-footer {
  background: #1c2a36;
  border-top: 2px solid var(--w3276-accent);
  padding: 1.6rem 0 1.2rem;
  margin-top: 1.5rem;
  color: var(--w3276-muted);
}
.w3276-footer h4 { color: var(--w3276-accent); margin: .8rem 0 .5rem; font-size: 1.2rem; text-transform: uppercase; letter-spacing: .05em; }
.w3276-footer a { color: var(--w3276-text); display: block; padding: .3rem 0; font-size: 1.15rem; }
.w3276-footer a:hover { color: var(--w3276-accent); }
.w3276-footer .w3276-footer-brand { color: var(--w3276-light); font-size: 1.15rem; margin-bottom: .6rem; }
.w3276-footer .w3276-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  margin: .6rem 0;
}
.w3276-footer .w3276-footer-links a {
  display: inline-block;
  padding: .35rem .65rem;
  background: rgba(255, 179, 71, .08);
  border: 1px solid rgba(255, 179, 71, .25);
  border-radius: 6px;
  font-size: 1.1rem;
}
.w3276-footer .w3276-copyright {
  text-align: center;
  font-size: 1.05rem;
  color: var(--w3276-muted);
  border-top: 1px solid rgba(255, 255, 255, .07);
  padding-top: .8rem;
  margin-top: 1rem;
}

/* ---------- Bottom Nav (mobile) ---------- */
.w3276-bottomnav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: 62px;
  background: linear-gradient(0deg, #1c2a36, #273746);
  border-top: 2px solid var(--w3276-accent);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
  box-shadow: 0 -3px 12px rgba(0, 0, 0, .45);
}
.w3276-bottomnav-btn {
  flex: 1;
  min-width: 60px;
  min-height: 60px;
  background: transparent;
  border: none;
  color: var(--w3276-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .15rem;
  cursor: pointer;
  font-size: 1rem;
  padding: .25rem;
  transition: color .15s ease, transform .15s ease;
}
.w3276-bottomnav-btn:active { transform: scale(.92); }
.w3276-bottomnav-btn .material-icons,
.w3276-bottomnav-btn .fas,
.w3276-bottomnav-btn .bi,
.w3276-bottomnav-btn .ion { font-size: 22px; }
.w3276-bottomnav-btn:hover { color: var(--w3276-accent); }
.w3276-bottomnav-active { color: var(--w3276-accent); }
.w3276-bottomnav-active::after {
  content: "";
  display: block;
  width: 26px; height: 3px;
  background: var(--w3276-accent);
  border-radius: 2px;
  margin-top: 2px;
}

/* ---------- Back to top ---------- */
.w3276-totop {
  position: fixed;
  right: 14px;
  bottom: 76px;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--w3276-accent);
  color: #1c2a36;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  cursor: pointer;
  z-index: 999;
  box-shadow: var(--w3276-shadow);
}

/* ---------- Hero search ---------- */
.w3276-search {
  display: flex;
  gap: .5rem;
  margin: 1rem 0;
}
.w3276-search input {
  flex: 1;
  padding: .65rem .8rem;
  border-radius: var(--w3276-radius-sm);
  border: 1px solid rgba(255, 179, 71, .35);
  background: rgba(255, 255, 255, .05);
  color: var(--w3276-light);
  font-size: 1.2rem;
}

/* ---------- Desktop ---------- */
@media (min-width: 769px) {
  .w3276-bottomnav { display: none; }
  .w3276-wrapper, .w3276-container, .w3276-header-inner { max-width: 760px; }
  .w3276-grid { grid-template-columns: repeat(6, 1fr); }
  .w3276-grid-4 { grid-template-columns: repeat(8, 1fr); }
  main { padding-bottom: 30px; }
}

/* ---------- Utility ---------- */
.w3276-text-center { text-align: center; }
.w3276-mt-1 { margin-top: .5rem; }
.w3276-mt-2 { margin-top: 1rem; }
.w3276-muted { color: var(--w3276-muted); }
.w3276-highlight { background: rgba(255, 179, 71, .12); padding: 0 .25rem; border-radius: 3px; }
.w3276-divider { height: 1px; background: rgba(255, 255, 255, .08); margin: 1rem 0; border: none; }
.w3276-badge {
  display: inline-block;
  padding: .15rem .5rem;
  border-radius: 12px;
  background: var(--w3276-accent);
  color: #1c2a36;
  font-size: 1rem;
  font-weight: 700;
}
