:root {
  /* Color palette */
  --gfc3-primary: #4B0082;
  --gfc3-secondary: #262626;
  --gfc3-accent: #8A2BE2;
  --gfc3-bg: #0F0F0F;
  --gfc3-surface: #1A1A1A;
  --gfc3-text: #E0E0E0;
  --gfc3-text-secondary: #B0B0B0;
  --gfc3-border: #333333;
  --gfc3-hover: #2A2A2A;
  --gfc3-success: #00FF7F;
  --gfc3-warning: #FFD700;
  --gfc3-error: #FF4444;

  /* Typography */
  --gfc3-font-primary: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --gfc3-font-mono: 'SF Mono', Monaco, 'Cascadia Code', monospace;

  /* Spacing */
  --gfc3-spacing-xs: 0.4rem;
  --gfc3-spacing-sm: 0.8rem;
  --gfc3-spacing-md: 1.6rem;
  --gfc3-spacing-lg: 2.4rem;
  --gfc3-spacing-xl: 3.2rem;

  /* Border radius */
  --gfc3-radius-sm: 0.4rem;
  --gfc3-radius-md: 0.8rem;
  --gfc3-radius-lg: 1.2rem;
  --gfc3-radius-full: 50%;

  /* Shadows */
  --gfc3-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --gfc3-shadow-md: 0 4px 6px rgba(0, 0, 0, 0.4);
  --gfc3-shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.5);

  /* Transitions */
  --gfc3-transition-fast: 0.15s ease;
  --gfc3-transition-normal: 0.3s ease;
  --gfc3-transition-slow: 0.5s ease;
}

/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 62.5%; /* 1rem = 10px */
  scroll-behavior: smooth;
}

body {
  font-family: var(--gfc3-font-primary);
  font-size: 1.6rem;
  line-height: 1.5;
  color: var(--gfc3-text);
  background-color: var(--gfc3-bg);
  overflow-x: hidden;
  max-width: 100vw;
}

/* Main container */
.gfc3-container {
  max-width: 430px;
  margin: 0 auto;
  padding: 0 var(--gfc3-spacing-sm);
  background-color: var(--gfc3-bg);
  min-height: 100vh;
}

.gfc3-wrapper {
  position: relative;
  width: 100%;
  min-height: 100vh;
  padding-bottom: 8rem; /* Space for bottom nav */
}

/* Header and Navigation */
.gfc3-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: linear-gradient(135deg, var(--gfc3-primary) 0%, var(--gfc3-accent) 100%);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--gfc3-border);
  box-shadow: var(--gfc3-shadow-md);
}

.gfc3-header-content {
  max-width: 430px;
  margin: 0 auto;
  padding: 1.2rem var(--gfc3-spacing-sm);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.gfc3-logo {
  display: flex;
  align-items: center;
  gap: var(--gfc3-spacing-xs);
  text-decoration: none;
  color: white;
  font-weight: 700;
  font-size: 1.8rem;
}

.gfc3-logo-icon {
  width: 2.8rem;
  height: 2.8rem;
  background: white;
  border-radius: var(--gfc3-radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--gfc3-primary);
}

.gfc3-header-actions {
  display: flex;
  align-items: center;
  gap: var(--gfc3-spacing-sm);
}

.gfc3-btn {
  padding: 0.8rem 1.6rem;
  border: none;
  border-radius: var(--gfc3-radius-md);
  font-size: 1.4rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--gfc3-transition-fast);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 4.4rem; /* Touch-friendly */
  min-width: 4.4rem;
  text-align: center;
  white-space: nowrap;
}

