/* ============================================================
   cm888.cyou - Core Stylesheet (Basefiles)
   Class prefix : vc2a-
   Palette     : #FFF8DC (cream/light) | #0D1117 (dark bg)
   Mobile-first, max-width 430px. All comments in English.
   ============================================================ */

:root {
  --vc2a-bg: #0D1117;
  --vc2a-bg-soft: #161B22;
  --vc2a-bg-card: #1C2330;
  --vc2a-text: #FFF8DC;
  --vc2a-text-dim: #C9C49A;
  --vc2a-primary: #F5C542;
  --vc2a-primary-dark: #C99A1E;
  --vc2a-accent: #E04A4A;
  --vc2a-accent-soft: #F26B6B;
  --vc2a-green: #2EC27A;
  --vc2a-border: rgba(255, 248, 220, 0.12);
  --vc2a-shadow: 0 6px 20px rgba(0, 0, 0, 0.45);
  --vc2a-radius: 12px;
  --vc2a-radius-sm: 8px;
  --vc2a-header-h: 56px;
  --vc2a-bottom-h: 60px;
  --vc2a-maxw: 430px;
}

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

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

body {
  font-family: 'Segoe UI', 'Helvetica Neue', Arial, 'Noto Sans', sans-serif;
  background: var(--vc2a-bg);
  color: var(--vc2a-text);
  font-size: 1.4rem;
  line-height: 1.5;
  min-height: 100vh;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: var(--vc2a-primary); text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* ------------------------------------------------------------
   Layout containers
   ------------------------------------------------------------ */
.vc2a-wrapper {
  width: 100%;
  max-width: var(--vc2a-maxw);
  margin: 0 auto;
  position: relative;
  min-height: 100vh;
}

.vc2a-container {
  width: 100%;
  padding: 0 1.2rem;
}

main { padding-bottom: 80px; }

/* ------------------------------------------------------------
   Header (fixed top)
   ------------------------------------------------------------ */
.vc2a-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--vc2a-header-h);
  background: rgba(13, 17, 23, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--vc2a-border);
  z-index: 1000;
  display: flex;
  align-items: center;
}

.vc2a-header-inner {
  width: 100%;
  max-width: var(--vc2a-maxw);
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
}

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

.vc2a-logo img {
  width: 30px;
  height: 30px;
  border-radius: 6px;
  flex-shrink: 0;
}

.vc2a-logo-text {
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--vc2a-primary);
  letter-spacing: 0.5px;
  white-space: nowrap;
}

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

.vc2a-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.6rem 1.1rem;
  border-radius: var(--vc2a-radius-sm);
  font-size: 1.25rem;
  font-weight: 700;
  min-height: 36px;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}

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

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

.vc2a-btn-register {
  background: linear-gradient(135deg, var(--vc2a-primary), var(--vc2a-primary-dark));
  color: #0D1117;
  box-shadow: 0 3px 10px rgba(245, 197, 66, 0.35);
}

.vc2a-menu-toggle {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--vc2a-text);
  font-size: 1.8rem;
  border-radius: 6px;
}

/* ------------------------------------------------------------
   Mobile slide menu
   ------------------------------------------------------------ */
.vc2a-menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease;
  z-index: 9998;
}

.vc2a-menu-overlay.vc2a-active {
  opacity: 1;
  visibility: visible;
}

.vc2a-mobile-menu {
  position: fixed;
  top: 0; right: -80%;
  width: 80%;
  max-width: 320px;
  height: 100vh;
  background: var(--vc2a-bg-soft);
  z-index: 9999;
  transition: right 0.28s ease;
  padding: 1.5rem 1.2rem;
  overflow-y: auto;
  border-left: 1px solid var(--vc2a-border);
}

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

.vc2a-menu-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--vc2a-border);
}

.vc2a-menu-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--vc2a-primary);
}

.vc2a-menu-close {
  font-size: 2rem;
  color: var(--vc2a-text-dim);
  width: 36px;
  height: 36px;
}

.vc2a-menu-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.vc2a-menu-list a {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1rem 0.9rem;
  border-radius: var(--vc2a-radius-sm);
  color: var(--vc2a-text);
  font-size: 1.35rem;
  font-weight: 600;
  background: var(--vc2a-bg-card);
  border: 1px solid var(--vc2a-border);
}

.vc2a-menu-list a:active { background: var(--vc2a-bg); }

.vc2a-menu-list i { color: var(--vc2a-primary); font-size: 1.5rem; width: 22px; text-align: center; }

/* ------------------------------------------------------------
   Hero carousel
   ------------------------------------------------------------ */
.vc2a-carousel {
  position: relative;
  margin-top: var(--vc2a-header-h);
  width: 100%;
  overflow: hidden;
  border-radius: 0 0 16px 16px;
}

.vc2a-carousel-track {
  position: relative;
  width: 100%;
  height: 200px;
}

.vc2a-carousel-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.6s ease;
  cursor: pointer;
}

.vc2a-carousel-slide.vc2a-slide-active { opacity: 1; }

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

