/* kuwin9 main CSS - all classes use w746c- prefix */
/* English code comments only */

:root {
  --w746c-primary: #FFBF00;
  --w746c-bg: #0F0F23;
  --w746c-text: #FFF176;
  --w746c-accent: #FFA500;
  --w746c-alert: #CD5C5C;
  --w746c-light: #ffffff;
  --w746c-muted: #b8b8d0;
  --w746c-card: #1a1a38;
  --w746c-border: #2a2a52;
  --w746c-shadow: 0 6px 20px rgba(0, 0, 0, 0.45);
}

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

html {
  font-size: 62.5%;
}

body {
  font-family: "Segoe UI", "Roboto", "Helvetica Neue", Arial, sans-serif;
  background: var(--w746c-bg);
  color: var(--w746c-light);
  line-height: 1.5rem;
  max-width: 430px;
  margin: 0 auto;
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
}

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

/* ---------- Header ---------- */
.w746c-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: linear-gradient(135deg, #0F0F23 0%, #1a1a38 100%);
  border-bottom: 2px solid var(--w746c-primary);
  padding: 0.8rem 1rem;
}
.w746c-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
}
.w746c-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-width: 0;
}
.w746c-logo img {
  width: 28px;
  height: 28px;
  border-radius: 6px;
}
.w746c-logo strong {
  font-size: 1.5rem;
  color: var(--w746c-primary);
  font-weight: 800;
  letter-spacing: 0.5px;
}
.w746c-logo span {
  font-size: 1.1rem;
  color: var(--w746c-muted);
}
.w746c-btn-group { display: flex; gap: 0.5rem; align-items: center; }
.w746c-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 36px;
  padding: 0 0.9rem;
  border-radius: 999px;
  font-size: 1.3rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  white-space: nowrap;
}
.w746c-btn:active { transform: scale(0.94); }
.w746c-btn-register {
  background: linear-gradient(135deg, #FFA500, #FFBF00);
  color: #0F0F23;
  box-shadow: 0 3px 10px rgba(255, 191, 0, 0.35);
}
.w746c-btn-login {
  background: transparent;
  color: var(--w746c-text);
  border: 1.5px solid var(--w746c-primary);
}
.w746c-menu-btn {
  background: transparent;
  border: none;
  color: var(--w746c-text);
  font-size: 1.8rem;
  cursor: pointer;
  min-width: 40px;
  min-height: 40px;
  border-radius: 8px;
}
.w746c-menu-btn:active { background: rgba(255, 191, 0, 0.15); }

/* ---------- Mobile expandable menu ---------- */
.w746c-mobile-menu {
  display: none;
  background: #13132b;
  border-bottom: 1px solid var(--w746c-border);
  padding: 0.6rem 1rem 1rem;
}
.w746c-mobile-menu.w746c-menu-open { display: block; }
.w746c-mobile-menu a {
  display: block;
  padding: 0.9rem 0.6rem;
  font-size: 1.3rem;
  color: var(--w746c-light);
  border-bottom: 1px solid rgba(255, 191, 0, 0.08);
}
.w746c-mobile-menu a:active { color: var(--w746c-primary); }
.w746c-menu-title {
  font-size: 1.1rem;
  color: var(--w746c-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 0.6rem 0.4rem 0.3rem;
}

/* ---------- Layout ---------- */
.w746c-container { padding: 1rem; }
.w746c-section { padding: 1.6rem 1rem; }
.w746c-section-title {
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--w746c-primary);
  margin-bottom: 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.w746c-section-sub {
  font-size: 1.25rem;
  color: var(--w746c-text);
  margin: 1rem 0 0.6rem;
  font-weight: 700;
}
.w746c-text p {
  font-size: 1.3rem;
  color: var(--w746c-light);
  margin-bottom: 0.8rem;
}
.w746c-text a {
  color: var(--w746c-primary);
  font-weight: 700;
  text-decoration: underline;
}

/* ---------- Carousel ---------- */
.w746c-carousel {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 0.4rem;
  box-shadow: var(--w746c-shadow);
}
.w746c-slide {
  display: none;
  position: relative;
}
.w746c-slide.w746c-slide-active { display: block; }
.w746c-slide img {
  width: 100%;
  height: 190px;
  object-fit: cover;
}
.w746c-slide-overlay {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 1rem;
  background: linear-gradient(transparent, rgba(15,15,35,0.9));
  color: var(--w746c-light);
}
.w746c-slide-overlay h2 {
  font-size: 1.6rem;
  color: var(--w746c-primary);
  margin-bottom: 0.3rem;
}
.w746c-slide-overlay p { font-size: 1.2rem; color: var(--w746c-text); }
.w746c-dots {
  position: absolute;
  bottom: 8px;
  right: 12px;
  display: flex;
  gap: 5px;
}
.w746c-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  border: none;
  cursor: pointer;
}
.w746c-dot.w746c-dot-active { background: var(--w746c-primary); }

/* ---------- Hero ---------- */
.w746c-hero {
  text-align: center;
  padding: 1.4rem 1rem 1rem;
}
.w746c-hero h1 {
  font-size: 2rem;
  color: var(--w746c-light);
  line-height: 1.3;
  margin-bottom: 0.6rem;
}
.w746c-hero h1 b { color: var(--w746c-primary); }
.w746c-hero p {
  font-size: 1.25rem;
  color: var(--w746c-muted);
  margin-bottom: 1rem;
}
.w746c-cta-row {
  display: flex;
  gap: 0.6rem;
  justify-content: center;
  flex-wrap: wrap;
}
.w746c-cta-row .w746c-btn { min-height: 42px; padding: 0 1.4rem; font-size: 1.35rem; }

/* ---------- Game grid ---------- */
.w746c-cat-tabs {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding: 0.6rem 0 1rem;
  -webkit-overflow-scrolling: touch;
}
.w746c-cat-tab {
  flex: 0 0 auto;
  padding: 0.6rem 1.1rem;
  border-radius: 999px;
  background: var(--w746c-card);
  color: var(--w746c-text);
  font-size: 1.2rem;
  font-weight: 700;
  border: 1px solid var(--w746c-border);
  cursor: pointer;
}
.w746c-cat-tab:active { background: var(--w746c-primary); color: var(--w746c-bg); }

.w746c-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.7rem;
}
.w746c-card {
  background: var(--w746c-card);
  border: 1px solid var(--w746c-border);
  border-radius: 12px;
  overflow: hidden;
  text-align: center;
  transition: transform 0.15s ease;
  cursor: pointer;
}
.w746c-card:active { transform: scale(0.96); }
.w746c-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: #0a0a1f;
}
.w746c-card-name {
  font-size: 1.05rem;
  color: var(--w746c-light);
  padding: 0.4rem 0.3rem 0.6rem;
  font-weight: 600;
  min-height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---------- Info / features blocks ---------- */
.w746c-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.7rem;
}
.w746c-feature {
  background: var(--w746c-card);
  border: 1px solid var(--w746c-border);
  border-radius: 12px;
  padding: 1rem;
}
.w746c-feature .ico {
  font-size: 1.8rem;
  color: var(--w746c-primary);
  margin-bottom: 0.4rem;
}
.w746c-feature h3 {
  font-size: 1.25rem;
  color: var(--w746c-text);
  margin-bottom: 0.3rem;
}
.w746c-feature p { font-size: 1.15rem; color: var(--w746c-muted); }