.gfc3-btn-primary {
  background: linear-gradient(135deg, var(--gfc3-success) 0%, #00CC66 100%);
  color: var(--gfc3-secondary);
  box-shadow: var(--gfc3-shadow-sm);
}

.gfc3-btn-primary:hover {
  background: linear-gradient(135deg, #00CC66 0%, #00AA55 100%);
  transform: translateY(-1px);
  box-shadow: var(--gfc3-shadow-md);
}

.gfc3-btn-secondary {
  background: transparent;
  color: white;
  border: 2px solid white;
}

.gfc3-btn-secondary:hover {
  background: white;
  color: var(--gfc3-primary);
}

.gfc3-hamburger {
  background: none;
  border: none;
  color: white;
  font-size: 2.4rem;
  cursor: pointer;
  padding: var(--gfc3-spacing-xs);
  border-radius: var(--gfc3-radius-sm);
  transition: all var(--gfc3-transition-fast);
}

.gfc3-hamburger:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* Mobile Menu */
.gfc3-mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  max-width: 320px;
  height: 100vh;
  background: var(--gfc3-surface);
  backdrop-filter: blur(20px);
  z-index: 9999;
  transition: right var(--gfc3-transition-normal);
  border-left: 1px solid var(--gfc3-border);
  overflow-y: auto;
}

.gfc3-mobile-menu.active {
  right: 0;
}

.gfc3-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(0, 0, 0, 0.7);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: all var(--gfc3-transition-normal);
}

.gfc3-menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

.gfc3-menu-header {
  padding: var(--gfc3-spacing-md);
  background: linear-gradient(135deg, var(--gfc3-primary) 0%, var(--gfc3-accent) 100%);
  color: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.gfc3-menu-close {
  background: none;
  border: none;
  color: white;
  font-size: 2.4rem;
  cursor: pointer;
  padding: var(--gfc3-spacing-xs);
  border-radius: var(--gfc3-radius-sm);
  transition: all var(--gfc3-transition-fast);
}

.gfc3-menu-close:hover {
  background: rgba(255, 255, 255, 0.1);
}

.gfc3-menu-nav {
  padding: var(--gfc3-spacing-md) 0;
}

.gfc3-menu-item {
  display: block;
  padding: var(--gfc3-spacing-sm) var(--gfc3-spacing-md);
  color: var(--gfc3-text);
  text-decoration: none;
  font-weight: 500;
  transition: all var(--gfc3-transition-fast);
  border-left: 3px solid transparent;
}

.gfc3-menu-item:hover {
  background: var(--gfc3-hover);
  color: var(--gfc3-success);
  border-left-color: var(--gfc3-success);
}

/* Carousel */
.gfc3-carousel {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
  border-radius: var(--gfc3-radius-lg);
  margin: var(--gfc3-spacing-md) 0;
  cursor: pointer;
  box-shadow: var(--gfc3-shadow-lg);
}

.gfc3-carousel-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity var(--gfc3-transition-normal);
}

.gfc3-carousel-image.active {
  opacity: 1;
}

.gfc3-carousel-indicators {
  position: absolute;
  bottom: var(--gfc3-spacing-sm);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: var(--gfc3-spacing-xs);
}

.gfc3-carousel-indicator {
  width: 8px;
  height: 8px;
  border-radius: var(--gfc3-radius-full);
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all var(--gfc3-transition-fast);
}

.gfc3-carousel-indicator.active {
  background: white;
  width: 24px;
  border-radius: 4px;
}

/* Game Grid */
.gfc3-game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  gap: var(--gfc3-spacing-sm);
  margin: var(--gfc3-spacing-md) 0;
}

.gfc3-game-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  cursor: pointer;
  transition: all var(--gfc3-transition-fast);
  text-decoration: none;
  padding: var(--gfc3-spacing-xs);
  border-radius: var(--gfc3-radius-md);
}

.gfc3-game-item:hover {
  transform: translateY(-2px);
  background: var(--gfc3-hover);
}

.gfc3-game-icon {
  width: 6rem;
  height: 6rem;
  border-radius: var(--gfc3-radius-lg);
  object-fit: cover;
  margin-bottom: var(--gfc3-spacing-xs);
  border: 2px solid var(--gfc3-border);
  transition: all var(--gfc3-transition-fast);
}

.gfc3-game-item:hover .gfc3-game-icon {
  border-color: var(--gfc3-success);
  box-shadow: 0 0 20px rgba(0, 255, 127, 0.3);
}

