/* jljl11 Core Styles - ve16 namespace */
/* Reset and base styles */
:root {
  --ve16-primary: #2C3E50;
  --ve16-secondary: #FFEFD5;
  --ve16-accent: #D2B48C;
  --ve16-light: #F5DEB3;
  --ve16-white: #FFFFFF;
  --ve16-danger: #FF6347;
  --ve16-bg: #1a1a1a;
  --ve16-text: #333333;
  --ve16-border: #e1e1e1;
  --ve16-shadow: 0 2px 8px rgba(0,0,0,0.1);
  --ve16-radius: 8px;
  --ve16-transition: all 0.3s ease;
  --ve16-z-header: 100;
  --ve16-z-modal: 1000;
  --ve16-z-nav: 999;
}

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

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 1.6rem;
  line-height: 1.5;
  color: var(--ve16-text);
  background: var(--ve16-white);
  overflow-x: hidden;
}

/* Layout containers */
.ve16-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

.ve16-grid {
  display: grid;
  gap: 1.6rem;
}

.ve16-grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.ve16-grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.ve16-grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

/* Header styles */
.ve16-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: var(--ve16-primary);
  color: var(--ve16-white);
  z-index: var(--ve16-z-header);
  box-shadow: var(--ve16-shadow);
}

.ve16-header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1.6rem;
}

.ve16-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--ve16-white);
  font-weight: 700;
  font-size: 1.8rem;
}

.ve16-logo img {
  width: 32px;
  height: 32px;
  margin-right: 0.8rem;
  border-radius: 4px;
}

.ve16-header-actions {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

/* Button styles */
.ve16-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.6rem;
  border: none;
  border-radius: var(--ve16-radius);
  font-size: 1.4rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: var(--ve16-transition);
  min-height: 44px;
  gap: 0.5rem;
}

.ve16-btn-primary {
  background: var(--ve16-danger);
  color: var(--ve16-white);
}

.ve16-btn-primary:hover {
  background: #e5533d;
  transform: translateY(-1px);
}

.ve16-btn-secondary {
  background: var(--ve16-accent);
  color: var(--ve16-primary);
}

.ve16-btn-secondary:hover {
  background: #c4a484;
  transform: translateY(-1px);
}

.ve16-btn-outline {
  background: transparent;
  border: 2px solid var(--ve16-primary);
  color: var(--ve16-primary);
}

.ve16-btn-outline:hover {
  background: var(--ve16-primary);
  color: var(--ve16-white);
}

/* Menu toggle button */
.ve16-menu-toggle {
  display: flex;
  flex-direction: column;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  justify-content: center;
  align-items: center;
  gap: 4px;
}

.ve16-menu-toggle span {
  width: 20px;
  height: 2px;
  background: var(--ve16-white);
  transition: var(--ve16-transition);
  transform-origin: center;
}

.ve16-menu-active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.ve16-menu-active span:nth-child(2) {
  opacity: 0;
}

.ve16-menu-active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

/* Mobile navigation */
.ve16-mobile-menu {
  position: fixed;
  top: 56px;
  left: 0;
  right: 0;
  background: var(--ve16-white);
  border-top: 1px solid var(--ve16-border);
  transform: translateY(-100%);
  transition: var(--ve16-transition);
  z-index: var(--ve16-z-nav);
  max-height: calc(100vh - 56px);
  overflow-y: auto;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  display: none;
}

.ve16-mobile-menu.ve16-nav-open {
  transform: translateY(0);
  display: block;
}

.ve16-nav-list {
  list-style: none;
  padding: 0;
}

.ve16-nav-item {
  border-bottom: 1px solid var(--ve16-border);
}

.ve16-nav-link {
  display: flex;
  align-items: center;
  padding: 1.5rem 2rem;
  color: var(--ve16-text);
  text-decoration: none;
  font-weight: 500;
  transition: var(--ve16-transition);
}

.ve16-nav-link i {
  margin-right: 1rem;
  width: 20px;
  text-align: center;
}

.ve16-nav-link:hover {
  background: var(--ve16-secondary);
  color: var(--ve16-primary);
}

/* Menu overlay */
.ve16-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.5);
  z-index: var(--ve16-z-nav) - 1;
  display: none;
  transition: var(--ve16-transition);
}

.ve16-menu-overlay.ve16-overlay-active {
  display: block;
}

/* Main content */
.ve16-main {
  flex: 1;
  padding-top: 56px;
  padding-bottom: 72px;
}

.ve16-section {
  padding: 2.4rem 0;
}

.ve16-section-title {
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--ve16-primary);
  margin-bottom: 1.6rem;
  text-align: center;
}

.ve16-section h2 {
  font-size: 2rem;
  font-weight: 600;
  color: var(--ve16-primary);
  margin-bottom: 1.2rem;
}

.ve16-section h3 {
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--ve16-text);
  margin-bottom: 1rem;
}

.ve16-section p {
  margin-bottom: 1.6rem;
  color: var(--ve16-text);
}

.ve16-section ul {
  list-style: none;
  margin-bottom: 1.6rem;
}

.ve16-section li {
  padding: 0.8rem 0;
  padding-left: 2rem;
  position: relative;
}

.ve16-section li:before {
  content: '•';
  color: var(--ve16-danger);
  font-weight: bold;
  position: absolute;
  left: 0;
}

