/* 32win32 core styles - prefix v16c- */
:root {
  --v16c-primary: #FFA500;
  --v16c-primary-2: #FF9800;
  --v16c-accent: #FF5722;
  --v16c-light: #FAFAFA;
  --v16c-bg: #1B263B;
  --v16c-bg-2: #15203a;
  --v16c-bg-3: #0f1729;
  --v16c-text: #FAFAFA;
  --v16c-text-muted: #b8c2d6;
  --v16c-gold: #FFD27A;
  --v16c-radius: 14px;
  --v16c-shadow: 0 6px 22px rgba(0,0,0,0.35);
  --v16c-header-h: 60px;
  --v16c-nav-h: 62px;
}

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

html { font-size: 62.5%; scroll-behavior: smooth; }

body {
  font-family: "Segoe UI", "Inter", system-ui, -apple-system, sans-serif;
  background: var(--v16c-bg);
  color: var(--v16c-text);
  line-height: 1.5rem;
  font-size: 1.4rem;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}

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

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

/* ===== Header ===== */
.v16c-header {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--v16c-header-h);
  background: linear-gradient(90deg, var(--v16c-bg-3), var(--v16c-bg-2));
  border-bottom: 2px solid var(--v16c-primary);
  z-index: 1000;
  display: flex; align-items: center;
}
.v16c-header-inner {
  width: 100%; max-width: 430px; margin: 0 auto;
  padding: 0 1rem;
  display: flex; align-items: center; justify-content: space-between; gap: 0.8rem;
}
.v16c-logo {
  display: flex; align-items: center; gap: 0.6rem;
  color: var(--v16c-primary); font-weight: 800; font-size: 1.7rem;
}
.v16c-logo img { width: 28px; height: 28px; border-radius: 6px; }
.v16c-logo span { color: var(--v16c-light); }
.v16c-logo b { color: var(--v16c-primary); }

.v16c-header-actions { display: flex; align-items: center; gap: 0.5rem; }
.v16c-btn {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.7rem 1.2rem; border-radius: 30px;
  font-size: 1.3rem; font-weight: 700; border: none; cursor: pointer;
  transition: transform .15s ease, filter .15s ease;
  min-height: 36px;
}
.v16c-btn:active { transform: scale(0.94); }
.v16c-btn-register {
  background: linear-gradient(90deg, var(--v16c-primary), var(--v16c-accent));
  color: #1B263B;
}
.v16c-btn-login {
  background: transparent; color: var(--v16c-light);
  border: 1.5px solid var(--v16c-primary);
}
.v16c-menu-btn {
  background: transparent; border: none; color: var(--v16c-primary);
  font-size: 2.2rem; cursor: pointer; padding: 0.4rem; line-height: 1;
}

/* ===== Mobile expandable menu ===== */
.v16c-mobile-menu {
  position: fixed; top: var(--v16c-header-h); left: 0; right: 0;
  background: var(--v16c-bg-2);
  border-bottom: 2px solid var(--v16c-primary);
  max-height: 0; overflow: hidden;
  transition: max-height .3s ease;
  z-index: 9999;
}
.v16c-mobile-menu.v16c-menu-open { max-height: 480px; }
.v16c-mobile-menu ul { list-style: none; padding: 0.8rem 1.2rem; }
.v16c-mobile-menu li { border-bottom: 1px solid rgba(255,165,0,0.12); }
.v16c-mobile-menu li:last-child { border-bottom: none; }
.v16c-mobile-menu a {
  display: block; padding: 1.2rem 0.4rem;
  color: var(--v16c-light); font-size: 1.4rem; font-weight: 600;
}
.v16c-mobile-menu a:active { color: var(--v16c-primary); }

/* ===== Main ===== */
.v16c-main { padding-top: calc(var(--v16c-header-h) + 1rem); padding-bottom: 80px; }

/* ===== Carousel ===== */
.v16c-carousel {
  position: relative; border-radius: var(--v16c-radius); overflow: hidden;
  box-shadow: var(--v16c-shadow); margin-bottom: 1.6rem;
}
.v16c-slides { position: relative; }
.v16c-slide {
  display: none; position: relative; cursor: pointer;
}
.v16c-slide.v16c-slide-active { display: block; }
.v16c-slide img { width: 100%; height: 190px; object-fit: cover; }
.v16c-slide-caption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 1rem 1.2rem;
  background: linear-gradient(transparent, rgba(15,23,41,0.92));
  color: var(--v16c-light); font-weight: 700; font-size: 1.5rem;
}
.v16c-dots {
  position: absolute; bottom: 8px; left: 0; right: 0;
  display: flex; justify-content: center; gap: 6px;
}
.v16c-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(250,250,250,0.5); cursor: pointer;
}
.v16c-dot.v16c-dot-active { background: var(--v16c-primary); }

