/* d9d9-game.css - Mobile-first styles for d9d9 game (en-PH) */
/* Palette: #0E1621 deep navy bg + #9370DB purple accent. */
/* All custom classes use the vce2- prefix. */

:root {
  --vce2-bg: #0E1621;
  --vce2-bg-2: #131f2e;
  --vce2-bg-3: #1a2839;
  --vce2-card: #15212f;
  --vce2-purple: #9370DB;
  --vce2-purple-2: #b49cf0;
  --vce2-purple-dim: #6d51b0;
  --vce2-gold: #f5c451;
  --vce2-text: #eef2f8;
  --vce2-text-dim: #9fb0c3;
  --vce2-border: #243447;
  --vce2-success: #4fd287;
  --vce2-radius: 14px;
  --vce2-shadow: 0 10px 26px rgba(0,0,0,.38);
  --vce2-max: 430px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: 'Segoe UI', Roboto, 'Helvetica Neue', system-ui, sans-serif;
  background: radial-gradient(1200px 600px at 50% -10%, #1d2a3d 0%, var(--vce2-bg) 60%);
  color: var(--vce2-text);
  line-height: 1.6;
  font-size: 1.6rem;
  overflow-x: hidden;
}

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

.vce2-container {
  width: 100%;
  max-width: var(--vce2-max);
  margin: 0 auto;
  padding: 0 14px;
}

/* ==================== Header ==================== */
.vce2-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: linear-gradient(180deg, rgba(14,22,33,.96), rgba(14,22,33,.86));
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--vce2-border);
}
.vce2-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 58px;
}
.vce2-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 1.9rem;
  color: #fff;
  letter-spacing: .3px;
}
.vce2-logo-badge {
  width: 34px; height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--vce2-purple), var(--vce2-purple-dim));
  display: grid; place-items: center;
  color: #fff; font-weight: 800;
  box-shadow: 0 4px 12px rgba(147,112,219,.45);
}
.vce2-logo small { color: var(--vce2-purple-2); font-weight: 600; }
.vce2-header-actions { display: flex; align-items: center; gap: 8px; }
.vce2-hamburger {
  background: transparent; border: 1px solid var(--vce2-border);
  color: var(--vce2-text); width: 40px; height: 40px;
  border-radius: 10px; cursor: pointer; font-size: 1.6rem;
  display: grid; place-items: center;
}
.vce2-btn {
  border: none;
  border-radius: 999px;
  padding: 10px 18px;
  font-weight: 700;
  cursor: pointer;
  font-size: 1.35rem;
  transition: transform .15s ease, box-shadow .15s ease, opacity .15s ease;
}
.vce2-btn:active { transform: scale(.97); }
.vce2-btn-login {
  background: transparent;
  color: var(--vce2-text);
  border: 1px solid var(--vce2-purple);
}
.vce2-btn-register {
  background: linear-gradient(135deg, var(--vce2-purple), var(--vce2-purple-dim));
  color: #fff;
  box-shadow: 0 6px 16px rgba(147,112,219,.5);
}
.vce2-btn-ghost {
  background: rgba(147,112,219,.12);
  color: var(--vce2-purple-2);
  border: 1px solid rgba(147,112,219,.35);
}

/* ==================== Hero ==================== */
.vce2-hero {
  position: relative;
  margin-top: 12px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--vce2-shadow);
  border: 1px solid var(--vce2-border);
}
.vce2-hero-track { position: relative; min-height: 230px; }
.vce2-hero-slide {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  justify-content: flex-end;
  padding: 22px 20px;
  opacity: 0;
  transition: opacity .6s ease;
  background-size: cover; background-position: center;
}
.vce2-hero-slide::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(14,22,33,0) 30%, rgba(14,22,33,.92) 100%);
}
.vce2-hero-slide > * { position: relative; z-index: 1; }
.vce2-slide-active { opacity: 1; }
.vce2-hero-tag {
  display: inline-block; padding: 5px 12px;
  background: rgba(147,112,219,.85);
  border-radius: 999px; font-size: 1.15rem; font-weight: 700;
  margin-bottom: 8px; width: fit-content;
}
.vce2-hero-title { font-size: 2.6rem; font-weight: 900; color: #fff; margin: 0 0 6px; line-height: 1.2; }
.vce2-hero-sub { color: var(--vce2-text-dim); font-size: 1.4rem; margin: 0 0 14px; }
.vce2-hero-cta { display: flex; gap: 10px; flex-wrap: wrap; }
.vce2-hero-dots {
  position: absolute; bottom: 12px; right: 16px; z-index: 2;
  display: flex; gap: 6px;
}
.vce2-hero-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,255,255,.4);
}
.vce2-dot-active { background: var(--vce2-purple); width: 22px; border-radius: 4px; }

