/* PHLWn CSS Framework - Mobile-First Gaming Platform */
/* CSS Prefix: v099- | JS Prefix: game084b */
/* Color Scheme: #36454F, #A9A9A9, #F08080, #8B0000, #C0C0C0, #2C3E50 */

/* CSS Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  line-height: 1.6;
  color: #36454F;
  background: linear-gradient(135deg, #F5F5F5 0%, #E8E8E8 100%);
  overflow-x: hidden;
  min-height: 100vh;
}

/* Container System */
.v099-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  max-width: 430px;
  margin: 0 auto;
  background: #FFFFFF;
  box-shadow: 0 0 20px rgba(54, 69, 79, 0.1);
  position: relative;
}

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

/* Header Styles */
.v099-header {
  background: linear-gradient(135deg, #36454F 0%, #2C3E50 100%);
  color: #FFFFFF;
  padding: 0.75rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(54, 69, 79, 0.3);
}

.v099-header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.v099-logo {
  display: flex;
  align-items: center;
  font-size: 1.25rem;
  font-weight: 700;
  color: #C0C0C0;
  text-decoration: none;
}

.v099-logo-img {
  width: 32px;
  height: 32px;
  margin-right: 0.5rem;
  border-radius: 6px;
}

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

/* Navigation Menu */
.v099-mobile-nav {
  position: fixed;
  top: 0;
  left: -100%;
  width: 280px;
  height: 100vh;
  background: linear-gradient(180deg, #36454F 0%, #2C3E50 100%);
  z-index: 200;
  transition: left 0.3s ease;
  padding-top: 4rem;
}

.v099-mobile-nav.v099-open {
  left: 0;
}

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

.v099-nav-item {
  border-bottom: 1px solid rgba(192, 192, 192, 0.2);
}

.v099-nav-link {
  display: flex;
  align-items: center;
  padding: 1rem 1.5rem;
  color: #C0C0C0;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
}

.v099-nav-link:hover,
.v099-nav-link:focus {
  background: rgba(192, 192, 192, 0.1);
  color: #FFFFFF;
}

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

.v099-nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(0, 0, 0, 0.5);
  z-index: 150;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.v099-nav-overlay.v099-active {
  opacity: 1;
  visibility: visible;
}

/* Hamburger Menu */
.v099-hamburger {
  background: none;
  border: none;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  width: 24px;
  height: 24px;
  cursor: pointer;
  padding: 0;
}

.v099-hamburger span {
  display: block;
  height: 2px;
  width: 100%;
  background: #C0C0C0;
  border-radius: 1px;
  transition: all 0.3s ease;
}

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

.v099-hamburger.v099-active span:nth-child(2) {
  opacity: 0;
}

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

/* Main Content */
.v099-main {
  flex: 1;
  padding-bottom: 4rem;
}

/* Section Styles */
.v099-section {
  padding: 2rem 0;
}

.v099-section-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #36454F;
  text-align: center;
  margin-bottom: 1.5rem;
}

.v099-bg-surface {
  background: linear-gradient(135deg, #F8F8F8 0%, #EEEEEE 100%);
}

/* Hero Section */
.v099-hero {
  background: linear-gradient(135deg, #36454F 0%, #2C3E50 50%, #F08080 100%);
  color: #FFFFFF;
  padding: 2.5rem 0;
  text-align: center;
}

.v099-hero h1 {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.3;
}

.v099-hero p {
  font-size: 1rem;
  margin-bottom: 2rem;
  opacity: 0.9;
  line-height: 1.6;
}

/* Button System */
.v099-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 0.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  line-height: 1;
  gap: 0.5rem;
  touch-action: manipulation;
}

.v099-btn-primary {
  background: linear-gradient(135deg, #F08080 0%, #8B0000 100%);
  color: #FFFFFF;
  box-shadow: 0 4px 15px rgba(240, 128, 128, 0.4);
}

.v099-btn-primary:hover,
.v099-btn-primary:focus {
  background: linear-gradient(135deg, #8B0000 0%, #F08080 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(240, 128, 128, 0.5);
}

.v099-btn-secondary {
  background: linear-gradient(135deg, #A9A9A9 0%, #36454F 100%);
  color: #FFFFFF;
  box-shadow: 0 4px 15px rgba(169, 169, 169, 0.4);
}

.v099-btn-secondary:hover,
.v099-btn-secondary:focus {
  background: linear-gradient(135deg, #36454F 0%, #A9A9A9 100%);
  transform: translateY(-2px);
}

.v099-btn-accent {
  background: linear-gradient(135deg, #C0C0C0 0%, #2C3E50 100%);
  color: #36454F;
  box-shadow: 0 4px 15px rgba(192, 192, 192, 0.4);
}

.v099-btn-accent:hover,
.v099-btn-accent:focus {
  background: linear-gradient(135deg, #2C3E50 0%, #C0C0C0 100%);
  color: #FFFFFF;
  transform: translateY(-2px);
}

.v099-btn-outline {
  background: transparent;
  color: #36454F;
  border: 2px solid #A9A9A9;
}

.v099-btn-outline:hover,
.v099-btn-outline:focus {
  background: #A9A9A9;
  color: #FFFFFF;
  border-color: #36454F;
}

.v099-btn-large {
  padding: 1rem 2rem;
  font-size: 1rem;
}

.v099-btn-small {
  padding: 0.5rem 1rem;
  font-size: 0.8rem;
}

.v099-btn:active,
.v099-btn.v099-touch-active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Carousel System */
.v099-carousel {
  position: relative;
  margin: 2rem 0;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(54, 69, 79, 0.2);
}

.v099-carousel-container {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
}

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

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

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

.v099-carousel-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(54, 69, 79, 0.8));
  color: #FFFFFF;
  padding: 2rem 1.5rem 1rem;
}

.v099-carousel-content h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.v099-carousel-indicators {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 0;
}

.v099-carousel-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #A9A9A9;
  cursor: pointer;
  transition: all 0.3s ease;
}

.v099-carousel-indicator.v099-active {
  background: #F08080;
  transform: scale(1.2);
}

/* Game Grid */
.v099-game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
  margin: 2rem 0;
}

.v099-game-item {
  background: #FFFFFF;
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(54, 69, 79, 0.1);
  transition: all 0.3s ease;
  cursor: pointer;
}

.v099-game-item:hover,
.v099-game-item:focus {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(54, 69, 79, 0.2);
}

.v099-game-img {
  width: 100%;
  height: 120px;
  object-fit: cover;
}

.v099-game-info {
  padding: 1rem;
  text-align: center;
}

.v099-game-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: #36454F;
  margin-bottom: 0.25rem;
}

.v099-game-type {
  font-size: 0.75rem;
  color: #A9A9A9;
  text-transform: uppercase;
  font-weight: 500;
}

/* Feature Cards */
.v099-features {
  display: grid;
  gap: 1.5rem;
  margin: 2rem 0;
}

.v099-feature {
  background: #FFFFFF;
  padding: 1.5rem;
  border-radius: 0.75rem;
  box-shadow: 0 4px 15px rgba(54, 69, 79, 0.1);
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.v099-feature-icon {
  flex-shrink: 0;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #F08080 0%, #8B0000 100%);
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  font-size: 1.25rem;
}

.v099-feature-content h4 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #36454F;
  margin-bottom: 0.5rem;
}

.v099-feature-content p {
  color: #666666;
  line-height: 1.6;
  margin-bottom: 1rem;
}

/* Statistics Grid */
.v099-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
  gap: 1rem;
  margin: 2rem 0;
}

.v099-stat {
  text-align: center;
  padding: 1rem;
  background: #FFFFFF;
  border-radius: 0.5rem;
  box-shadow: 0 2px 10px rgba(54, 69, 79, 0.1);
}

.v099-stat-value {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  color: #F08080;
  margin-bottom: 0.25rem;
}

.v099-stat-label {
  font-size: 0.75rem;
  color: #A9A9A9;
  text-transform: uppercase;
  font-weight: 600;
}

/* Promo Section */
.v099-promo-section {
  background: linear-gradient(135deg, rgba(240, 128, 128, 0.1) 0%, rgba(192, 192, 192, 0.1) 100%);
  padding: 2rem 1.5rem;
  border-radius: 1rem;
  text-align: center;
  margin: 2rem 0;
  border: 2px solid rgba(240, 128, 128, 0.2);
}

.v099-promo-section h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: #36454F;
  margin-bottom: 1rem;
}

.v099-promo-section p {
  color: #666666;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.v099-promo-highlight {
  background: linear-gradient(135deg, #F08080 0%, #8B0000 100%);
  color: #FFFFFF;
  padding: 0.75rem 1.5rem;
  border-radius: 2rem;
  font-weight: 600;
  display: inline-block;
  margin: 1rem 0;
  box-shadow: 0 4px 15px rgba(240, 128, 128, 0.4);
}

/* Footer */
.v099-footer {
  background: linear-gradient(135deg, #36454F 0%, #2C3E50 100%);
  color: #C0C0C0;
  padding: 2rem 0 1rem;
  margin-top: auto;
}

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

.v099-footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.v099-footer-link {
  color: #C0C0C0;
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

.v099-footer-link:hover,
.v099-footer-link:focus {
  color: #F08080;
}

.v099-copyright {
  font-size: 0.8rem;
  color: #A9A9A9;
  text-align: center;
}

/* Bottom Navigation */
.v099-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  background: linear-gradient(135deg, #36454F 0%, #2C3E50 100%);
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 0.75rem 0;
  box-shadow: 0 -2px 15px rgba(54, 69, 79, 0.3);
  z-index: 90;
}

.v099-bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: #A9A9A9;
  transition: all 0.3s ease;
  padding: 0.25rem 0.5rem;
  border-radius: 0.5rem;
  min-width: 60px;
}

.v099-bottom-nav-item:hover,
.v099-bottom-nav-item:focus,
.v099-bottom-nav-item.v099-active {
  color: #F08080;
  background: rgba(240, 128, 128, 0.1);
}

.v099-bottom-nav-icon {
  font-size: 1.25rem;
  margin-bottom: 0.25rem;
}

.v099-bottom-nav-text {
  font-size: 0.7rem;
  font-weight: 500;
}

/* Lazy Loading */
.v099-lazy {
  opacity: 0;
  transition: opacity 0.3s ease;
}

.v099-lazy.v099-loaded {
  opacity: 1;
}

/* Loading States */
.v099-loading {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem;
}

.v099-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid #E0E0E0;
  border-top: 3px solid #F08080;
  border-radius: 50%;
  animation: v099-spin 1s linear infinite;
}

@keyframes v099-spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 375px) {
  .v099-container {
    padding: 0 0.75rem;
  }
  
  .v099-hero h1 {
    font-size: 1.5rem;
  }
  
  .v099-section-title {
    font-size: 1.3rem;
  }
  
  .v099-game-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }
}

@media (min-width: 431px) {
  .v099-wrapper {
    max-width: 430px;
  }
}

/* Touch & Accessibility */
@media (hover: none) and (pointer: coarse) {
  .v099-btn:hover {
    transform: none;
  }
  
  .v099-game-item:hover {
    transform: none;
  }
}

/* High Contrast Support */
@media (prefers-contrast: high) {
  .v099-btn-primary {
    background: #8B0000;
    border: 2px solid #FFFFFF;
  }
  
  .v099-feature-icon {
    background: #8B0000;
    border: 2px solid #36454F;
  }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  .v099-carousel-slide {
    transition: none;
  }
}