/* ===== Section ===== */
.v16c-section { margin-bottom: 2rem; }
.v16c-section-title {
  font-size: 1.7rem; font-weight: 800; color: var(--v16c-light);
  margin-bottom: 1rem; padding-left: 0.8rem;
  border-left: 4px solid var(--v16c-primary);
}
.v16c-section-title small { color: var(--v16c-primary); font-size: 1.2rem; font-weight: 600; }

/* ===== H1 ===== */
.v16c-h1 {
  font-size: 2.1rem; font-weight: 900; color: var(--v16c-light);
  text-align: center; margin: 1.2rem 0;
  line-height: 1.4;
}
.v16c-h1 b { color: var(--v16c-primary); }

/* ===== Filter buttons ===== */
.v16c-filters {
  display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1rem;
}
.v16c-filter-btn {
  padding: 0.6rem 1.1rem; border-radius: 20px;
  background: var(--v16c-bg-3); color: var(--v16c-text-muted);
  border: 1px solid rgba(255,165,0,0.25);
  font-size: 1.2rem; font-weight: 700; cursor: pointer;
}
.v16c-filter-btn.v16c-filter-active {
  background: linear-gradient(90deg, var(--v16c-primary), var(--v16c-accent));
  color: #1B263B; border-color: transparent;
}

