/* 99bon Main Stylesheet */
:root {
  /* Color Palette: #E8F5E8 | #CED4DA | #273746 */
  --gcb6-primary: #E8F5E8;
  --gcb6-secondary: #CED4DA;
  --gcb6-dark: #273746;
  --gcb6-bg: #0F1419;
  --gcb6-text: #E8F5E8;
  --gcb6-text-secondary: #CED4DA;
  --gcb6-text-muted: #6C757D;
  --gcb6-border: #495057;
  --gcb6-accent: #28A745;
  --gcb6-warning: #FFC107;
  --gcb6-danger: #DC3545;
  --gcb6-success: #28A745;
  --gcb6-info: #17A2B8;

  /* Typography */
  --gcb6-font-primary: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  --gcb6-font-secondary: Georgia, 'Times New Roman', serif;

  /* Spacing */
  --gcb6-spacing-xs: 0.4rem;
  --gcb6-spacing-sm: 0.8rem;
  --gcb6-spacing-md: 1.6rem;
  --gcb6-spacing-lg: 2.4rem;
  --gcb6-spacing-xl: 3.2rem;

  /* Border Radius */
  --gcb6-radius-sm: 0.4rem;
  --gcb6-radius-md: 0.8rem;
  --gcb6-radius-lg: 1.2rem;
  --gcb6-radius-xl: 2rem;

  /* Shadows */
  --gcb6-shadow-sm: 0 0.1rem 0.3rem rgba(0, 0, 0, 0.1);
  --gcb6-shadow-md: 0 0.2rem 0.8rem rgba(0, 0, 0, 0.15);
  --gcb6-shadow-lg: 0 0.4rem 1.2rem rgba(0, 0, 0, 0.2);
}

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 62.5%;
  scroll-behavior: smooth;
}

body {
  font-family: var(--gcb6-font-primary);
  font-size: 1.6rem;
  line-height: 1.5;
  color: var(--gcb6-text);
  background: var(--gcb6-bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Mobile-First Responsive Design */
@media (max-width: 768px) {
  body {
    padding-bottom: 8rem; /* Space for bottom navigation */
  }
}

/* Typography */
.gcb6-h1, .gcb6-h2, .gcb6-h3, .gcb6-h4, .gcb6-h5, .gcb6-h6 {
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: var(--gcb6-spacing-sm);
  color: var(--gcb6-primary);
}

.gcb6-h1 { font-size: 2.8rem; }
.gcb6-h2 { font-size: 2.4rem; }
.gcb6-h3 { font-size: 2rem; }
.gcb6-h4 { font-size: 1.8rem; }
.gcb6-h5 { font-size: 1.6rem; }
.gcb6-h6 { font-size: 1.4rem; }

.gcb6-text-center { text-align: center; }
.gcb6-text-left { text-align: left; }
.gcb6-text-right { text-align: right; }

/* Layout Components */
.gcb6-container {
  max-width: 43rem;
  margin: 0 auto;
  padding: 0 var(--gcb6-spacing-md);
}

.gcb6-wrapper {
  min-height: 100vh;
  padding-top: 7rem; /* Account for fixed header */
}

.gcb6-grid {
  display: grid;
  gap: var(--gcb6-spacing-md);
}

.gcb6-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.gcb6-flex-col {
  flex-direction: column;
}

/* Header Navigation */
.gcb6-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, var(--gcb6-dark), #1a1f2e);
  backdrop-filter: blur(1rem);
  border-bottom: 0.1rem solid var(--gcb6-border);
  z-index: 1000;
  padding: var(--gcb6-spacing-sm) 0;
}

.gcb6-header .gcb6-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.gcb6-logo {
  display: flex;
  align-items: center;
  gap: var(--gcb6-spacing-xs);
  cursor: pointer;
  font-size: 2rem;
  font-weight: 700;
  color: var(--gcb6-primary);
  text-decoration: none;
}

.gcb6-logo img {
  width: 3.2rem;
  height: 3.2rem;
  border-radius: var(--gcb6-radius-md);
}

.gcb6-header-actions {
  display: flex;
  align-items: center;
  gap: var(--gcb6-spacing-sm);
}

/* Buttons */
.gcb6-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--gcb6-spacing-xs);
  padding: var(--gcb6-spacing-sm) var(--gcb6-spacing-md);
  border: none;
  border-radius: var(--gcb6-radius-md);
  font-size: 1.4rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  min-height: 4.4rem; /* Touch-friendly size */
  min-width: 4.4rem;
}

