/* ============================================================
 * kuwin game - theme.css
 * All custom classes use the dynamic prefix "v149-".
 * Mobile-first. Max content width 430px.
 * Brand palette: #2D2D2D (bg) | #FFB74D (accent text)
 * ============================================================ */

:root {
  --v149-bg: #2D2D2D;
  --v149-bg-2: #1f1f1f;
  --v149-bg-3: #3a3a3a;
  --v149-accent: #FFB74D;
  --v149-accent-2: #ff9b2f;
  --v149-text: #f5f5f5;
  --v149-muted: #c9c9c9;
  --v149-border: rgba(255, 183, 77, 0.25);
  --v149-success: #4cd07d;
  --v149-danger: #ff6b6b;
  --v149-radius: 14px;
  --v149-shadow: 0 6px 22px rgba(0, 0, 0, 0.35);
}

* { box-sizing: border-box; }

html { font-size: 62.5%; }

body {
  margin: 0;
  background: var(--v149-bg);
  color: var(--v149-text);
  font-family: "Segoe UI", "Helvetica Neue", Arial, "Be Vietnam Pro", sans-serif;
  font-size: 1.5rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--v149-accent); text-decoration: none; }
a:hover { text-decoration: underline; }

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

.v149-wrapper {
  padding-top: 6rem;       /* header clearance */
  padding-bottom: 2rem;
}

main.v149-main {
  padding-bottom: 90px;     /* mobile bottom nav clearance */
}

/* ---------- Header ---------- */
.v149-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: linear-gradient(180deg, #232323 0%, #2D2D2D 100%);
  border-bottom: 1px solid var(--v149-border);
  box-shadow: var(--v149-shadow);
}

.v149-header-inner {
  max-width: 430px;
  margin: 0 auto;
  padding: 0.6rem 1.2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
}

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

.v149-brand img {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  object-fit: cover;
}

.v149-brand-name {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--v149-accent);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

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

.v149-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 1.3rem;
  font-weight: 700;
  padding: 0.6rem 1.1rem;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  text-decoration: none;
  min-height: 36px;
}

.v149-btn:hover { text-decoration: none; transform: translateY(-1px); }

.v149-btn-primary {
  background: linear-gradient(135deg, var(--v149-accent) 0%, var(--v149-accent-2) 100%);
  color: #2a1a00;
  box-shadow: 0 4px 14px rgba(255, 155, 47, 0.35);
}

.v149-btn-outline {
  background: transparent;
  color: var(--v149-accent);
  border: 1.5px solid var(--v149-accent);
}

.v149-btn-block {
  display: flex;
  justify-content: center;
  width: 100%;
  padding: 0.9rem 1rem;
  font-size: 1.5rem;
}

.v149-menu-btn {
  background: transparent;
  border: 0;
  color: var(--v149-accent);
  font-size: 2rem;
  cursor: pointer;
  padding: 0.2rem 0.5rem;
  min-width: 44px;
  min-height: 44px;
}

/* ---------- Mobile slide menu ---------- */
.v149-mobile-menu {
  position: fixed;
  top: 0; right: -100%;
  width: 80%;
  max-width: 320px;
  height: 100%;
  background: var(--v149-bg-2);
  z-index: 9999;
  padding: 7rem 1.5rem 2rem;
  transition: right 0.28s ease;
  overflow-y: auto;
  border-left: 1px solid var(--v149-border);
}

.v149-mobile-menu.v149-menu-open { right: 0; }

.v149-mobile-menu a {
  display: block;
  padding: 0.9rem 0.6rem;
  font-size: 1.4rem;
  color: var(--v149-text);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.v149-mobile-menu a:hover { color: var(--v149-accent); }

.v149-menu-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 9990;
}
.v149-mobile-menu.v149-menu-open ~ .v149-menu-overlay { display: block; }

body.v149-no-scroll { overflow: hidden; }

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

.v149-slide {
  display: none;
  position: relative;
}

.v149-slide.v149-active { display: block; }

.v149-slide img {
  width: 100%;
  height: 190px;
  object-fit: cover;
}

