/* jljl 2025 Core Styles - w6459 namespace */
/* Reset and base styles */
:root {
  --w6459-primary: #0A0A0A;
  --w6459-secondary: #FDF5E6;
  --w6459-accent: #A0522D;
  --w6459-gray: #A9A9A9;
  --w6459-light: #F8F8FF;
  --w6459-white: #FFFFFF;
  --w6459-bg: #FDF5E6;
  --w6459-text: #0A0A0A;
  --w6459-border: #A9A9A9;
  --w6459-shadow: 0 2px 8px rgba(0,0,0,0.1);
  --w6459-radius: 8px;
  --w6459-transition: all 0.3s ease;
  --w6459-z-header: 100;
  --w6459-z-modal: 1000;
  --w6459-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(--w6459-text);
  background: var(--w6459-bg);
  overflow-x: hidden;
}

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

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

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

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

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

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

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

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

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

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

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

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

.w6459-btn-primary {
  background: var(--w6459-accent);
  color: var(--w6459-white);
}

.w6459-btn-primary:hover {
  background: #8B4513;
  transform: translateY(-1px);
}

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

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

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

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

/* Menu toggle button */
.w6459-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;
}

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

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

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

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

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

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

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

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

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

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

.w6459-nav-link:hover {
  background: var(--w6459-secondary);
  color: var(--w6459-accent);
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

/* Feature card styles */
.w6459-feature-card {
  background: var(--w6459-white);
  border: 1px solid var(--w6459-border);
  border-radius: var(--w6459-radius);
  padding: 2rem;
  text-align: center;
  transition: var(--w6459-transition);
}

.w6459-feature-card:hover {
  box-shadow: var(--w6459-shadow);
  transform: translateY(-2px);
}

.w6459-feature-card h3 {
  color: var(--w6459-primary);
  margin-bottom: 1rem;
}

.w6459-feature-card i {
  font-size: 3rem;
  color: var(--w6459-accent);
  margin-bottom: 1rem;
}

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

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

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

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

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

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

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

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

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

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

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

.w6459-footer-link:hover {
  color: var(--w6459-secondary);
}

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

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

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

.w6459-copyright {
  font-size: 1.3rem;
  color: var(--w6459-gray);
}

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

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

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

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

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

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

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

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

.w6459-hide {
  display: none;
}

.w6459-show {
  display: block;
}

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

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

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

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

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

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

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

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

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

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