.gcb6-btn-primary {
  background: linear-gradient(135deg, var(--gcb6-primary), #d4edda);
  color: var(--gcb6-dark);
  box-shadow: var(--gcb6-shadow-sm);
}

.gcb6-btn-primary:hover {
  transform: translateY(-0.2rem);
  box-shadow: var(--gcb6-shadow-md);
}

.gcb6-btn-secondary {
  background: transparent;
  color: var(--gcb6-primary);
  border: 0.2rem solid var(--gcb6-primary);
}

.gcb6-btn-secondary:hover {
  background: var(--gcb6-primary);
  color: var(--gcb6-dark);
}

.gcb6-menu-toggle {
  background: none;
  border: none;
  color: var(--gcb6-primary);
  font-size: 2.4rem;
  cursor: pointer;
  padding: var(--gcb6-spacing-xs);
  border-radius: var(--gcb6-radius-sm);
}

.gcb6-menu-toggle:hover {
  background: rgba(232, 245, 232, 0.1);
}

/* Mobile Menu */
.gcb6-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.gcb6-menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

.gcb6-mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  max-width: 32rem;
  height: 100vh;
  background: linear-gradient(135deg, var(--gcb6-dark), #1a1f2e);
  z-index: 9999;
  transition: right 0.3s ease;
  overflow-y: auto;
  border-left: 0.1rem solid var(--gcb6-border);
}

.gcb6-mobile-menu.active {
  right: 0;
}

.gcb6-menu-close {
  position: absolute;
  top: var(--gcb6-spacing-md);
  right: var(--gcb6-spacing-md);
  background: none;
  border: none;
  color: var(--gcb6-primary);
  font-size: 2.4rem;
  cursor: pointer;
  padding: var(--gcb6-spacing-xs);
}

.gcb6-menu-nav {
  list-style: none;
  padding: var(--gcb6-spacing-lg) var(--gcb6-spacing-md);
}

.gcb6-menu-nav li {
  margin-bottom: var(--gcb6-spacing-sm);
}

.gcb6-menu-nav a {
  display: block;
  padding: var(--gcb6-spacing-sm) var(--gcb6-spacing-md);
  color: var(--gcb6-text);
  text-decoration: none;
  border-radius: var(--gcb6-radius-md);
  transition: all 0.3s ease;
}

.gcb6-menu-nav a:hover {
  background: rgba(232, 245, 232, 0.1);
  color: var(--gcb6-primary);
}

/* Sections */
.gcb6-section {
  padding: var(--gcb6-spacing-xl) 0;
}

.gcb6-section-title {
  font-size: 2.4rem;
  color: var(--gcb6-primary);
  margin-bottom: var(--gcb6-spacing-lg);
  text-align: center;
}

/* Cards */
.gcb6-card {
  background: linear-gradient(135deg, rgba(39, 55, 70, 0.8), rgba(15, 20, 25, 0.9));
  border: 0.1rem solid var(--gcb6-border);
  border-radius: var(--gcb6-radius-lg);
  padding: var(--gcb6-spacing-lg);
  margin-bottom: var(--gcb6-spacing-md);
  backdrop-filter: blur(1rem);
}

.gcb6-card-title {
  font-size: 1.8rem;
  color: var(--gcb6-primary);
  margin-bottom: var(--gcb6-spacing-md);
}

.gcb6-card-content {
  color: var(--gcb6-text-secondary);
  line-height: 1.6;
}

/* Carousel */
.gcb6-carousel {
  position: relative;
  overflow: hidden;
  border-radius: var(--gcb6-radius-lg);
  margin-bottom: var(--gcb6-spacing-lg);
}

.gcb6-carousel-slides {
  display: flex;
  transition: transform 0.5s ease;
}

.gcb6-carousel-slide {
  min-width: 100%;
  position: relative;
}

.gcb6-carousel-slide img {
  width: 100%;
  height: auto;
  display: block;
}

.gcb6-carousel-controls {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 0 var(--gcb6-spacing-md);
}

.gcb6-carousel-prev,
.gcb6-carousel-next {
  background: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  transition: all 0.3s ease;
}

.gcb6-carousel-prev:hover,
.gcb6-carousel-next:hover {
  background: rgba(0, 0, 0, 0.8);
}

.gcb6-carousel-indicators {
  position: absolute;
  bottom: var(--gcb6-spacing-md);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: var(--gcb6-spacing-xs);
}

.gcb6-carousel-indicator {
  width: 1.2rem;
  height: 1.2rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
}

.gcb6-carousel-indicator.active {
  background: var(--gcb6-primary);
}

/* Game Grid */
.gcb6-game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(8rem, 1fr));
  gap: var(--gcb6-spacing-sm);
  margin-bottom: var(--gcb6-spacing-lg);
}