.v149-slide-caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 0.9rem 1.1rem;
  background: linear-gradient(0deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0) 100%);
  color: #fff;
}

.v149-slide-caption h2 {
  margin: 0 0 0.2rem;
  font-size: 1.7rem;
  color: var(--v149-accent);
}

.v149-slide-caption p {
  margin: 0;
  font-size: 1.2rem;
  color: var(--v149-muted);
}

.v149-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.6rem 0;
}

.v149-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  border: 0;
}

.v149-dot.v149-active { background: var(--v149-accent); }

/* ---------- Section headings ---------- */
.v149-section {
  margin: 2.2rem 0 1.2rem;
}

.v149-section-title {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--v149-accent);
  margin: 0 0 0.4rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.v149-section-sub {
  color: var(--v149-muted);
  font-size: 1.3rem;
  margin: 0 0 1rem;
}

.v149-divider {
  height: 3px;
  width: 54px;
  background: var(--v149-accent);
  border-radius: 3px;
  margin-bottom: 1rem;
}

/* ---------- Game grid + cards ---------- */
.v149-filter-row {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding: 0.5rem 0 1rem;
  -webkit-overflow-scrolling: touch;
}

.v149-filter-chip {
  flex: 0 0 auto;
  padding: 0.45rem 1rem;
  border-radius: 999px;
  background: var(--v149-bg-3);
  color: var(--v149-text);
  font-size: 1.25rem;
  border: 1px solid transparent;
  cursor: pointer;
}

.v149-filter-chip.v149-chip-active {
  background: var(--v149-accent);
  color: #2a1a00;
}

.v149-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.7rem;
}

.v149-card {
  background: var(--v149-bg-2);
  border: 1px solid var(--v149-border);
  border-radius: 12px;
  overflow: hidden;
  text-align: center;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  display: block;
}

.v149-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--v149-shadow);
  text-decoration: none;
}

.v149-card-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: #111;
}

.v149-card-name {
  padding: 0.4rem 0.3rem 0.55rem;
  font-size: 1.15rem;
  color: var(--v149-text);
  line-height: 1.25;
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.v149-card-tag {
  display: inline-block;
  font-size: 1rem;
  background: rgba(255,183,77,0.15);
  color: var(--v149-accent);
  padding: 0.1rem 0.5rem;
  border-radius: 6px;
  margin-bottom: 0.3rem;
}

/* ---------- Generic panels ---------- */
.v149-panel {
  background: var(--v149-bg-2);
  border: 1px solid var(--v149-border);
  border-radius: var(--v149-radius);
  padding: 1.4rem;
  margin-bottom: 1.2rem;
}

.v149-panel h3 {
  margin: 0 0 0.6rem;
  font-size: 1.5rem;
  color: var(--v149-accent);
}

.v149-panel p {
  margin: 0 0 0.7rem;
  color: var(--v149-muted);
  font-size: 1.3rem;
}

/* ---------- FAQ accordion ---------- */
.v149-faq-item {
  background: var(--v149-bg-2);
  border: 1px solid var(--v149-border);
  border-radius: 12px;
  margin-bottom: 0.7rem;
  overflow: hidden;
}

.v149-faq-q {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.6rem;
  padding: 1rem 1.1rem;
  font-size: 1.35rem;
  font-weight: 700;
  cursor: pointer;
  color: var(--v149-text);
}

.v149-faq-q .v149-faq-icon { color: var(--v149-accent); transition: transform 0.2s; }

.v149-faq-item.v149-faq-open .v149-faq-icon { transform: rotate(45deg); }

.v149-faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
  padding: 0 1.1rem;
  color: var(--v149-muted);
  font-size: 1.25rem;
}

.v149-faq-item.v149-faq-open .v149-faq-a {
  max-height: 400px;
  padding-bottom: 1rem;
}

/* ---------- Feature list ---------- */
.v149-feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.v149-feature-list li {
  display: flex;
  gap: 0.7rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  font-size: 1.3rem;
  color: var(--v149-muted);
}

.v149-feature-list li:last-child { border-bottom: 0; }