.vc2a-carousel-slide::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(13,17,23,0) 40%, rgba(13,17,23,0.55) 100%);
}

.vc2a-carousel-caption {
  position: absolute;
  left: 1.2rem;
  bottom: 1.2rem;
  z-index: 2;
  color: var(--vc2a-text);
  font-size: 1.4rem;
  font-weight: 700;
  text-shadow: 0 2px 6px rgba(0,0,0,0.6);
}

.vc2a-carousel-dots {
  position: absolute;
  bottom: 0.6rem;
  right: 1rem;
  display: flex;
  gap: 0.4rem;
  z-index: 3;
}

.vc2a-carousel-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 248, 220, 0.4);
  cursor: pointer;
}

.vc2a-carousel-dot.vc2a-dot-active { background: var(--vc2a-primary); width: 18px; border-radius: 4px; }

/* ------------------------------------------------------------
   Section titles
   ------------------------------------------------------------ */
.vc2a-section {
  padding: 1.6rem 1.2rem;
}

.vc2a-section-title {
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--vc2a-primary);
  margin-bottom: 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.vc2a-section-title i { font-size: 1.6rem; }

.vc2a-section-sub {
  font-size: 1.25rem;
  color: var(--vc2a-text-dim);
  margin-bottom: 1rem;
}

/* ------------------------------------------------------------
   Game grid (compact icon layout)
   ------------------------------------------------------------ */
.vc2a-game-cat {
  margin-bottom: 1.4rem;
}

.vc2a-cat-label {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--vc2a-text);
  margin-bottom: 0.7rem;
  padding-left: 0.6rem;
  border-left: 3px solid var(--vc2a-primary);
}

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

.vc2a-game-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  cursor: pointer;
  transition: transform 0.15s ease;
}

.vc2a-game-card:active { transform: scale(0.94); }

.vc2a-game-thumb {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: var(--vc2a-radius-sm);
  overflow: hidden;
  background: var(--vc2a-bg-card);
  border: 1px solid var(--vc2a-border);
  margin-bottom: 0.4rem;
}

.vc2a-game-thumb img { width: 100%; height: 100%; object-fit: cover; }

.vc2a-game-name {
  font-size: 1.02rem;
  color: var(--vc2a-text-dim);
  line-height: 1.25;
  height: 2.5em;
  overflow: hidden;
  word-break: break-word;
}

/* ------------------------------------------------------------
   Promo CTA strip
   ------------------------------------------------------------ */
.vc2a-cta {
  background: linear-gradient(135deg, var(--vc2a-bg-card), var(--vc2a-bg-soft));
  border: 1px solid var(--vc2a-border);
  border-radius: var(--vc2a-radius);
  padding: 1.2rem;
  margin: 1.2rem 0;
  text-align: center;
}

.vc2a-cta-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--vc2a-primary);
  margin-bottom: 0.5rem;
}

.vc2a-cta-text {
  font-size: 1.2rem;
  color: var(--vc2a-text-dim);
  margin-bottom: 1rem;
}

.vc2a-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.8rem;
  border-radius: 30px;
  background: linear-gradient(135deg, var(--vc2a-primary), var(--vc2a-primary-dark));
  color: #0D1117;
  font-weight: 800;
  font-size: 1.3rem;
  box-shadow: 0 4px 14px rgba(245, 197, 66, 0.4);
}

/* ------------------------------------------------------------
   Info / feature / faq cards
   ------------------------------------------------------------ */
.vc2a-card {
  background: var(--vc2a-bg-card);
  border: 1px solid var(--vc2a-border);
  border-radius: var(--vc2a-radius);
  padding: 1.2rem;
  margin-bottom: 1rem;
}

.vc2a-card-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--vc2a-primary);
  margin-bottom: 0.6rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.vc2a-card p {
  font-size: 1.2rem;
  color: var(--vc2a-text-dim);
  margin-bottom: 0.6rem;
}

.vc2a-card p:last-child { margin-bottom: 0; }

.vc2a-card-link {
  color: var(--vc2a-primary);
  font-weight: 700;
  text-decoration: underline;
}

.vc2a-list {
  list-style: none;
  padding: 0;
  margin: 0.4rem 0;
}

.vc2a-list li {
  position: relative;
  padding-left: 1.6rem;
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
  color: var(--vc2a-text-dim);
}

.vc2a-list li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--vc2a-primary);
}

/* RTP compact table */
.vc2a-rtp {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.4rem 1rem;
  font-size: 1.15rem;
}

.vc2a-rtp .vc2a-rtp-name { color: var(--vc2a-text); }
.vc2a-rtp .vc2a-rtp-val { color: var(--vc2a-green); font-weight: 700; text-align: right; }

/* Testimonials */
.vc2a-testi {
  background: var(--vc2a-bg-card);
  border-left: 3px solid var(--vc2a-primary);
  border-radius: var(--vc2a-radius-sm);
  padding: 0.9rem 1rem;
  margin-bottom: 0.7rem;
}