.gcb6-game-item {
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.gcb6-game-item:hover {
  transform: translateY(-0.2rem);
}

.gcb6-game-icon {
  width: 6rem;
  height: 6rem;
  border-radius: var(--gcb6-radius-lg);
  margin-bottom: var(--gcb6-spacing-xs);
  object-fit: cover;
  border: 0.2rem solid transparent;
  transition: all 0.3s ease;
}

.gcb6-game-item:hover .gcb6-game-icon {
  border-color: var(--gcb6-primary);
}

.gcb6-game-name {
  font-size: 1.2rem;
  color: var(--gcb6-text-secondary);
  line-height: 1.3;
  word-break: break-word;
}

/* Bottom Navigation */
.gcb6-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 6rem;
  background: linear-gradient(135deg, var(--gcb6-dark), #1a1f2e);
  border-top: 0.1rem solid var(--gcb6-border);
  display: flex;
  align-items: center;
  justify-content: space-around;
  z-index: 1000;
}

@media (min-width: 769px) {
  .gcb6-bottom-nav {
    display: none;
  }
}

.gcb6-bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 6rem;
  min-height: 6rem;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  color: var(--gcb6-text-secondary);
}

.gcb6-bottom-nav-item:hover,
.gcb6-bottom-nav-item.active {
  color: var(--gcb6-primary);
  transform: scale(1.1);
}

.gcb6-bottom-nav-icon {
  font-size: 2.4rem;
  margin-bottom: 0.2rem;
}

.gcb6-bottom-nav-text {
  font-size: 1rem;
  font-weight: 500;
}

/* Footer */
.gcb6-footer {
  background: linear-gradient(135deg, var(--gcb6-dark), #1a1f2e);
  border-top: 0.1rem solid var(--gcb6-border);
  padding: var(--gcb6-spacing-xl) 0 var(--gcb6-spacing-md);
  margin-top: auto;
}

.gcb6-footer-content {
  text-align: center;
}

.gcb6-footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--gcb6-spacing-md);
  margin-bottom: var(--gcb6-spacing-lg);
}

.gcb6-footer-links a {
  color: var(--gcb6-text-secondary);
  text-decoration: none;
  font-size: 1.4rem;
  transition: color 0.3s ease;
}

.gcb6-footer-links a:hover {
  color: var(--gcb6-primary);
}