.gfc3-game-name {
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--gfc3-text);
  line-height: 1.2;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Content Sections */
.gfc3-section {
  margin: var(--gfc3-spacing-lg) 0;
  padding: var(--gfc3-spacing-md);
  background: var(--gfc3-surface);
  border-radius: var(--gfc3-radius-lg);
  border: 1px solid var(--gfc3-border);
}

.gfc3-section-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--gfc3-success);
  margin-bottom: var(--gfc3-spacing-md);
  text-align: center;
}

.gfc3-section-content {
  color: var(--gfc3-text-secondary);
  line-height: 1.6;
}

.gfc3-section-content p {
  margin-bottom: var(--gfc3-spacing-sm);
}

.gfc3-section-content a {
  color: var(--gfc3-success);
  text-decoration: none;
  font-weight: 600;
  transition: all var(--gfc3-transition-fast);
}

.gfc3-section-content a:hover {
  color: var(--gfc3-warning);
  text-decoration: underline;
}

/* Promotional Links */
.gfc3-promo-link {
  color: var(--gfc3-success);
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: all var(--gfc3-transition-fast);
}

.gfc3-promo-link:hover {
  color: var(--gfc3-warning);
  text-decoration: underline;
}

.gfc3-promo-btn {
  background: linear-gradient(135deg, var(--gfc3-success) 0%, #00CC66 100%);
  color: var(--gfc3-secondary);
  padding: var(--gfc3-spacing-sm) var(--gfc3-spacing-md);
  border-radius: var(--gfc3-radius-md);
  font-weight: 700;
  text-decoration: none;
  display: inline-block;
  margin: var(--gfc3-spacing-xs) 0;
  transition: all var(--gfc3-transition-fast);
  cursor: pointer;
  border: none;
  font-size: 1.4rem;
}

.gfc3-promo-btn:hover {
  background: linear-gradient(135deg, #00CC66 0%, #00AA55 100%);
  transform: translateY(-1px);
  box-shadow: var(--gfc3-shadow-md);
}

/* Footer */
.gfc3-footer {
  background: var(--gfc3-surface);
  border-top: 1px solid var(--gfc3-border);
  margin-top: var(--gfc3-spacing-xl);
  padding: var(--gfc3-spacing-md) 0;
}

.gfc3-footer-content {
  max-width: 430px;
  margin: 0 auto;
  padding: 0 var(--gfc3-spacing-sm);
}

.gfc3-footer-section {
  margin-bottom: var(--gfc3-spacing-md);
}

.gfc3-footer-title {
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--gfc3-success);
  margin-bottom: var(--gfc3-spacing-sm);
}

.gfc3-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--gfc3-spacing-sm);
  margin-bottom: var(--gfc3-spacing-md);
}

.gfc3-footer-link {
  color: var(--gfc3-text-secondary);
  text-decoration: none;
  font-size: 1.3rem;
  transition: all var(--gfc3-transition-fast);
}

.gfc3-footer-link:hover {
  color: var(--gfc3-success);
}

.gfc3-partners {
  display: flex;
  flex-wrap: wrap;
  gap: var(--gfc3-spacing-sm);
  justify-content: center;
  margin: var(--gfc3-spacing-md) 0;
}

.gfc3-partner-icon {
  width: 4rem;
  height: 4rem;
  object-fit: contain;
  opacity: 0.8;
  transition: all var(--gfc3-transition-fast);
}

.gfc3-partner-icon:hover {
  opacity: 1;
  transform: scale(1.1);
}

.gfc3-footer-bottom {
  text-align: center;
  padding-top: var(--gfc3-spacing-md);
  border-top: 1px solid var(--gfc3-border);
  color: var(--gfc3-text-secondary);
  font-size: 1.2rem;
}

/* Bottom Navigation */
.gfc3-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: linear-gradient(135deg, var(--gfc3-primary) 0%, var(--gfc3-accent) 100%);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--gfc3-border);
  padding: 0.8rem 0;
  box-shadow: 0 -4px 6px rgba(0, 0, 0, 0.3);
}

