/* Root variables and base configuration for phmapalad */
:root {
  --vfd6-primary: #D2691E;
  --vfd6-secondary: #2C3E50;
  --vfd6-accent: #BAE1FF;
  --vfd6-muted: #A9A9A9;
  --vfd6-dark: #333333;
  --vfd6-light: #808080;
  --vfd6-bg-primary: #2C3E50;
  --vfd6-bg-secondary: #BAE1FF;
  --vfd6-text-primary: #333333;
  --vfd6-text-secondary: #808080;
  --vfd6-text-light: #BAE1FF;
  --vfd6-border: #A9A9A9;
  --vfd6-shadow: rgba(44, 62, 80, 0.1);
  --vfd6-radius: 8px;
  --vfd6-transition: all 0.3s ease;
  font-size: 62.5%;
}

/* Base reset and typography */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-size: 1.4rem;
  line-height: 1.5;
  color: var(--vfd6-text-primary);
  background-color: var(--vfd6-bg-secondary);
  overflow-x: hidden;
}

/* Container and layout utilities */
.vfd6-container {
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1.5rem;
  width: 100%;
}

.vfd6-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.vfd6-main {
  flex: 1;
  padding-top: 70px;
  padding-bottom: 70px;
}

/* Header and navigation */
.vfd6-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, var(--vfd6-bg-primary), var(--vfd6-primary));
  z-index: 1000;
  box-shadow: 0 2px 10px var(--vfd6-shadow);
}

.vfd6-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  height: 60px;
}

.vfd6-logo {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
  color: var(--vfd6-text-light);
  font-weight: bold;
  font-size: 1.8rem;
}

.vfd6-logo img {
  width: 32px;
  height: 32px;
  border-radius: 6px;
}

.vfd6-nav-actions {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.vfd6-menu-toggle {
  background: none;
  border: 2px solid var(--vfd6-text-light);
  color: var(--vfd6-text-light);
  padding: 0.8rem;
  border-radius: var(--vfd6-radius);
  cursor: pointer;
  font-size: 1.6rem;
  transition: var(--vfd6-transition);
  min-width: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.vfd6-menu-toggle:hover {
  background: var(--vfd6-text-light);
  color: var(--vfd6-primary);
}

/* Mobile menu */
.vfd6-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: var(--vfd6-transition);
}

.vfd6-menu-overlay.vfd6-active {
  opacity: 1;
  visibility: visible;
}

.vfd6-mobile-menu {
  position: fixed;
  top: 60px;
  left: 0;
  right: 0;
  background: var(--vfd6-bg-primary);
  transform: translateY(-100%);
  transition: var(--vfd6-transition);
  z-index: 998;
  max-height: calc(100vh - 60px);
  overflow-y: auto;
}

.vfd6-mobile-menu.vfd6-active {
  transform: translateY(0);
}

.vfd6-menu-links {
  list-style: none;
  padding: 2rem 0;
}

.vfd6-menu-links li {
  border-bottom: 1px solid rgba(186, 225, 255, 0.1);
}

.vfd6-menu-links a {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem 2rem;
  color: var(--vfd6-text-light);
  text-decoration: none;
  font-size: 1.6rem;
  transition: var(--vfd6-transition);
  min-height: 44px;
}

.vfd6-menu-links a:hover {
  background: rgba(186, 225, 255, 0.1);
  color: var(--vfd6-accent);
}

/* Button styles */
.vfd6-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  padding: 1rem 2rem;
  background: linear-gradient(135deg, var(--vfd6-primary), #FF8C00);
  color: white;
  text-decoration: none;
  border-radius: var(--vfd6-radius);
  font-weight: bold;
  font-size: 1.4rem;
  border: none;
  cursor: pointer;
  transition: var(--vfd6-transition);
  min-height: 44px;
  text-align: center;
}

.vfd6-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(210, 105, 30, 0.3);
}

.vfd6-btn:active {
  transform: translateY(0);
}

.vfd6-btn-secondary {
  background: transparent;
  border: 2px solid var(--vfd6-text-light);
  color: var(--vfd6-text-light);
}

.vfd6-btn-secondary:hover {
  background: var(--vfd6-text-light);
  color: var(--vfd6-primary);
}

