/* 6win core stylesheet - basefile module
   All custom class names use the dynamic prefix w9161- to isolate the namespace.
   Comments are in English per project convention. */

:root {
  --w9161-primary: #E8F5E8;
  --w9161-secondary: #DCDCDC;
  --w9161-accent: #D3D3D3;
  --w9161-muted: #708090;
  --w9161-bg: #1B263B;
  --w9161-bg-dark: #0f1828;
  --w9161-bg-card: #3C3C3C;
  --w9161-text: #E8F5E8;
  --w9161-text-dim: #DCDCDC;
  --w9161-link: #E8F5E8;
  --w9161-highlight: #708090;
  --w9161-gold: #D4AF37;
  --w9161-radius: 1.0rem;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--w9161-bg-dark);
  color: var(--w9161-text);
  line-height: 1.5rem;
  font-size: 1.4rem;
  max-width: 430px;
  margin: 0 auto;
  overflow-x: hidden;
  min-height: 100vh;
}

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

a { color: var(--w9161-link); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ===== Header ===== */
.w9161-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: linear-gradient(180deg, #1B263B 0%, #3C3C3C 100%);
  border-bottom: 1px solid var(--w9161-muted);
  max-width: 430px;
  margin: 0 auto;
}
.w9161-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 0.8rem;
  min-height: 5.2rem;
}
.w9161-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--w9161-text);
  font-weight: 700;
  font-size: 1.5rem;
}
.w9161-logo img { width: 3rem; height: 3rem; border-radius: 0.5rem; }
.w9161-logo-text { color: var(--w9161-gold); letter-spacing: 0.5px; }
.w9161-header-actions { display: flex; align-items: center; gap: 0.5rem; }
.w9161-menu-btn {
  background: transparent;
  border: 1px solid var(--w9161-muted);
  color: var(--w9161-text);
  width: 3.6rem; height: 3.6rem;
  border-radius: 0.6rem;
  font-size: 1.6rem;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
}
.w9161-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.6rem;
  padding: 0 1.2rem;
  border-radius: 0.6rem;
  font-weight: 700;
  font-size: 1.3rem;
  border: none;
  cursor: pointer;
  transition: transform .15s ease, opacity .15s ease;
}
.w9161-btn:active { transform: scale(0.96); }
.w9161-btn-login { background: transparent; border: 1px solid var(--w9161-gold); color: var(--w9161-gold); }
.w9161-btn-register { background: var(--w9161-gold); color: #1B263B; }

/* ===== Mobile slide-down menu ===== */
.w9161-mobile-menu {
  max-height: 0;
  overflow: hidden;
  background: var(--w9161-bg);
  border-top: 1px solid transparent;
  transition: max-height .3s ease;
}
.w9161-mobile-menu.w9161-menu-open { max-height: 600px; border-top: 1px solid var(--w9161-muted); }
.w9161-mobile-menu ul { list-style: none; padding: 0.5rem 0.8rem 1rem; }
.w9161-mobile-menu li { border-bottom: 1px solid rgba(112,128,144,0.25); }
.w9161-mobile-menu a {
  display: flex; align-items: center; gap: 0.8rem;
  padding: 1.1rem 0.5rem;
  color: var(--w9161-text-dim);
  font-size: 1.35rem;
}
.w9161-mobile-menu a:hover { color: var(--w9161-gold); text-decoration: none; }
.w9161-mobile-menu i { color: var(--w9161-gold); width: 2.4rem; text-align: center; }

/* ===== Main layout ===== */
.w9161-main { padding-top: 6.2rem; }
.w9161-container { width: 100%; max-width: 430px; margin: 0 auto; padding: 0 1rem; }
.w9161-section { padding: 1.8rem 0; }
.w9161-section-alt { background: var(--w9161-bg); }
.w9161-section-title {
  font-size: 1.7rem;
  color: var(--w9161-gold);
  margin-bottom: 1rem;
  padding-left: 0.8rem;
  border-left: 0.4rem solid var(--w9161-gold);
}
.w9161-h1 {
  font-size: 2rem;
  color: var(--w9161-text);
  line-height: 2.6rem;
  margin: 1rem 0;
}
.w9161-lead { color: var(--w9161-text-dim); font-size: 1.35rem; margin-bottom: 1rem; }

/* ===== Carousel ===== */
.w9161-carousel {
  position: relative;
  width: 100%;
  border-radius: var(--w9161-radius);
  overflow: hidden;
  margin-bottom: 1.2rem;
}
.w9161-slides { position: relative; width: 100%; aspect-ratio: 16/9; }
.w9161-slide {
  position: absolute; inset: 0;
  opacity: 0;
  transition: opacity .6s ease;
}
.w9161-slide.w9161-slide-active { opacity: 1; }
.w9161-slide img { width: 100%; height: 100%; object-fit: cover; }
.w9161-slide-overlay {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: linear-gradient(180deg, transparent, rgba(15,24,40,0.85));
  padding: 1rem;
  color: var(--w9161-text);
}
.w9161-slide-overlay h2 { font-size: 1.5rem; color: var(--w9161-gold); }
.w9161-slide-overlay p { font-size: 1.2rem; color: var(--w9161-text-dim); }
.w9161-dots {
  position: absolute; bottom: 0.6rem; right: 0.8rem;
  display: flex; gap: 0.4rem;
}
.w9161-dot {
  width: 0.8rem; height: 0.8rem; border-radius: 50%;
  background: rgba(232,245,232,0.5); cursor: pointer;
}
.w9161-dot.w9161-dot-active { background: var(--w9161-gold); }

/* ===== Promo banner ===== */
.w9161-promo-banner {
  background: linear-gradient(135deg, #3C3C3C, #1B263B);
  border: 1px solid var(--w9161-muted);
  border-radius: var(--w9161-radius);
  padding: 1.2rem;
  margin: 1rem 0;
  text-align: center;
}
.w9161-promo-banner h3 { color: var(--w9161-gold); font-size: 1.6rem; margin-bottom: 0.5rem; }
.w9161-promo-banner p { color: var(--w9161-text-dim); font-size: 1.25rem; margin-bottom: 0.8rem; }
.w9161-promo-link {
  color: var(--w9161-gold);
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
}

/* ===== Game grid ===== */
.w9161-game-section { margin-bottom: 1.5rem; }
.w9161-cat-title {
  font-size: 1.5rem; color: var(--w9161-gold);
  margin: 1rem 0 0.8rem;
  display: flex; align-items: center; gap: 0.5rem;
}
.w9161-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
}
.w9161-game-card {
  background: var(--w9161-bg-card);
  border-radius: 0.6rem;
  overflow: hidden;
  cursor: pointer;
  transition: transform .15s ease;
  text-align: center;
}
.w9161-game-card:active { transform: scale(0.96); }
.w9161-game-card img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.w9161-game-card .w9161-game-name {
  font-size: 1rem;
  color: var(--w9161-text-dim);
  padding: 0.4rem 0.2rem 0.5rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ===== Cards / info blocks ===== */
.w9161-card {
  background: var(--w9161-bg-card);
  border-radius: var(--w9161-radius);
  padding: 1.2rem;
  margin-bottom: 1rem;
}
.w9161-card h3 { color: var(--w9161-gold); font-size: 1.5rem; margin-bottom: 0.6rem; }
.w9161-card p { color: var(--w9161-text-dim); font-size: 1.25rem; margin-bottom: 0.6rem; }
.w9161-card ul { padding-left: 1.4rem; color: var(--w9161-text-dim); }
.w9161-card li { margin-bottom: 0.3rem; }

.w9161-feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.7rem;
}
.w9161-feature {
  background: var(--w9161-bg-card);
  border-radius: 0.6rem;
  padding: 1rem;
  text-align: center;
}
.w9161-feature i { font-size: 2.4rem; color: var(--w9161-gold); margin-bottom: 0.4rem; }
.w9161-feature h4 { color: var(--w9161-text); font-size: 1.3rem; margin-bottom: 0.3rem; }
.w9161-feature p { color: var(--w9161-text-dim); font-size: 1.1rem; }

/* ===== RTP table ===== */
.w9161-rtp-table { width: 100%; border-collapse: collapse; font-size: 1.15rem; }
.w9161-rtp-table th, .w9161-rtp-table td {
  border-bottom: 1px solid rgba(112,128,144,0.3);
  padding: 0.7rem 0.4rem;
  text-align: left;
}
.w9161-rtp-table th { color: var(--w9161-gold); }
.w9161-rtp-table td { color: var(--w9161-text-dim); }
.w9161-rtp-bar {
  height: 0.6rem; background: var(--w9161-bg-dark); border-radius: 0.3rem; overflow: hidden; margin-top: 0.3rem;
}
.w9161-rtp-fill { height: 100%; background: var(--w9161-gold); }

/* ===== Testimonials ===== */
.w9161-testimonial {
  background: var(--w9161-bg-card);
  border-radius: 0.6rem;
  padding: 1rem;
  margin-bottom: 0.7rem;
}
.w9161-testimonial .w9161-stars { color: var(--w9161-gold); margin-bottom: 0.4rem; }
.w9161-testimonial p { color: var(--w9161-text-dim); font-size: 1.2rem; font-style: italic; }
.w9161-testimonial .w9161-author { color: var(--w9161-text); font-size: 1.1rem; margin-top: 0.4rem; font-weight: 700; }

/* ===== Winners ===== */
.w9161-winner {
  display: flex; align-items: center; gap: 0.8rem;
  background: var(--w9161-bg-card);
  padding: 0.8rem; border-radius: 0.5rem; margin-bottom: 0.5rem;
}
.w9161-winner img { width: 3.6rem; height: 3.6rem; border-radius: 0.4rem; }
.w9161-winner .w9161-winner-info { flex: 1; }
.w9161-winner .w9161-winner-name { color: var(--w9161-text); font-size: 1.2rem; }
.w9161-winner .w9161-winner-amount { color: var(--w9161-gold); font-weight: 700; font-size: 1.3rem; }
.w9161-winner .w9161-winner-time { color: var(--w9161-muted); font-size: 1rem; }

/* ===== Payment icons ===== */
.w9161-pay-row { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.w9161-pay {
  background: var(--w9161-bg-card); border-radius: 0.5rem;
  padding: 0.6rem 0.9rem; color: var(--w9161-text-dim); font-size: 1.1rem;
  display: flex; align-items: center; gap: 0.4rem;
}
.w9161-pay i { color: var(--w9161-gold); }

/* ===== App download CTA ===== */
.w9161-app-cta {
  background: linear-gradient(135deg, #3C3C3C, #1B263B);
  border-radius: var(--w9161-radius); padding: 1.4rem; text-align: center; margin: 1rem 0;
}
.w9161-app-cta h3 { color: var(--w9161-gold); font-size: 1.6rem; margin-bottom: 0.5rem; }
.w9161-app-cta p { color: var(--w9161-text-dim); font-size: 1.25rem; margin-bottom: 0.9rem; }
.w9161-app-cta .w9161-btn { margin: 0.3rem; }

/* ===== FAQ ===== */
.w9161-faq-item {
  background: var(--w9161-bg-card); border-radius: 0.6rem; padding: 1rem; margin-bottom: 0.6rem;
}
.w9161-faq-item h4 { color: var(--w9161-gold); font-size: 1.3rem; margin-bottom: 0.4rem; }
.w9161-faq-item p { color: var(--w9161-text-dim); font-size: 1.2rem; }

/* ===== Play now CTA ===== */
.w9161-play-cta {
  background: var(--w9161-gold); color: #1B263B;
  border-radius: var(--w9161-radius); padding: 1.4rem; text-align: center; margin: 1.2rem 0;
  cursor: pointer;
}
.w9161-play-cta h3 { font-size: 1.7rem; }
.w9161-play-cta p { font-size: 1.2rem; margin-top: 0.3rem; }

/* ===== Footer ===== */
.w9161-footer {
  background: var(--w9161-bg-dark);
  border-top: 1px solid var(--w9161-muted);
  padding: 1.6rem 1rem 2rem;
  margin-top: 1.5rem;
}
.w9161-footer-brand { color: var(--w9161-text-dim); font-size: 1.2rem; margin-bottom: 1rem; }
.w9161-footer-links {
  display: flex; flex-wrap: wrap; gap: 0.5rem 1rem; margin-bottom: 1rem;
}
.w9161-footer-links a { color: var(--w9161-text-dim); font-size: 1.15rem; }
.w9161-footer-promo { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1rem; }
.w9161-footer-promo .w9161-btn { font-size: 1.1rem; padding: 0 0.9rem; min-height: 3.2rem; }
.w9161-footer-copy { color: var(--w9161-muted); font-size: 1.1rem; text-align: center; border-top: 1px solid rgba(112,128,144,0.3); padding-top: 1rem; }

/* ===== Mobile bottom nav ===== */
.w9161-bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0;
  z-index: 1000;
  max-width: 430px; margin: 0 auto;
  height: 6.2rem;
  background: linear-gradient(180deg, #3C3C3C, #1B263B);
  border-top: 1px solid var(--w9161-muted);
  display: flex; justify-content: space-around; align-items: stretch;
}
.w9161-nav-item {
  flex: 1; min-width: 6rem; min-height: 6rem;
  background: transparent; border: none; color: var(--w9161-text-dim);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 0.2rem; cursor: pointer; padding: 0.2rem;
  transition: color .15s ease, transform .15s ease;
}
.w9161-nav-item i, .w9161-nav-item .material-icons-outlined, .w9161-nav-item .ion { font-size: 2.4rem; }
.w9161-nav-item span { font-size: 1rem; }
.w9161-nav-item:active { transform: scale(0.92); }
.w9161-nav-item.w9161-nav-active { color: var(--w9161-gold); }
.w9161-nav-item:hover { color: var(--w9161-gold); }

/* ===== Desktop: hide bottom nav, widen layout ===== */
@media (min-width: 769px) {
  .w9161-bottom-nav { display: none; }
  body, .w9161-header, .w9161-container, .w9161-footer, .w9161-main { max-width: 430px; }
}

/* ===== Mobile bottom padding clearance ===== */
@media (max-width: 768px) {
  .w9161-main { padding-bottom: 8rem; }
  .w9161-footer { padding-bottom: 8rem; }
}

/* Utility */
.w9161-text-center { text-align: center; }
.w9161-mt-1 { margin-top: 1rem; }
.w9161-hidden { display: none; }