.w746c-callout {
  background: linear-gradient(135deg, rgba(255,165,0,0.15), rgba(255,191,0,0.05));
  border: 1px solid var(--w746c-primary);
  border-radius: 14px;
  padding: 1.2rem;
  text-align: center;
  margin: 1rem 0;
}
.w746c-callout h3 { color: var(--w746c-primary); font-size: 1.4rem; margin-bottom: 0.4rem; }
.w746c-callout p { color: var(--w746c-light); font-size: 1.2rem; margin-bottom: 0.8rem; }

/* ---------- Testimonials ---------- */
.w746c-review {
  background: var(--w746c-card);
  border-left: 3px solid var(--w746c-accent);
  border-radius: 8px;
  padding: 0.9rem 1rem;
  margin-bottom: 0.7rem;
}
.w746c-review .name { color: var(--w746c-primary); font-weight: 700; font-size: 1.2rem; }
.w746c-review .stars { color: var(--w746c-accent); font-size: 1.1rem; margin: 0.2rem 0; }
.w746c-review p { color: var(--w746c-light); font-size: 1.15rem; }

/* ---------- Winners ---------- */
.w746c-winner-row {
  display: flex;
  justify-content: space-between;
  padding: 0.6rem 0;
  border-bottom: 1px dashed var(--w746c-border);
  font-size: 1.2rem;
}
.w746c-winner-row .amt { color: var(--w746c-primary); font-weight: 700; }

