/* 99win club - Stylesheet with g6d2 prefix */

/* CSS Variables */
:root {
  --g6d2-primary: #EE82EE;
  --g6d2-primary-dark: #D870D6;
  --g6d2-bg: #262626;
  --g6d2-bg-light: #333333;
  --g6d2-text: #FFFFFF;
  --g6d2-text-muted: #CCCCCC;
  --g6d2-border: #444444;
  --g6d2-shadow: rgba(238, 130, 238, 0.3);
}

/* Reset and Base Styles */
* {
  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(--g6d2-text);
  background-color: var(--g6d2-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Container */
.g6d2-container {
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1.6rem;
}

.g6d2-wrapper {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  overflow: hidden;
}

/* Header */
.g6d2-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: var(--g6d2-bg);
  border-bottom: 1px solid var(--g6d2-border);
  z-index: 1000;
  box-shadow: 0 2px 10px var(--g6d2-shadow);
}

.g6d2-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 1.6rem;
  max-width: 430px;
  margin: 0 auto;
}

.g6d2-logo {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
  color: var(--g6d2-text);
}

.g6d2-logo img {
  width: 3.2rem;
  height: 3.2rem;
  border-radius: 0.5rem;
}

.g6d2-logo-text {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--g6d2-primary);
  text-decoration: none;
}

.g6d2-header-buttons {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.g6d2-btn {
  padding: 0.8rem 1.6rem;
  border: none;
  border-radius: 0.5rem;
  font-size: 1.4rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
}

.g6d2-btn-primary {
  background: linear-gradient(135deg, var(--g6d2-primary) 0%, var(--g6d2-primary-dark) 100%);
  color: var(--g6d2-bg);
}

.g6d2-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px var(--g6d2-shadow);
}

.g6d2-btn-secondary {
  background: transparent;
  color: var(--g6d2-primary);
  border: 2px solid var(--g6d2-primary);
}

.g6d2-btn-secondary:hover {
  background: var(--g6d2-primary);
  color: var(--g6d2-bg);
}

/* Mobile Menu */
.g6d2-menu-toggle {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  cursor: pointer;
  padding: 0.5rem;
  background: none;
  border: none;
}

.g6d2-menu-toggle span {
  display: block;
  width: 2.5rem;
  height: 0.3rem;
  background-color: var(--g6d2-primary);
  border-radius: 0.2rem;
  transition: all 0.3s ease;
}

.g6d2-mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  max-width: 320px;
  height: 100vh;
  background-color: var(--g6d2-bg-light);
  z-index: 9999;
  transition: right 0.3s ease;
  box-shadow: -5px 0 15px rgba(0, 0, 0, 0.5);
  overflow-y: auto;
}

.g6d2-mobile-menu.g6d2-menu-open {
  right: 0;
}

.g6d2-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.6rem;
  border-bottom: 1px solid var(--g6d2-border);
}

.g6d2-menu-close {
  background: none;
  border: none;
  color: var(--g6d2-text);
  font-size: 2.4rem;
  cursor: pointer;
}

.g6d2-menu-nav {
  padding: 1.6rem;
}

.g6d2-menu-nav a {
  display: block;
  padding: 1.2rem 0;
  color: var(--g6d2-text);
  text-decoration: none;
  font-size: 1.6rem;
  border-bottom: 1px solid var(--g6d2-border);
  transition: color 0.3s ease;
}

.g6d2-menu-nav a:hover {
  color: var(--g6d2-primary);
}

.g6d2-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.g6d2-mobile-menu.g6d2-menu-open + .g6d2-menu-overlay {
  opacity: 1;
  visibility: visible;
}

/* Main Content */
.g6d2-main {
  padding-top: 8rem;
  padding-bottom: 8rem;
  min-height: 100vh;
}

/* Carousel */
.g6d2-carousel {
  position: relative;
  width: 100%;
  height: 20rem;
  overflow: hidden;
  border-radius: 1rem;
  margin-bottom: 2rem;
}

.g6d2-carousel-slides {
  position: relative;
  width: 100%;
  height: 100%;
}

.g6d2-carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.g6d2-carousel-slide.g6d2-slide-active {
  opacity: 1;
}

.g6d2-carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: pointer;
}

.g6d2-carousel-dots {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.8rem;
}

.g6d2-carousel-dot {
  width: 0.8rem;
  height: 0.8rem;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
}

.g6d2-carousel-dot.g6d2-dot-active {
  background-color: var(--g6d2-primary);
  transform: scale(1.2);
}

/* Section */
.g6d2-section {
  padding: 2.4rem 0;
}

.g6d2-section-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--g6d2-primary);
  margin-bottom: 1.6rem;
  text-align: center;
}

.g6d2-section-subtitle {
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--g6d2-text);
  margin-bottom: 1.2rem;
}

/* Card */
.g6d2-card {
  background-color: var(--g6d2-bg-light);
  border-radius: 1rem;
  padding: 2rem;
  margin-bottom: 1.6rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.g6d2-card-title {
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--g6d2-primary);
  margin-bottom: 1rem;
}