.gcb6-partners {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: var(--gcb6-spacing-md);
  margin-bottom: var(--gcb6-spacing-lg);
}

.gcb6-partner-icon {
  width: 4rem;
  height: 4rem;
  object-fit: contain;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.gcb6-partner-icon:hover {
  opacity: 1;
}

.gcb6-copyright {
  color: var(--gcb6-text-muted);
  font-size: 1.2rem;
  line-height: 1.6;
}

.gcb6-copyright a {
  color: var(--gcb6-primary);
  text-decoration: none;
}

/* Animations */
@keyframes gcb6-fade-in {
  from {
    opacity: 0;
    transform: translateY(2rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes gcb6-pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

@keyframes gcb6-bounce {
  0%, 20%, 53%, 80%, 100% {
    transform: translate3d(0, 0, 0);
  }
  40%, 43% {
    transform: translate3d(0, -1rem, 0);
  }
  70% {
    transform: translate3d(0, -0.5rem, 0);
  }
  90% {
    transform: translate3d(0, -0.2rem, 0);
  }
}

@keyframes gcb6-spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.gcb6-fade-in {
  animation: gcb6-fade-in 0.6s ease-out;
}

.gcb6-pulse {
  animation: gcb6-pulse 2s infinite;
}

.gcb6-bounce {
  animation: gcb6-bounce 2s infinite;
}

.gcb6-spin {
  animation: gcb6-spin 1s linear infinite;
}

/* Utility Classes */
.gcb6-mb-sm { margin-bottom: var(--gcb6-spacing-sm); }
.gcb6-mb-md { margin-bottom: var(--gcb6-spacing-md); }
.gcb6-mb-lg { margin-bottom: var(--gcb6-spacing-lg); }
.gcb6-mt-sm { margin-top: var(--gcb6-spacing-sm); }
.gcb6-mt-md { margin-top: var(--gcb6-spacing-md); }
.gcb6-mt-lg { margin-top: var(--gcb6-spacing-lg); }

.gcb6-p-sm { padding: var(--gcb6-spacing-sm); }
.gcb6-p-md { padding: var(--gcb6-spacing-md); }
.gcb6-p-lg { padding: var(--gcb6-spacing-lg); }

.gcb6-hidden { display: none !important; }
.gcb6-visible { display: block !important; }

.gcb6-loading {
  position: relative;
  pointer-events: none;
}

.gcb6-loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 2rem;
  height: 2rem;
  border: 0.2rem solid var(--gcb6-border);
  border-top: 0.2rem solid var(--gcb6-primary);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: gcb6-spin 1s linear infinite;
}

.gcb6-toast {
  position: fixed;
  bottom: 8rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gcb6-primary);
  color: var(--gcb6-dark);
  padding: var(--gcb6-spacing-sm) var(--gcb6-spacing-md);
  border-radius: var(--gcb6-radius-md);
  font-size: 1.4rem;
  z-index: 10000;
  box-shadow: var(--gcb6-shadow-lg);
}

/* Responsive Design */
@media (max-width: 430px) {
  .gcb6-container {
    padding: 0 var(--gcb6-spacing-sm);
  }

  .gcb6-section {
    padding: var(--gcb6-spacing-lg) 0;
  }

  .gcb6-card {
    padding: var(--gcb6-spacing-md);
  }

  .gcb6-game-grid {
    grid-template-columns: repeat(auto-fit, minmax(7rem, 1fr));
  }

  .gcb6-game-icon {
    width: 5rem;
    height: 5rem;
  }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
  :root {
    --gcb6-bg: #0F1419;
    --gcb6-text: #E8F5E8;
    --gcb6-text-secondary: #CED4DA;
  }
}

/* Print styles */
@media print {
  .gcb6-header,
  .gcb6-bottom-nav,
  .gcb6-mobile-menu,
  .gcb6-menu-overlay {
    display: none !important;
  }

  body {
    background: white;
    color: black;
  }
}