.vfd6-btn-small {
  padding: 0.8rem 1.5rem;
  font-size: 1.2rem;
}

.vfd6-btn-large {
  padding: 1.5rem 3rem;
  font-size: 1.6rem;
}

/* Content sections */
.vfd6-content-section {
  margin: 2rem 0;
  padding: 2rem;
  background: white;
  border-radius: var(--vfd6-radius);
  box-shadow: 0 2px 10px var(--vfd6-shadow);
  opacity: 0;
  transform: translateY(20px);
  transition: var(--vfd6-transition);
}

.vfd6-content-section.vfd6-fade-in {
  opacity: 1;
  transform: translateY(0);
}

.vfd6-content-section h1,
.vfd6-content-section h2,
.vfd6-content-section h3 {
  color: var(--vfd6-primary);
  margin-bottom: 1.5rem;
  line-height: 1.3;
}

.vfd6-content-section h1 {
  font-size: 2.4rem;
  text-align: center;
}

.vfd6-content-section h2 {
  font-size: 2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.vfd6-content-section h3 {
  font-size: 1.8rem;
}

.vfd6-content-section p {
  margin-bottom: 1.5rem;
  line-height: 1.6;
  color: var(--vfd6-text-primary);
}

/* Carousel styles */
.vfd6-carousel {
  position: relative;
  overflow: hidden;
  border-radius: var(--vfd6-radius);
  margin: 2rem 0;
  height: 200px;
}

.vfd6-carousel-track {
  display: flex;
  transition: transform 0.5s ease;
  height: 100%;
}

.vfd6-carousel-item {
  min-width: 100%;
  height: 100%;
  position: relative;
  cursor: pointer;
}

.vfd6-carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--vfd6-radius);
}

.vfd6-carousel-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, rgba(210, 105, 30, 0.3), rgba(44, 62, 80, 0.3));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
  font-size: 1.6rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

/* Game grid */
.vfd6-game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
  gap: 1rem;
  margin: 2rem 0;
}

.vfd6-game-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1rem;
  background: white;
  border-radius: var(--vfd6-radius);
  box-shadow: 0 2px 8px var(--vfd6-shadow);
  cursor: pointer;
  transition: var(--vfd6-transition);
  text-decoration: none;
  color: var(--vfd6-text-primary);
  min-height: 120px;
}

.vfd6-game-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 15px var(--vfd6-shadow);
}

.vfd6-game-card img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 0.8rem;
}

.vfd6-game-card h3 {
  font-size: 1.2rem;
  text-align: center;
  line-height: 1.3;
  margin: 0;
  color: var(--vfd6-text-primary);
}

/* Feature cards */
.vfd6-feature-card {
  background: linear-gradient(135deg, rgba(210, 105, 30, 0.1), rgba(186, 225, 255, 0.1));
  padding: 2rem;
  border-radius: var(--vfd6-radius);
  margin: 1.5rem 0;
  border-left: 4px solid var(--vfd6-primary);
}

.vfd6-feature-card h3 {
  color: var(--vfd6-primary);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.vfd6-feature-card p {
  margin-bottom: 0;
  line-height: 1.6;
}

/* Statistics grid */
.vfd6-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1rem;
  margin: 2rem 0;
}

.vfd6-stat-card {
  background: linear-gradient(135deg, var(--vfd6-primary), #FF8C00);
  color: white;
  padding: 2rem 1rem;
  border-radius: var(--vfd6-radius);
  text-align: center;
  box-shadow: 0 4px 15px rgba(210, 105, 30, 0.2);
}

.vfd6-stat-number {
  font-size: 2.4rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
  display: block;
}

.vfd6-stat-label {
  font-size: 1.2rem;
  opacity: 0.9;
}

/* Bottom navigation */
.vfd6-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--vfd6-bg-primary);
  z-index: 900;
  border-top: 1px solid rgba(186, 225, 255, 0.1);
}

.vfd6-bottom-nav-container {
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 0.8rem 0;
  max-width: 430px;
  margin: 0 auto;
}

.vfd6-bottom-nav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  text-decoration: none;
  color: var(--vfd6-text-light);
  font-size: 1rem;
  transition: var(--vfd6-transition);
  min-width: 44px;
  min-height: 44px;
  padding: 0.5rem;
  border-radius: 6px;
}

