/* kuwin vip - core stylesheet
   Class prefix: v4a4-
   Mobile-first responsive design, max-width 430px. */

:root {
  --v4a4-primary: #DDA0DD;
  --v4a4-bg: #0A0A0A;
  --v4a4-text: #F0F0F0;
  --v4a4-accent: #DDA0DD;
  --v4a4-muted: #9a9a9a;
  --v4a4-card: #161616;
  --v4a4-border: #2a2a2a;
  --v4a4-gold: #e8c07a;
  --v4a4-danger: #ff5a5a;
  --v4a4-success: #4ade80;
  --v4a4-radius: 12px;
  --v4a4-header-h: 56px;
  --v4a4-bottomnav-h: 60px;
}

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

html {
  font-size: 62.5%;
}

body {
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  background: var(--v4a4-bg);
  color: var(--v4a4-text);
  line-height: 1.5rem;
  font-size: 1.4rem;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a {
  color: var(--v4a4-primary);
  text-decoration: none;
}

.v4a4-container {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1.2rem;
}

.v4a4-wrapper {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
}

/* ===== Header ===== */
.v4a4-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--v4a4-header-h);
  background: linear-gradient(180deg, #141414, #0A0A0A);
  border-bottom: 1px solid var(--v4a4-border);
  display: flex;
  align-items: center;
}

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

.v4a4-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--v4a4-text);
  font-weight: 700;
  font-size: 1.5rem;
  flex: 1;
  min-width: 0;
}

.v4a4-logo img {
  width: 28px;
  height: 28px;
  border-radius: 6px;
}

.v4a4-logo span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.v4a4-logo b {
  color: var(--v4a4-primary);
}

.v4a4-header-actions {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.v4a4-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 36px;
  padding: 0 1rem;
  border-radius: 20px;
  font-size: 1.3rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.v4a4-btn:active {
  transform: scale(0.94);
}

.v4a4-btn-login {
  background: transparent;
  color: var(--v4a4-text);
  border: 1px solid var(--v4a4-border);
}

.v4a4-btn-register {
  background: linear-gradient(90deg, var(--v4a4-primary), #c98ad8);
  color: #1a0a1a;
}

.v4a4-menu-btn {
  background: transparent;
  border: 1px solid var(--v4a4-border);
  color: var(--v4a4-text);
  width: 36px;
  height: 36px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1.6rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* ===== Expandable nav menu ===== */
.v4a4-nav {
  position: fixed;
  top: var(--v4a4-header-h);
  left: 0;
  right: 0;
  z-index: 9999;
  background: #121212;
  border-bottom: 1px solid var(--v4a4-border);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
}

.v4a4-nav-open {
  max-height: 460px;
}

.v4a4-nav-list {
  list-style: none;
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  padding: 0.6rem 1rem;
}

.v4a4-nav-list li a {
  display: block;
  padding: 1rem 0.6rem;
  color: var(--v4a4-text);
  font-size: 1.4rem;
  border-bottom: 1px solid var(--v4a4-border);
}

.v4a4-nav-list li a:active {
  color: var(--v4a4-primary);
}

/* ===== Main ===== */
.v4a4-main {
  padding-top: calc(var(--v4a4-header-h) + 8px);
  padding-bottom: calc(var(--v4a4-bottomnav-h) + 20px);
}

/* ===== Carousel ===== */
.v4a4-carousel {
  position: relative;
  width: 100%;
  max-width: 430px;
  margin: 0 auto 1.2rem;
  border-radius: var(--v4a4-radius);
  overflow: hidden;
  aspect-ratio: 16/9;
  background: #111;
}

.v4a4-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.5s ease;
  cursor: pointer;
}

.v4a4-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.v4a4-slide-active {
  opacity: 1;
}

.v4a4-dots {
  position: absolute;
  bottom: 8px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 6px;
  z-index: 2;
}

.v4a4-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(240, 240, 240, 0.5);
  cursor: pointer;
}

.v4a4-dot-active {
  background: var(--v4a4-primary);
}

/* ===== Headings ===== */
.v4a4-h1 {
  font-size: 2rem;
  font-weight: 800;
  margin: 1.2rem 0 0.6rem;
  line-height: 1.3;
}

.v4a4-h1 b {
  color: var(--v4a4-primary);
}

.v4a4-section {
  margin: 1.6rem 0;
}

.v4a4-section-title {
  font-size: 1.6rem;
  font-weight: 700;
  margin: 0 0 1rem;
  padding-left: 0.8rem;
  border-left: 3px solid var(--v4a4-primary);
}

.v4a4-section-title b {
  color: var(--v4a4-primary);
}

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

.v4a4-game {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  cursor: pointer;
  background: var(--v4a4-card);
  border: 1px solid var(--v4a4-border);
  border-radius: 10px;
  padding: 0.4rem;
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.v4a4-game:active {
  transform: scale(0.95);
  border-color: var(--v4a4-primary);
}

.v4a4-game img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  border-radius: 8px;
}

.v4a4-game-name {
  margin-top: 0.3rem;
  font-size: 1.05rem;
  color: var(--v4a4-text);
  line-height: 1.2;
  height: 2.4rem;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

/* ===== Cards ===== */
.v4a4-card {
  background: var(--v4a4-card);
  border: 1px solid var(--v4a4-border);
  border-radius: var(--v4a4-radius);
  padding: 1.2rem;
  margin-bottom: 1rem;
}

.v4a4-card h3 {
  font-size: 1.5rem;
  margin-bottom: 0.6rem;
  color: var(--v4a4-primary);
}

.v4a4-card p {
  font-size: 1.3rem;
  color: #d6d6d6;
  margin-bottom: 0.6rem;
}

.v4a4-promo-link {
  color: var(--v4a4-primary);
  font-weight: 700;
  cursor: pointer;
}

.v4a4-promo-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: linear-gradient(90deg, var(--v4a4-primary), #c98ad8);
  color: #1a0a1a;
  font-weight: 800;
  padding: 0.8rem 1.4rem;
  border-radius: 24px;
  border: none;
  cursor: pointer;
  font-size: 1.4rem;
  margin: 0.4rem 0;
}

.v4a4-promo-btn:active {
  transform: scale(0.95);
}

/* ===== Features list ===== */
.v4a4-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.6rem;
}

.v4a4-feature {
  background: var(--v4a4-card);
  border: 1px solid var(--v4a4-border);
  border-radius: 10px;
  padding: 0.8rem;
  text-align: center;
}

.v4a4-feature .v4a4-feature-icon {
  font-size: 1.8rem;
  color: var(--v4a4-primary);
}

.v4a4-feature p {
  font-size: 1.15rem;
  margin-top: 0.3rem;
}

/* ===== Testimonials ===== */
.v4a4-testimonial {
  background: var(--v4a4-card);
  border-left: 3px solid var(--v4a4-primary);
  border-radius: 8px;
  padding: 0.8rem 1rem;
  margin-bottom: 0.6rem;
}

.v4a4-testimonial .v4a4-stars {
  color: var(--v4a4-gold);
  font-size: 1.2rem;
}

.v4a4-testimonial p {
  font-size: 1.25rem;
  margin: 0.3rem 0;
}

/* ===== Payment row ===== */
.v4a4-payments {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.v4a4-pay {
  background: var(--v4a4-card);
  border: 1px solid var(--v4a4-border);
  border-radius: 8px;
  padding: 0.5rem 0.8rem;
  font-size: 1.2rem;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

/* ===== Winners ===== */
.v4a4-winner {
  display: flex;
  justify-content: space-between;
  background: var(--v4a4-card);
  border: 1px solid var(--v4a4-border);
  border-radius: 8px;
  padding: 0.6rem 0.8rem;
  margin-bottom: 0.4rem;
  font-size: 1.2rem;
}

.v4a4-winner b {
  color: var(--v4a4-gold);
}

/* ===== Footer ===== */
.v4a4-footer {
  margin-top: 2rem;
  padding: 1.6rem 0;
  border-top: 1px solid var(--v4a4-border);
  background: #0d0d0d;
}

.v4a4-footer p {
  font-size: 1.2rem;
  color: #c0c0c0;
  margin-bottom: 0.6rem;
}

.v4a4-footer-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.4rem 0.8rem;
  margin: 0.8rem 0;
}

.v4a4-footer-links a {
  font-size: 1.2rem;
  color: #c8c8c8;
}

.v4a4-footer-promos {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.8rem 0;
}

.v4a4-footer-promos button {
  background: var(--v4a4-card);
  border: 1px solid var(--v4a4-primary);
  color: var(--v4a4-primary);
  border-radius: 16px;
  padding: 0.4rem 0.8rem;
  font-size: 1.15rem;
  cursor: pointer;
}

.v4a4-footer-copy {
  font-size: 1.1rem;
  color: #888;
  text-align: center;
  margin-top: 0.8rem;
}

/* ===== Bottom navigation ===== */
.v4a4-bottomnav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--v4a4-bottomnav-h);
  background: #121212;
  border-top: 1px solid var(--v4a4-border);
  display: flex;
  justify-content: space-around;
  align-items: center;
}