/* ===== Game grid ===== */
.v16c-game-group { margin-bottom: 1.8rem; }
.v16c-game-group-title {
  font-size: 1.4rem; font-weight: 800; color: var(--v16c-primary);
  text-transform: uppercase; letter-spacing: 0.5px;
  margin: 1rem 0 0.8rem;
}
.v16c-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.7rem;
}
.v16c-card {
  background: var(--v16c-bg-2); border-radius: 10px; overflow: hidden;
  border: 1px solid rgba(255,165,0,0.15);
  cursor: pointer; transition: transform .15s ease, border-color .15s ease;
}
.v16c-card:active { transform: scale(0.96); border-color: var(--v16c-primary); }
.v16c-card img { width: 100%; height: 86px; object-fit: cover; }
.v16c-card-name {
  padding: 0.5rem 0.4rem; font-size: 1.05rem; color: var(--v16c-light);
  text-align: center; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* ===== Promo / info blocks ===== */
.v16c-info {
  background: var(--v16c-bg-2); border-radius: var(--v16c-radius);
  padding: 1.2rem; margin-bottom: 1.2rem; border: 1px solid rgba(255,165,0,0.15);
}
.v16c-info h2 { color: var(--v16c-primary); font-size: 1.5rem; margin-bottom: 0.6rem; }
.v16c-info h3 { color: var(--v16c-gold); font-size: 1.3rem; margin: 0.8rem 0 0.4rem; }
.v16c-info p { color: var(--v16c-text-muted); font-size: 1.25rem; line-height: 1.6; margin-bottom: 0.6rem; }
.v16c-info ul { padding-left: 1.4rem; color: var(--v16c-text-muted); }
.v16c-info li { font-size: 1.2rem; line-height: 1.6; margin-bottom: 0.3rem; }

.v16c-cta {
  display: inline-block; margin-top: 0.8rem;
  padding: 0.8rem 1.6rem; border-radius: 30px;
  background: linear-gradient(90deg, var(--v16c-primary), var(--v16c-accent));
  color: #1B263B; font-weight: 800; font-size: 1.3rem;
}
.v16c-text-link { color: var(--v16c-primary); font-weight: 700; text-decoration: underline; }

/* ===== Features strip ===== */
.v16c-features { display: grid; grid-template-columns: repeat(2,1fr); gap: 0.7rem; }
.v16c-feature {
  background: var(--v16c-bg-2); border-radius: 10px; padding: 1rem;
  text-align: center; border: 1px solid rgba(255,165,0,0.15);
}
.v16c-feature i { color: var(--v16c-primary); font-size: 2.2rem; }
.v16c-feature h3 { color: var(--v16c-light); font-size: 1.2rem; margin: 0.4rem 0; }
.v16c-feature p { color: var(--v16c-text-muted); font-size: 1.05rem; line-height: 1.4; }

/* ===== Testimonials ===== */
.v16c-testimonials { display: grid; gap: 0.8rem; }
.v16c-testimonial {
  background: var(--v16c-bg-2); border-radius: 10px; padding: 1rem;
  border-left: 3px solid var(--v16c-primary);
}
.v16c-testimonial p { color: var(--v16c-text-muted); font-size: 1.2rem; font-style: italic; }
.v16c-testimonial cite { display: block; margin-top: 0.4rem; color: var(--v16c-gold); font-size: 1.1rem; }

/* ===== Payment ===== */
.v16c-payments { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.v16c-payment {
  background: var(--v16c-light); color: var(--v16c-bg);
  padding: 0.6rem 1rem; border-radius: 8px; font-weight: 700; font-size: 1.15rem;
}

/* ===== Winners ===== */
.v16c-winners { display: grid; gap: 0.5rem; }
.v16c-winner {
  display: flex; justify-content: space-between; align-items: center;
  background: var(--v16c-bg-2); border-radius: 8px; padding: 0.7rem 1rem;
  font-size: 1.2rem;
}
.v16c-winner span:first-child { color: var(--v16c-light); font-weight: 700; }
.v16c-winner span:last-child { color: var(--v16c-gold); font-weight: 800; }

/* ===== Footer ===== */
.v16c-footer {
  background: var(--v16c-bg-3); border-top: 2px solid var(--v16c-primary);
  padding: 1.6rem 1.2rem 2rem; margin-top: 1rem;
}
.v16c-footer-brand { color: var(--v16c-light); font-size: 1.3rem; font-weight: 700; margin-bottom: 0.6rem; }
.v16c-footer p { color: var(--v16c-text-muted); font-size: 1.15rem; line-height: 1.6; margin-bottom: 1rem; }
.v16c-footer-links {
  display: flex; flex-wrap: wrap; gap: 0.6rem 1rem; margin-bottom: 1rem;
}
.v16c-footer-links a { color: var(--v16c-primary); font-size: 1.15rem; font-weight: 600; }
.v16c-footer-promo {
  display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1rem;
}
.v16c-footer-promo button {
  flex: 1 1 auto; min-width: 120px;
  padding: 0.7rem 0.8rem; border-radius: 20px; border: none;
  background: linear-gradient(90deg, var(--v16c-primary), var(--v16c-accent));
  color: #1B263B; font-weight: 800; font-size: 1.15rem; cursor: pointer;
}
.v16c-footer-copy { color: var(--v16c-text-muted); font-size: 1.05rem; text-align: center; border-top: 1px solid rgba(255,165,0,0.15); padding-top: 0.8rem; }

/* ===== Bottom nav ===== */
.v16c-bottomnav {
  position: fixed; bottom: 0; left: 0; right: 0;
  height: var(--v16c-nav-h);
  background: var(--v16c-bg-3);
  border-top: 2px solid var(--v16c-primary);
  display: flex; justify-content: space-around; align-items: center;
  z-index: 1000;
}
.v16c-bottomnav a, .v16c-bottomnav button {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-width: 60px; min-height: 60px;
  background: transparent; border: none; color: var(--v16c-text-muted);
  font-size: 1rem; font-weight: 600; cursor: pointer; gap: 2px;
  transition: color .15s ease, transform .15s ease;
}
.v16c-bottomnav a:active, .v16c-bottomnav button:active { transform: scale(0.9); }
.v16c-bottomnav i, .v16c-bottomnav .material-icons-outlined, .v16c-bottomnav .ion-icon {
  font-size: 24px;
}
.v16c-bottomnav .v16c-nav-active { color: var(--v16c-primary); }
.v16c-bottomnav .v16c-nav-active i { color: var(--v16c-primary); }

/* ===== Back to top ===== */
.v16c-top-btn {
  position: fixed; right: 14px; bottom: calc(var(--v16c-nav-h) + 12px);
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--v16c-primary); color: #1B263B;
  border: none; font-size: 2rem; font-weight: 900; cursor: pointer;
  opacity: 0; pointer-events: none; transition: opacity .25s ease;
  z-index: 999;
}
.v16c-top-btn.v16c-top-show { opacity: 1; pointer-events: auto; }

/* ===== Desktop ===== */
@media (min-width: 769px) {
  body { background: var(--v16c-bg-3); }
  .v16c-container, .v16c-header-inner, .v16c-footer { max-width: 960px; }
  .v16c-bottomnav { display: none; }
  .v16c-main { padding-bottom: 2rem; }
  .v16c-grid { grid-template-columns: repeat(6, 1fr); }
  .v16c-features { grid-template-columns: repeat(4,1fr); }
}

@media (max-width: 768px) {
  .v16c-main { padding-bottom: 80px; }
}