.gfc3-bottom-nav-content {
  max-width: 430px;
  margin: 0 auto;
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 0 var(--gfc3-spacing-sm);
}

.gfc3-bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 6rem;
  min-height: 5.6rem;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.7);
  transition: all var(--gfc3-transition-fast);
  cursor: pointer;
  border: none;
  background: none;
  padding: var(--gfc3-spacing-xs);
  border-radius: var(--gfc3-radius-md);
}

.gfc3-bottom-nav-item:hover,
.gfc3-bottom-nav-item.active {
  color: white;
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.gfc3-bottom-nav-icon {
  font-size: 2.4rem;
  margin-bottom: 0.2rem;
  transition: all var(--gfc3-transition-fast);
}

.gfc3-bottom-nav-item:hover .gfc3-bottom-nav-icon,
.gfc3-bottom-nav-item.active .gfc3-bottom-nav-icon {
  transform: scale(1.1);
}

.gfc3-bottom-nav-label {
  font-size: 1rem;
  font-weight: 500;
  text-align: center;
  line-height: 1.2;
}

/* Scroll to top button */
.gfc3-scroll-top {
  position: fixed;
  bottom: 8rem;
  right: var(--gfc3-spacing-sm);
  width: 4.4rem;
  height: 4.4rem;
  background: linear-gradient(135deg, var(--gfc3-success) 0%, #00CC66 100%);
  color: var(--gfc3-secondary);
  border: none;
  border-radius: var(--gfc3-radius-full);
  font-size: 2rem;
  cursor: pointer;
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: all var(--gfc3-transition-normal);
  box-shadow: var(--gfc3-shadow-lg);
}

.gfc3-scroll-top.visible {
  opacity: 1;
  visibility: visible;
}

.gfc3-scroll-top:hover {
  background: linear-gradient(135deg, #00CC66 0%, #00AA55 100%);
  transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 768px) {
  .gfc3-container {
    padding: 0 var(--gfc3-spacing-xs);
  }

  .gfc3-wrapper {
    padding-bottom: 8rem; /* Space for bottom nav */
  }

  .gfc3-bottom-nav {
    display: block;
  }

  .gfc3-game-grid {
    grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
    gap: var(--gfc3-spacing-xs);
  }

  .gfc3-game-icon {
    width: 5rem;
    height: 5rem;
  }

  .gfc3-section {
    margin: var(--gfc3-spacing-md) 0;
    padding: var(--gfc3-spacing-sm);
  }
}

@media (min-width: 769px) {
  .gfc3-bottom-nav {
    display: none;
  }

  .gfc3-wrapper {
    padding-bottom: 0;
  }

  .gfc3-container {
    max-width: 1200px;
  }

  .gfc3-game-grid {
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  }
}

/* Utility Classes */
.gfc3-text-center { text-align: center; }
.gfc3-text-left { text-align: left; }
.gfc3-text-right { text-align: right; }

.gfc3-mb-sm { margin-bottom: var(--gfc3-spacing-sm); }
.gfc3-mb-md { margin-bottom: var(--gfc3-spacing-md); }
.gfc3-mb-lg { margin-bottom: var(--gfc3-spacing-lg); }

.gfc3-mt-sm { margin-top: var(--gfc3-spacing-sm); }
.gfc3-mt-md { margin-top: var(--gfc3-spacing-md); }
.gfc3-mt-lg { margin-top: var(--gfc3-spacing-lg); }

.gfc3-flex { display: flex; }
.gfc3-flex-col { flex-direction: column; }
.gfc3-flex-center { align-items: center; justify-content: center; }
.gfc3-flex-between { align-items: center; justify-content: space-between; }

.gfc3-hidden { display: none; }
.gfc3-visible { display: block; }

/* Animation keyframes */
@keyframes gfc3-fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes gfc3-slideInRight {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}

@keyframes gfc3-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.gfc3-fade-in {
  animation: gfc3-fadeIn 0.6s ease-out;
}

.gfc3-pulse {
  animation: gfc3-pulse 2s infinite;
}