.v4a4-bottomnav-btn {
  flex: 1;
  min-width: 60px;
  min-height: 60px;
  background: transparent;
  border: none;
  color: var(--v4a4-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  cursor: pointer;
  font-size: 1rem;
  transition: color 0.15s ease, transform 0.15s ease;
}

.v4a4-bottomnav-btn .v4a4-bottomnav-icon {
  font-size: 22px;
  line-height: 1;
}

.v4a4-bottomnav-btn .v4a4-bottomnav-label {
  font-size: 10px;
}

.v4a4-bottomnav-btn:active {
  transform: scale(0.9);
  color: var(--v4a4-primary);
}

.v4a4-bottomnav-active {
  color: var(--v4a4-primary);
}

.v4a4-bottomnav-active .v4a4-bottomnav-icon {
  color: var(--v4a4-primary);
}

/* ===== Utility ===== */
.v4a4-text-link {
  color: var(--v4a4-primary);
  font-weight: 600;
}

.v4a4-muted {
  color: var(--v4a4-muted);
}

/* ===== Desktop: hide bottom nav, widen layout ===== */
@media (min-width: 769px) {
  .v4a4-bottomnav {
    display: none;
  }
  .v4a4-container,
  .v4a4-wrapper,
  .v4a4-header-inner,
  .v4a4-carousel,
  .v4a4-nav-list {
    max-width: 720px;
  }
  .v4a4-grid {
    grid-template-columns: repeat(6, 1fr);
  }
  .v4a4-main {
    padding-bottom: 30px;
  }
}

@media (max-width: 768px) {
  .v4a4-main {
    padding-bottom: calc(var(--v4a4-bottomnav-h) + 20px);
  }
}