.vfd6-bottom-nav a i {
  font-size: 2rem;
}

.vfd6-bottom-nav a span {
  font-size: 1rem;
  font-weight: 500;
}

.vfd6-bottom-nav a:hover,
.vfd6-bottom-nav a.vfd6-active {
  color: var(--vfd6-primary);
  background: rgba(210, 105, 30, 0.1);
}

/* Footer */
.vfd6-footer {
  background: var(--vfd6-bg-primary);
  color: var(--vfd6-text-light);
  padding: 3rem 0 2rem;
  margin-top: 4rem;
}

.vfd6-footer-content {
  text-align: center;
}

.vfd6-footer p {
  margin-bottom: 2rem;
  line-height: 1.6;
  font-size: 1.3rem;
}

.vfd6-footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  margin: 2rem 0;
}

.vfd6-footer-links a {
  color: var(--vfd6-accent);
  text-decoration: none;
  font-size: 1.3rem;
  transition: var(--vfd6-transition);
  padding: 0.5rem;
}

.vfd6-footer-links a:hover {
  color: var(--vfd6-primary);
}

.vfd6-partners {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin: 2rem 0;
  padding: 2rem 0;
  border-top: 1px solid rgba(186, 225, 255, 0.1);
  border-bottom: 1px solid rgba(186, 225, 255, 0.1);
}

.vfd6-partners img {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: 6px;
  opacity: 0.7;
  transition: var(--vfd6-transition);
}

.vfd6-partners img:hover {
  opacity: 1;
  transform: scale(1.1);
}

.vfd6-copyright {
  font-size: 1.2rem;
  opacity: 0.8;
  margin-top: 1rem;
}

/* Utility classes */
.vfd6-text-center {
  text-align: center;
}

.vfd6-text-left {
  text-align: left;
}

.vfd6-text-right {
  text-align: right;
}

.vfd6-mb-1 { margin-bottom: 1rem; }
.vfd6-mb-2 { margin-bottom: 2rem; }
.vfd6-mb-3 { margin-bottom: 3rem; }

.vfd6-mt-1 { margin-top: 1rem; }
.vfd6-mt-2 { margin-top: 2rem; }
.vfd6-mt-3 { margin-top: 3rem; }

.vfd6-hidden {
  display: none;
}

.vfd6-visible {
  display: block;
}

/* Responsive design */
@media (max-width: 480px) {
  .vfd6-container {
    padding: 0 1rem;
  }
  
  .vfd6-content-section {
    padding: 1.5rem;
    margin: 1.5rem 0;
  }
  
  .vfd6-game-grid {
    grid-template-columns: repeat(auto-fit, minmax(70px, 1fr));
    gap: 0.8rem;
  }
  
  .vfd6-game-card {
    padding: 0.8rem;
    min-height: 100px;
  }
  
  .vfd6-game-card img {
    width: 50px;
    height: 50px;
  }
  
  .vfd6-bottom-nav-container {
    padding: 0.6rem 0;
  }
  
  .vfd6-bottom-nav a i {
    font-size: 1.8rem;
  }
  
  .vfd6-bottom-nav a span {
    font-size: 0.9rem;
  }
}

@media (min-width: 481px) and (max-width: 768px) {
  .vfd6-game-grid {
    grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
  }
  
  .vfd6-stats-grid {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  }
}

/* Animation keyframes */
@keyframes vfd6-fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes vfd6-slideIn {
  from {
    transform: translateX(-100%);
  }
  to {
    transform: translateX(0);
  }
}

@keyframes vfd6-pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

/* Loading animations */
.vfd6-loading {
  animation: vfd6-pulse 2s infinite;
}

.vfd6-slide-in {
  animation: vfd6-slideIn 0.5s ease;
}

/* Print styles */
@media print {
  .vfd6-header,
  .vfd6-bottom-nav,
  .vfd6-mobile-menu,
  .vfd6-menu-overlay {
    display: none;
  }
  
  .vfd6-main {
    padding-top: 0;
    padding-bottom: 0;
  }
  
  .vfd6-content-section {
    box-shadow: none;
    break-inside: avoid;
  }
}