/* jl96 - Core CSS Stylesheet */
/* All classes use v348 prefix */

:root {
  --v348-primary: #90EE90;
  --v348-secondary: #5D5D5D;
  --v348-bg-light: #F5F5F5;
  --v348-bg-gray: #DCDCDC;
  --v348-bg-dark: #1A1A1A;
  --v348-text-dark: #1A1A1A;
  --v348-text-light: #FFFFFF;
  --v348-text-gray: #666666;
  --v348-shadow: rgba(0, 0, 0, 0.1);
  --v348-border-radius: 8px;
  --v348-transition: all 0.3s ease;
}

* {
  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, Oxygen, Ubuntu, Cantarell, sans-serif;
  font-size: 1.6rem;
  line-height: 1.5;
  color: var(--v348-text-dark);
  background-color: var(--v348-bg-light);
  padding-bottom: 80px;
}

@media (min-width: 769px) {
  body {
    padding-bottom: 0;
  }
}

.v348-container {
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1rem;
}

.v348-wrapper {
  width: 100%;
  overflow-x: hidden;
}

.v348-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, var(--v348-bg-dark) 0%, var(--v348-secondary) 100%);
  padding: 1rem 0;
  z-index: 1000;
  box-shadow: 0 2px 10px var(--v348-shadow);
}

.v348-header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1rem;
}

.v348-logo {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
  color: var(--v348-text-light);
}

.v348-logo img {
  width: 32px;
  height: 32px;
  border-radius: 4px;
}

.v348-logo-text {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--v348-primary);
}

.v348-header-buttons {
  display: flex;
  gap: 0.8rem;
}

.v348-btn {
  padding: 0.6rem 1.2rem;
  border: none;
  border-radius: var(--v348-border-radius);
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--v348-transition);
  text-decoration: none;
  display: inline-block;
}

.v348-btn-register {
  background: var(--v348-primary);
  color: var(--v348-text-dark);
}

.v348-btn-register:hover {
  background: #7FD87F;
  transform: scale(1.05);
}

.v348-btn-login {
  background: transparent;
  color: var(--v348-text-light);
  border: 2px solid var(--v348-primary);
}

.v348-btn-login:hover {
  background: var(--v348-primary);
  color: var(--v348-text-dark);
  transform: scale(1.05);
}

.v348-menu-toggle {
  display: flex;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
  padding: 0.5rem;
  background: none;
  border: none;
}

@media (min-width: 769px) {
  .v348-menu-toggle {
    display: none;
  }
}

.v348-menu-toggle span {
  display: block;
  width: 24px;
  height: 3px;
  background: var(--v348-primary);
  border-radius: 2px;
  transition: var(--v348-transition);
}

.v348-mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 280px;
  height: 100vh;
  background: var(--v348-bg-dark);
  z-index: 9999;
  transition: right 0.3s ease;
  padding: 2rem 0;
  overflow-y: auto;
}

.v348-mobile-menu.v348-menu-open {
  right: 0;
}

.v348-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 1.5rem;
  margin-bottom: 2rem;
}

.v348-menu-close {
  background: none;
  border: none;
  color: var(--v348-text-light);
  font-size: 2rem;
  cursor: pointer;
}

.v348-menu-nav {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.v348-menu-link {
  padding: 1rem 1.5rem;
  color: var(--v348-text-light);
  text-decoration: none;
  font-size: 1.4rem;
  transition: var(--v348-transition);
  border-left: 3px solid transparent;
}

.v348-menu-link:hover {
  background: rgba(144, 238, 144, 0.1);
  border-left-color: var(--v348-primary);
  padding-left: 2rem;
}

.v348-main {
  margin-top: 80px;
  padding: 1.5rem 0;
}

.v348-carousel {
  position: relative;
  width: 100%;
  margin-bottom: 2rem;
  overflow: hidden;
  border-radius: var(--v348-border-radius);
}

.v348-carousel-slide {
  display: none;
  width: 100%;
}

.v348-carousel-slide.v348-active {
  display: block;
}

.v348-carousel-slide img {
  width: 100%;
  height: auto;
  display: block;
}

.v348-carousel-dots {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.8rem;
}

.v348-carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: var(--v348-transition);
}

.v348-carousel-dot.v348-active,
.v348-carousel-dot:hover {
  background: var(--v348-primary);
  transform: scale(1.2);
}

.v348-section {
  margin-bottom: 2.5rem;
  padding: 1.5rem;
  background: var(--v348-text-light);
  border-radius: var(--v348-border-radius);
  box-shadow: 0 2px 8px var(--v348-shadow);
}

.v348-section-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--v348-secondary);
  margin-bottom: 1.5rem;
  text-align: center;
}

.v348-section-content {
  font-size: 1.5rem;
  line-height: 1.6;
  color: var(--v348-text-gray);
}

.v348-game-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.v348-game-item {
  text-align: center;
  cursor: pointer;
  transition: var(--v348-transition);
}

.v348-game-item:hover {
  transform: scale(1.05);
}

.v348-game-icon {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--v348-border-radius);
  margin-bottom: 0.5rem;
  background: var(--v348-bg-gray);
}

.v348-game-name {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--v348-text-dark);
  display: block;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.v348-game-item:hover .v348-game-name {
  color: var(--v348-secondary);
}

.v348-category-title {
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--v348-secondary);
  margin: 2rem 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--v348-primary);
}

.v348-footer {
  background: var(--v348-bg-dark);
  color: var(--v348-text-light);
  padding: 2rem 0;
  margin-top: 2rem;
}

.v348-footer-content {
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1rem;
}

.v348-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
  justify-content: center;
}

.v348-footer-link {
  color: var(--v348-primary);
  text-decoration: none;
  font-size: 1.3rem;
  transition: var(--v348-transition);
}

.v348-footer-link:hover {
  color: #7FD87F;
}

.v348-partners {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.v348-partner-logo {
  width: 50px;
  height: 50px;
  object-fit: contain;
  opacity: 0.8;
  transition: var(--v348-transition);
}

.v348-partner-logo:hover {
  opacity: 1;
}

.v348-copyright {
  text-align: center;
  font-size: 1.2rem;
  color: var(--v348-bg-gray);
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.v348-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(180deg, var(--v348-secondary) 0%, var(--v348-bg-dark) 100%);
  height: 60px;
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
  box-shadow: 0 -2px 10px var(--v348-shadow);
}

@media (min-width: 769px) {
  .v348-bottom-nav {
    display: none;
  }
}

.v348-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  min-height: 60px;
  text-decoration: none;
  color: var(--v348-text-light);
  transition: var(--v348-transition);
  cursor: pointer;
}

.v348-nav-item:hover {
  transform: scale(1.1);
}

.v348-nav-item.v348-active {
  color: var(--v348-primary);
}

.v348-nav-icon {
  font-size: 24px;
  margin-bottom: 2px;
}

.v348-nav-text {
  font-size: 10px;
  font-weight: 500;
}

.v348-text-center {
  text-align: center;
}

.v348-mt-1 {
  margin-top: 1rem;
}

.v348-mb-1 {
  margin-bottom: 1rem;
}

.v348-mt-2 {
  margin-top: 2rem;
}

.v348-mb-2 {
  margin-bottom: 2rem;
}

.v348-highlight {
  color: var(--v348-primary);
  font-weight: 600;
}

.v348-link {
  color: var(--v348-secondary);
  text-decoration: none;
  font-weight: 600;
  transition: var(--v348-transition);
}

.v348-link:hover {
  color: var(--v348-primary);
  text-decoration: underline;
}