.g6d2-card-content {
  font-size: 1.5rem;
  line-height: 1.6;
  color: var(--g6d2-text-muted);
}

/* Grid */
.g6d2-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.g6d2-grid-item {
  background-color: var(--g6d2-bg-light);
  border-radius: 0.8rem;
  padding: 1rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  color: var(--g6d2-text);
}

.g6d2-grid-item:hover {
  transform: translateY(-0.5rem);
  box-shadow: 0 4px 15px var(--g6d2-shadow);
}

.g6d2-grid-item img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 0.5rem;
  margin-bottom: 0.8rem;
}

.g6d2-grid-item-title {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--g6d2-text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Game List */
.g6d2-game-list {
  margin: 2rem 0;
}

.g6d2-game-category {
  margin-bottom: 3rem;
}

.g6d2-game-category-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--g6d2-primary);
  margin-bottom: 1.5rem;
  padding-left: 1rem;
  border-left: 4px solid var(--g6d2-primary);
}

.g6d2-games-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.g6d2-game-item {
  background-color: var(--g6d2-bg-light);
  border-radius: 0.8rem;
  padding: 0.8rem;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  color: var(--g6d2-text);
  display: block;
}

.g6d2-game-item:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 15px var(--g6d2-shadow);
}

.g6d2-game-item img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 0.5rem;
  margin-bottom: 0.6rem;
}

.g6d2-game-name {
  font-size: 1rem;
  font-weight: 500;
  color: var(--g6d2-text);
  text-align: center;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.3;
}

/* Footer */
.g6d2-footer {
  background-color: var(--g6d2-bg-light);
  padding: 3rem 0 8rem;
  border-top: 1px solid var(--g6d2-border);
}

.g6d2-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 2rem;
}

.g6d2-footer-link {
  color: var(--g6d2-text-muted);
  text-decoration: none;
  font-size: 1.4rem;
  transition: color 0.3s ease;
}

.g6d2-footer-link:hover {
  color: var(--g6d2-primary);
}

.g6d2-partners {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 2rem;
}

.g6d2-partner-logo {
  width: 4rem;
  height: 4rem;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.7;
  transition: all 0.3s ease;
}

.g6d2-partner-logo:hover {
  filter: grayscale(0%);
  opacity: 1;
}

.g6d2-copyright {
  text-align: center;
  color: var(--g6d2-text-muted);
  font-size: 1.3rem;
  padding: 0 1rem;
}

/* Mobile Bottom Navigation */
.g6d2-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 6.4rem;
  background: linear-gradient(180deg, var(--g6d2-bg-light) 0%, var(--g6d2-bg) 100%);
  border-top: 2px solid var(--g6d2-primary);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3);
}

.g6d2-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 6rem;
  min-height: 6rem;
  text-decoration: none;
  color: var(--g6d2-text-muted);
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  background: none;
  padding: 0;
}

.g6d2-nav-item:hover,
.g6d2-nav-item.g6d2-nav-active {
  color: var(--g6d2-primary);
  transform: scale(1.1);
}

.g6d2-nav-icon {
  font-size: 2.4rem;
  margin-bottom: 0.4rem;
}

.g6d2-nav-text {
  font-size: 1rem;
  font-weight: 500;
}

/* Responsive - Hide bottom nav on desktop */
@media (min-width: 769px) {
  .g6d2-bottom-nav {
    display: none;
  }

  .g6d2-main {
    padding-bottom: 2rem;
  }
}

@media (max-width: 768px) {
  .g6d2-main {
    padding-bottom: 8rem;
  }
}

/* Link Styles */
.g6d2-link {
  color: var(--g6d2-primary);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  cursor: pointer;
}

.g6d2-link:hover {
  color: var(--g6d2-primary-dark);
  text-decoration: underline;
}

/* Promotion Box */
.g6d2-promotion-box {
  background: linear-gradient(135deg, var(--g6d2-bg-light) 0%, var(--g6d2-bg) 100%);
  border: 2px solid var(--g6d2-primary);
  border-radius: 1rem;
  padding: 2rem;
  text-align: center;
  margin: 2rem 0;
}

.g6d2-promotion-box h3 {
  color: var(--g6d2-primary);
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.g6d2-promotion-box p {
  color: var(--g6d2-text-muted);
  font-size: 1.4rem;
  margin-bottom: 1.5rem;
}

/* Utility Classes */
.g6d2-text-center {
  text-align: center;
}

.g6d2-mt-1 { margin-top: 1rem; }
.g6d2-mt-2 { margin-top: 2rem; }
.g6d2-mt-3 { margin-top: 3rem; }

.g6d2-mb-1 { margin-bottom: 1rem; }
.g6d2-mb-2 { margin-bottom: 2rem; }
.g6d2-mb-3 { margin-bottom: 3rem; }

.g6d2-p-1 { padding: 1rem; }
.g6d2-p-2 { padding: 2rem; }
.g6d2-p-3 { padding: 3rem; }