.v149-feature-list .v149-check { color: var(--v149-success); }

/* ---------- Testimonials ---------- */
.v149-testi {
  background: var(--v149-bg-2);
  border-left: 3px solid var(--v149-accent);
  border-radius: 10px;
  padding: 1rem 1.1rem;
  margin-bottom: 0.8rem;
}

.v149-testi p { margin: 0 0 0.4rem; font-size: 1.25rem; color: var(--v149-muted); }
.v149-testi strong { color: var(--v149-accent); font-size: 1.2rem; }

/* ---------- Winners ticker ---------- */
.v149-winner-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  padding: 0.55rem 0.8rem;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  font-size: 1.2rem;
}
.v149-winner-row:last-child { border-bottom: 0; }
.v149-winner-amount { color: var(--v149-success); font-weight: 700; }

/* ---------- Payment grid ---------- */
.v149-pay-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
}

.v149-pay-item {
  background: #fff;
  border-radius: 8px;
  padding: 0.6rem;
  text-align: center;
  font-size: 1rem;
  color: #333;
  font-weight: 700;
}

/* ---------- Promo CTA strip ---------- */
.v149-cta {
  background: linear-gradient(135deg, #3a2a10 0%, var(--v149-bg-2) 100%);
  border: 1px solid var(--v149-border);
  border-radius: var(--v149-radius);
  padding: 1.4rem;
  text-align: center;
  margin: 1.4rem 0;
}

.v149-cta h3 { margin: 0 0 0.5rem; color: var(--v149-accent); font-size: 1.7rem; }
.v149-cta p { margin: 0 0 1rem; color: var(--v149-muted); font-size: 1.25rem; }

/* ---------- Footer ---------- */
.v149-footer {
  background: var(--v149-bg-2);
  border-top: 1px solid var(--v149-border);
  padding: 2rem 0 1.5rem;
  margin-top: 2rem;
}

.v149-footer p {
  color: var(--v149-muted);
  font-size: 1.2rem;
  line-height: 1.6;
}

.v149-footer h4 {
  color: var(--v149-accent);
  font-size: 1.35rem;
  margin: 1.2rem 0 0.5rem;
}

.v149-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.9rem;
  margin: 0.5rem 0 1rem;
}

.v149-footer-links a {
  font-size: 1.2rem;
  color: var(--v149-muted);
}

.v149-footer-links a:hover { color: var(--v149-accent); }

.v149-copyright {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 1rem;
  margin-top: 1rem;
  font-size: 1.15rem;
  color: #888;
  text-align: center;
}

/* ---------- Mobile bottom navigation ---------- */
.v149-bottom-nav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: 62px;
  background: linear-gradient(180deg, #2a2a2a 0%, #181818 100%);
  border-top: 1px solid var(--v149-border);
  display: flex;
  justify-content: space-around;
  align-items: stretch;
  z-index: 1000;
  box-shadow: 0 -4px 18px rgba(0,0,0,0.45);
}

.v149-nav-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  background: transparent;
  border: 0;
  color: var(--v149-muted);
  font-size: 1rem;
  cursor: pointer;
  padding: 0.3rem 0;
  min-width: 60px;
  min-height: 60px;
  transition: color 0.18s, transform 0.18s;
}

.v149-nav-btn .v149-nav-icon { font-size: 22px; line-height: 1; }
.v149-nav-btn:hover { color: var(--v149-accent); transform: translateY(-1px); }
.v149-nav-btn.v149-nav-current { color: var(--v149-accent); }

.v149-nav-current .v149-nav-icon { transform: scale(1.08); }

/* ---------- Desktop ---------- */
@media (min-width: 769px) {
  body { background: #181818; }
  .v149-header { position: sticky; }
  .v149-container { max-width: 960px; }
  .v149-grid { grid-template-columns: repeat(6, 1fr); }
  .v149-bottom-nav { display: none; }
  main.v149-main { padding-bottom: 2rem; }
}

/* Material Icons sizing helpers */
.material-icons { font-size: 22px; vertical-align: middle; }