/* Carousel styles */
.ve16-carousel {
  position: relative;
  width: 100%;
  height: 200px;
  margin-bottom: 2.4rem;
  overflow: hidden;
  border-radius: var(--ve16-radius);
}

.ve16-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
  cursor: pointer;
}

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

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

.ve16-dots {
  position: absolute;
  bottom: 1.6rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.8rem;
}

.ve16-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: var(--ve16-transition);
}

.ve16-dot-active {
  background: var(--ve16-white);
}

/* Game grid styles */
.ve16-games-section {
  margin-bottom: 3.2rem;
}

.ve16-games-title {
  font-size: 2rem;
  font-weight: 600;
  color: var(--ve16-primary);
  margin-bottom: 1.6rem;
  text-align: center;
}

.ve16-games-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
  margin-bottom: 2.4rem;
}

.ve16-game-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1.2rem 0.8rem;
  border-radius: var(--ve16-radius);
  background: var(--ve16-secondary);
  transition: var(--ve16-transition);
  cursor: pointer;
  min-height: 100px;
}

.ve16-game-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--ve16-shadow);
}

.ve16-game-icon {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  margin-bottom: 0.8rem;
  object-fit: cover;
}

.ve16-game-name {
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--ve16-text);
  line-height: 1.3;
}

/* Text utilities */
.ve16-text-center {
  text-align: center;
}

.ve16-text-left {
  text-align: left;
}

.ve16-text-right {
  text-align: right;
}

.ve16-font-bold {
  font-weight: 700;
}

.ve16-font-semibold {
  font-weight: 600;
}

/* Animation classes */
.ve16-animate {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease;
}

.ve16-animate-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Footer styles */
.ve16-footer {
  background: var(--ve16-primary);
  color: var(--ve16-white);
  padding: 3.2rem 0 8rem;
}

.ve16-footer-content {
  text-align: center;
}

.ve16-footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.6rem;
  margin-bottom: 2.4rem;
}

.ve16-footer-link {
  color: var(--ve16-white);
  text-decoration: none;
  font-size: 1.4rem;
  transition: var(--ve16-transition);
}

.ve16-footer-link:hover {
  color: var(--ve16-accent);
}

.ve16-partners {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.6rem;
  margin-bottom: 2.4rem;
}

.ve16-partner-icon {
  width: 32px;
  height: 32px;
  opacity: 0.7;
  transition: var(--ve16-transition);
}

.ve16-partner-icon:hover {
  opacity: 1;
}

.ve16-copyright {
  font-size: 1.3rem;
  color: var(--ve16-accent);
}

/* Bottom navigation */
.ve16-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--ve16-white);
  border-top: 1px solid var(--ve16-border);
  z-index: var(--ve16-z-nav);
  box-shadow: 0 -2px 8px rgba(0,0,0,0.1);
}

.ve16-bottom-nav-container {
  display: flex;
  max-width: 430px;
  margin: 0 auto;
  height: 64px;
}

.ve16-bottom-nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: var(--ve16-text);
  transition: var(--ve16-transition);
  min-height: 44px;
  gap: 0.4rem;
}

.ve16-nav-icon {
  font-size: 2rem;
  color: var(--ve16-text);
  transition: var(--ve16-transition);
}

.ve16-nav-text {
  font-size: 1.1rem;
  font-weight: 500;
}

.ve16-nav-active,
.ve16-bottom-nav-item:hover {
  color: var(--ve16-danger);
}

.ve16-nav-active .ve16-nav-icon,
.ve16-bottom-nav-item:hover .ve16-nav-icon {
  color: var(--ve16-danger);
  transform: scale(1.1);
}

/* Utility classes */
.ve16-no-scroll {
  overflow: hidden;
}

.ve16-hide {
  display: none;
}

.ve16-show {
  display: block;
}

.ve16-mb-1 { margin-bottom: 0.8rem; }
.ve16-mb-2 { margin-bottom: 1.6rem; }
.ve16-mb-3 { margin-bottom: 2.4rem; }
.ve16-mb-4 { margin-bottom: 3.2rem; }

.ve16-mt-1 { margin-top: 0.8rem; }
.ve16-mt-2 { margin-top: 1.6rem; }
.ve16-mt-3 { margin-top: 2.4rem; }
.ve16-mt-4 { margin-top: 3.2rem; }

.ve16-p-1 { padding: 0.8rem; }
.ve16-p-2 { padding: 1.6rem; }
.ve16-p-3 { padding: 2.4rem; }
.ve16-p-4 { padding: 3.2rem; }

/* Responsive adjustments */
@media (max-width: 374px) {
  .ve16-games-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .ve16-game-icon {
    width: 40px;
    height: 40px;
  }
  
  .ve16-game-name {
    font-size: 1.1rem;
  }
}

@media (min-width: 375px) and (max-width: 429px) {
  .ve16-games-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (min-width: 430px) {
  .ve16-container {
    max-width: 430px;
  }
  
  .ve16-header-content {
    max-width: 430px;
  }
  
  .ve16-bottom-nav-container {
    max-width: 430px;
  }
}

/* Loading states */
.ve16-loading {
  opacity: 0.6;
  pointer-events: none;
}

.ve16-skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: ve16-skeleton-loading 1.5s infinite;
}

@keyframes ve16-skeleton-loading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Print styles */
@media print {
  .ve16-header,
  .ve16-bottom-nav,
  .ve16-mobile-nav {
    display: none;
  }
  
  .ve16-main {
    padding-top: 0;
    padding-bottom: 0;
  }
}