/* ==================== Section base ==================== */
.vce2-section { padding: 26px 0 8px; }
.vce2-section-title {
  font-size: 2.1rem; font-weight: 800; color: #fff;
  margin: 0 0 4px; display: flex; align-items: center; gap: 8px;
}
.vce2-section-title .vce2-bar {
  width: 5px; height: 22px; border-radius: 3px;
  background: linear-gradient(180deg, var(--vce2-purple), var(--vce2-purple-dim));
}
.vce2-section-desc { color: var(--vce2-text-dim); font-size: 1.4rem; margin: 0 0 16px; }

/* ==================== Quick stats ==================== */
.vce2-stats {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 10px; margin-top: 14px;
}
.vce2-stat {
  background: var(--vce2-card);
  border: 1px solid var(--vce2-border);
  border-radius: var(--vce2-radius);
  padding: 14px 8px; text-align: center;
}
.vce2-stat-num {
  display: block; font-size: 2.2rem; font-weight: 900;
  color: var(--vce2-purple-2);
}
.vce2-stat-label { font-size: 1.15rem; color: var(--vce2-text-dim); }

/* ==================== Filter tabs ==================== */
.vce2-filters {
  display: flex; gap: 8px; overflow-x: auto;
  padding: 6px 0 12px; margin: 0 -2px;
  scrollbar-width: none;
}
.vce2-filters::-webkit-scrollbar { display: none; }
.vce2-filter-tab {
  flex: 0 0 auto;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--vce2-card);
  border: 1px solid var(--vce2-border);
  color: var(--vce2-text-dim);
  font-size: 1.25rem; font-weight: 700;
  cursor: pointer; white-space: nowrap;
}
.vce2-tab-active {
  background: linear-gradient(135deg, var(--vce2-purple), var(--vce2-purple-dim));
  color: #fff; border-color: transparent;
}