/* ---------- Payment ---------- */
.w746c-pay-row { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.w746c-pay-chip {
  background: var(--w746c-card);
  border: 1px solid var(--w746c-border);
  border-radius: 999px;
  padding: 0.5rem 1rem;
  font-size: 1.15rem;
  color: var(--w746c-text);
}

/* ---------- FAQ ---------- */
.w746c-faq-item {
  background: var(--w746c-card);
  border: 1px solid var(--w746c-border);
  border-radius: 10px;
  margin-bottom: 0.6rem;
  overflow: hidden;
}
.w746c-faq-q {
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  color: var(--w746c-text);
  font-weight: 700;
  font-size: 1.25rem;
  padding: 1rem;
  cursor: pointer;
}
.w746c-faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
  padding: 0 1rem;
  color: var(--w746c-light);
  font-size: 1.15rem;
}
.w746c-faq-open .w746c-faq-a { max-height: 400px; padding: 0 1rem 1rem; }

/* ---------- Footer ---------- */
.w746c-footer {
  background: #0a0a1f;
  border-top: 2px solid var(--w746c-primary);
  padding: 1.5rem 1rem 8rem;
  margin-top: 1.5rem;
}
.w746c-footer p { font-size: 1.15rem; color: var(--w746c-muted); margin-bottom: 0.7rem; }
.w746c-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  margin: 0.8rem 0;
}
.w746c-footer-links a {
  color: var(--w746c-text);
  font-size: 1.15rem;
  text-decoration: underline;
}
.w746c-footer-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.8rem 0;
}
.w746c-footer-btns .w746c-btn { flex: 1 1 auto; min-height: 38px; }
.w746c-partners {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
  margin: 1rem 0;
}
.w746c-mini-logo {
  background: var(--w746c-card);
  border: 1px solid var(--w746c-border);
  border-radius: 10px;
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--w746c-primary);
  font-size: 1.1rem;
  font-weight: 800;
}
.w746c-copyright {
  font-size: 1.05rem;
  color: var(--w746c-muted);
  margin-top: 0.8rem;
  border-top: 1px solid var(--w746c-border);
  padding-top: 0.8rem;
}

/* ---------- Mobile bottom nav ---------- */
.w746c-bottom-nav {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 1000;
  max-width: 430px;
  margin: 0 auto;
  height: 60px;
  background: linear-gradient(180deg, #16163a, #0a0a1f);
  border-top: 2px solid var(--w746c-primary);
  display: flex;
  justify-content: space-around;
  align-items: stretch;
  box-shadow: 0 -4px 16px rgba(0,0,0,0.4);
}
.w746c-nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  color: var(--w746c-muted);
  font-size: 1rem;
  cursor: pointer;
  background: transparent;
  border: none;
  text-decoration: none;
  padding: 4px 2px;
  transition: transform 0.15s ease, color 0.15s ease;
  min-width: 60px;
  min-height: 60px;
}
.w746c-nav-item .ico { font-size: 22px; line-height: 1; }
.w746c-nav-item .ico.mi { font-size: 24px; }
.w746c-nav-item span { font-size: 1rem; }
.w746c-nav-item:active { transform: scale(0.92); color: var(--w746c-primary); }
.w746c-nav-item.active { color: var(--w746c-primary); }
.w746c-nav-item.promo .ico { color: var(--w746c-accent); }

/* Desktop: hide bottom nav */
@media (min-width: 769px) {
  .w746c-bottom-nav { display: none; }
  body { max-width: 430px; }
}

/* Mobile: bottom padding so content is not hidden */
@media (max-width: 768px) {
  main, .w746c-main { padding-bottom: 80px; }
}