.vc2a-testi-name { font-size: 1.25rem; font-weight: 700; color: var(--vc2a-primary); margin-bottom: 0.3rem; }
.vc2a-testi-text { font-size: 1.15rem; color: var(--vc2a-text-dim); }
.vc2a-testi-stars { color: var(--vc2a-primary); font-size: 1.1rem; margin-bottom: 0.3rem; }

/* Winners */
.vc2a-winner-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 0.8rem;
  border-bottom: 1px solid var(--vc2a-border);
  font-size: 1.15rem;
}
.vc2a-winner-row:last-child { border-bottom: none; }
.vc2a-winner-name { color: var(--vc2a-text); font-weight: 600; }
.vc2a-winner-amount { color: var(--vc2a-green); font-weight: 800; }

/* Payment chips */
.vc2a-pay {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.vc2a-pay-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.9rem;
  background: var(--vc2a-bg-card);
  border: 1px solid var(--vc2a-border);
  border-radius: 30px;
  font-size: 1.1rem;
  color: var(--vc2a-text-dim);
}
.vc2a-pay-chip i { color: var(--vc2a-primary); }

/* App download CTA */
.vc2a-app-cta {
  background: linear-gradient(135deg, #1C2330, #0D1117);
  border: 1px solid var(--vc2a-border);
  border-radius: var(--vc2a-radius);
  padding: 1.3rem;
  text-align: center;
}
.vc2a-app-cta img { width: 90px; margin: 0 auto 0.8rem; }
.vc2a-app-cta h3 { font-size: 1.4rem; color: var(--vc2a-primary); margin-bottom: 0.4rem; }
.vc2a-app-cta p { font-size: 1.15rem; color: var(--vc2a-text-dim); margin-bottom: 0.9rem; }

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

.vc2a-footer-brand {
  font-size: 1.2rem;
  color: var(--vc2a-text-dim);
  margin-bottom: 1rem;
  line-height: 1.5;
}

.vc2a-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.vc2a-footer-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.45rem 0.85rem;
  background: var(--vc2a-bg-card);
  border: 1px solid var(--vc2a-border);
  border-radius: 20px;
  font-size: 1.1rem;
  color: var(--vc2a-text);
}

.vc2a-footer-links a:active { background: var(--vc2a-primary); color: #0D1117; }

.vc2a-footer-copy {
  font-size: 1.05rem;
  color: var(--vc2a-text-dim);
  text-align: center;
  padding-top: 0.8rem;
  border-top: 1px solid var(--vc2a-border);
}

/* ------------------------------------------------------------
   Mobile bottom navigation (fixed, 5 buttons)
   ------------------------------------------------------------ */
.vc2a-bottom-nav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: var(--vc2a-bottom-h);
  background: rgba(13, 17, 23, 0.98);
  border-top: 1px solid var(--vc2a-border);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
  box-shadow: 0 -4px 14px rgba(0, 0, 0, 0.4);
}

.vc2a-bottom-nav-btn {
  flex: 1;
  min-width: 60px;
  min-height: 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  color: var(--vc2a-text-dim);
  font-size: 1rem;
  transition: color 0.15s ease, transform 0.15s ease;
  position: relative;
}

.vc2a-bottom-nav-btn i,
.vc2a-bottom-nav-btn .material-icons-outlined,
.vc2a-bottom-nav-btn ion-icon { font-size: 22px; }

.vc2a-bottom-nav-btn:active { transform: scale(0.9); }

.vc2a-bottom-nav-btn.vc2a-nav-current {
  color: var(--vc2a-primary);
}

.vc2a-bottom-nav-btn.vc2a-nav-current::before {
  content: '';
  position: absolute;
  top: 0;
  width: 26px;
  height: 3px;
  border-radius: 0 0 4px 4px;
  background: var(--vc2a-primary);
}

.vc2a-bottom-nav-btn.vc2a-nav-promo {
  color: var(--vc2a-accent-soft);
}

.vc2a-nav-badge {
  position: absolute;
  top: 6px;
  right: 18px;
  background: var(--vc2a-accent);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  border-radius: 10px;
  padding: 0 5px;
  min-width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ------------------------------------------------------------
   Desktop adjustments (>= 769px): hide bottom nav, center content
   ------------------------------------------------------------ */
@media (min-width: 769px) {
  .vc2a-bottom-nav { display: none; }
  main { padding-bottom: 2rem; }
  .vc2a-wrapper { box-shadow: var(--vc2a-shadow); }
  .vc2a-grid { grid-template-columns: repeat(6, 1fr); }
  .vc2a-carousel-track { height: 280px; }
}

/* ------------------------------------------------------------
   Small phone safety (<= 360px)
   ------------------------------------------------------------ */
@media (max-width: 360px) {
  .vc2a-grid { grid-template-columns: repeat(3, 1fr); }
  .vc2a-logo-text { font-size: 1.5rem; }
  .vc2a-btn { padding: 0.5rem 0.8rem; font-size: 1.15rem; }
}

/* Utility */
.vc2a-text-promo { color: var(--vc2a-primary); font-weight: 700; }
.vc2a-divider { height: 1px; background: var(--vc2a-border); margin: 1rem 0; border: none; }
.vc2a-sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