/* ==================== Game grid ==================== */
.vce2-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.vce2-card {
  position: relative;
  background: var(--vce2-card);
  border: 1px solid var(--vce2-border);
  border-radius: var(--vce2-radius);
  overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  cursor: pointer;
}
.vce2-card:hover, .vce2-card:focus {
  transform: translateY(-2px);
  border-color: var(--vce2-purple);
  box-shadow: 0 10px 22px rgba(0,0,0,.4);
}
.vce2-card-img {
  aspect-ratio: 1 / 1;
  background: #0a131f center/cover no-repeat;
  position: relative;
}
.vce2-card-img::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 50%, rgba(0,0,0,.5));
}
.vce2-card-badge {
  position: absolute; top: 6px; left: 6px; z-index: 2;
  background: rgba(245,196,81,.92); color: #1a1300;
  font-size: 1rem; font-weight: 800;
  padding: 3px 8px; border-radius: 6px;
}
.vce2-card-play {
  position: absolute; inset: 0; z-index: 3;
  display: grid; place-items: center;
  opacity: 0; transition: opacity .18s ease;
  background: rgba(14,22,33,.55);
}
.vce2-card:hover .vce2-card-play { opacity: 1; }
.vce2-card-play span {
  background: var(--vce2-purple);
  color: #fff; font-weight: 800; font-size: 1.2rem;
  padding: 7px 14px; border-radius: 999px;
}
.vce2-card-title {
  font-size: 1.2rem; font-weight: 700; color: var(--vce2-text);
  padding: 7px 8px 9px; text-align: center;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* ==================== Feature blocks ==================== */
.vce2-features {
  display: grid; gap: 12px; margin-top: 12px;
}
.vce2-feature {
  display: flex; gap: 14px;
  background: var(--vce2-card);
  border: 1px solid var(--vce2-border);
  border-left: 4px solid var(--vce2-purple);
  border-radius: var(--vce2-radius);
  padding: 14px;
}
.vce2-feature-ic {
  width: 46px; height: 46px; flex: 0 0 46px;
  border-radius: 12px;
  background: rgba(147,112,219,.16);
  display: grid; place-items: center;
  color: var(--vce2-purple-2); font-size: 1.6rem;
}
.vce2-feature h3 { margin: 0 0 4px; font-size: 1.55rem; color: #fff; }
.vce2-feature p { margin: 0; color: var(--vce2-text-dim); font-size: 1.3rem; }

/* ==================== Promo banner ==================== */
.vce2-promo {
  background: linear-gradient(135deg, #2a1d52, #4a2f8a 60%, var(--vce2-purple-dim));
  border-radius: 20px;
  padding: 22px 18px;
  margin: 22px 0 4px;
  border: 1px solid rgba(255,255,255,.08);
  position: relative; overflow: hidden;
}
.vce2-promo::after {
  content: ''; position: absolute; right: -40px; top: -40px;
  width: 160px; height: 160px; border-radius: 50%;
  background: rgba(255,255,255,.07);
}
.vce2-promo h3 { margin: 0 0 6px; font-size: 2rem; color: #fff; }
.vce2-promo p { margin: 0 0 14px; color: rgba(255,255,255,.85); font-size: 1.35rem; }
.vce2-promo-cta {
  display: inline-block; background: #fff; color: #4a2f8a;
  padding: 10px 22px; border-radius: 999px; font-weight: 800; font-size: 1.3rem;
}

/* ==================== SEO long text ==================== */
.vce2-prose {
  background: var(--vce2-card);
  border: 1px solid var(--vce2-border);
  border-radius: var(--vce2-radius);
  padding: 18px 16px;
}
.vce2-prose h2 { font-size: 1.9rem; color: #fff; margin: 14px 0 6px; }
.vce2-prose h2:first-child { margin-top: 0; }
.vce2-prose h3 { font-size: 1.6rem; color: var(--vce2-purple-2); margin: 12px 0 4px; }
.vce2-prose p { color: var(--vce2-text-dim); font-size: 1.35rem; margin: 0 0 10px; }
.vce2-prose ul { margin: 0 0 10px; padding-left: 20px; color: var(--vce2-text-dim); }
.vce2-prose li { margin-bottom: 4px; }

/* ==================== FAQ ==================== */
.vce2-faq-list { display: grid; gap: 10px; }
.vce2-faq-item {
  background: var(--vce2-card);
  border: 1px solid var(--vce2-border);
  border-radius: var(--vce2-radius);
  overflow: hidden;
}
.vce2-faq-q {
  width: 100%; text-align: left;
  background: transparent; border: none; cursor: pointer;
  padding: 14px 16px; color: #fff; font-weight: 700; font-size: 1.4rem;
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
}
.vce2-faq-q .vce2-ic { transition: transform .2s; color: var(--vce2-purple-2); }
.vce2-faq-item.vce2-faq-open .vce2-faq-q .vce2-ic { transform: rotate(45deg); }
.vce2-faq-a {
  max-height: 0; overflow: hidden;
  transition: max-height .3s ease;
  padding: 0 16px;
}
.vce2-faq-open .vce2-faq-a { max-height: 600px; padding: 0 16px 14px; }
.vce2-faq-a p { margin: 0; color: var(--vce2-text-dim); font-size: 1.3rem; }

/* ==================== Footer ==================== */
.vce2-footer {
  margin-top: 26px;
  background: #0a121c;
  border-top: 1px solid var(--vce2-border);
  padding: 26px 0 110px;
}
.vce2-footer h4 { color: #fff; font-size: 1.45rem; margin: 14px 0 8px; }
.vce2-footer ul { list-style: none; padding: 0; margin: 0; }
.vce2-footer li { margin-bottom: 6px; }
.vce2-footer a { color: var(--vce2-text-dim); font-size: 1.25rem; }
.vce2-footer a:hover { color: var(--vce2-purple-2); }
.vce2-footer-bottom {
  border-top: 1px solid var(--vce2-border);
  margin-top: 18px; padding-top: 14px;
  text-align: center; color: var(--vce2-text-dim); font-size: 1.15rem;
}

/* ==================== Bottom nav ==================== */
.vce2-bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(10,18,28,.97);
  border-top: 1px solid var(--vce2-border);
  display: flex; justify-content: space-around; align-items: stretch;
  height: 64px;
  backdrop-filter: blur(10px);
  max-width: var(--vce2-max);
  margin: 0 auto;
}
.vce2-nav-btn {
  flex: 1;
  background: transparent; border: none;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 3px;
  color: var(--vce2-text-dim);
  cursor: pointer;
  padding: 6px 2px;
  min-width: 60px; min-height: 60px;
  position: relative;
  transition: color .15s ease;
}
.vce2-nav-btn .vce2-nav-ic { font-size: 2.1rem; line-height: 1; }
.vce2-nav-btn .vce2-nav-tx { font-size: 1rem; font-weight: 700; }
.vce2-nav-btn.vce2-nav-active { color: var(--vce2-purple-2); }
.vce2-nav-btn.vce2-nav-active::before {
  content: ''; position: absolute; top: 0;
  width: 28px; height: 3px; border-radius: 0 0 4px 4px;
  background: var(--vce2-purple);
}
.vce2-nav-btn:active { color: var(--vce2-purple); }
.vce2-nav-btn:hover { color: var(--vce2-purple-2); }
.vce2-nav-btn-promo {
  color: #fff;
}
.vce2-nav-btn-promo .vce2-nav-ic {
  background: linear-gradient(135deg, var(--vce2-purple), var(--vce2-purple-dim));
  width: 46px; height: 32px; border-radius: 10px;
  display: grid; place-items: center;
  box-shadow: 0 4px 12px rgba(147,112,219,.5);
}

/* ==================== Mobile menu drawer ==================== */
.vce2-menu-backdrop {
  position: fixed; inset: 0; z-index: 9998;
  background: rgba(0,0,0,.55);
  opacity: 0; pointer-events: none;
  transition: opacity .25s ease;
}
.vce2-backdrop-on { opacity: 1; pointer-events: auto; }
.vce2-mobile-menu {
  position: fixed; top: 0; right: -280px; bottom: 0;
  width: 270px; z-index: 9999;
  background: #0c1622;
  border-left: 1px solid var(--vce2-border);
  padding: 22px 18px;
  transition: right .28s ease;
  overflow-y: auto;
}
.vce2-menu-open { right: 0; }
.vce2-menu-head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 16px; padding-bottom: 12px;
  border-bottom: 1px solid var(--vce2-border);
}
.vce2-menu-head h3 { margin: 0; font-size: 1.7rem; color: #fff; }
.vce2-menu-close {
  background: transparent; border: 1px solid var(--vce2-border);
  color: var(--vce2-text); width: 34px; height: 34px;
  border-radius: 8px; cursor: pointer; font-size: 1.5rem;
}
.vce2-menu-list { list-style: none; padding: 0; margin: 0; }
.vce2-menu-list li { margin-bottom: 4px; }
.vce2-menu-list a {
  display: block; color: var(--vce2-text);
  padding: 11px 12px; border-radius: 10px;
  font-size: 1.35rem; font-weight: 600;
}
.vce2-menu-list a:hover, .vce2-menu-list a:focus {
  background: rgba(147,112,219,.15);
  color: #fff;
}
.vce2-menu-cta { margin-top: 18px; display: grid; gap: 10px; }
.vce2-menu-cta .vce2-btn { width: 100%; text-align: center; }

/* ==================== Scroll-to-top ==================== */
.vce2-top-btn {
  position: fixed; right: 14px; bottom: 78px; z-index: 999;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--vce2-purple); color: #fff;
  border: none; cursor: pointer; font-size: 1.6rem;
  opacity: 0; pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
  box-shadow: 0 6px 16px rgba(0,0,0,.4);
}
.vce2-top-on { opacity: 1; pointer-events: auto; }

/* ==================== Desktop ==================== */
@media (min-width: 769px) {
  body { background: radial-gradient(1500px 800px at 50% -10%, #1d2a3d 0%, var(--vce2-bg) 60%); }
  .vce2-container { max-width: 960px; padding: 0 22px; }
  .vce2-bottom-nav { display: none; }
  .vce2-hamburger { display: none; }
  .vce2-footer { padding-bottom: 30px; }
  .vce2-grid { grid-template-columns: repeat(6, 1fr); gap: 14px; }
  .vce2-hero-track { min-height: 320px; }
  .vce2-hero-title { font-size: 3.4rem; }
  .vce2-stats { grid-template-columns: repeat(4, 1fr); }
  .vce2-features { grid-template-columns: repeat(2, 1fr); }
  main { padding-bottom: 0 !important; }
}

/* Mobile main padding to clear bottom nav. */
@media (max-width: 768px) {
  main { padding-bottom: 80px; }
}

/* Accessibility: reduced motion. */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
