:root {
  /* Color palette */
  --gef9-primary: #FFB347;
  --gef9-secondary: #ADB5BD;
  --gef9-accent: #FFE135;
  --gef9-warning: #FF5722;
  --gef9-dark: #2E4057;
  --gef9-light: #F08080;
  --gef9-bg: #1a1a2e;
  --gef9-bg-light: #16213e;
  --gef9-bg-lighter: #0f3460;
  --gef9-text: #ffffff;
  --gef9-text-secondary: #b8b8b8;
  --gef9-border: rgba(255, 255, 255, 0.1);
  --gef9-shadow: rgba(0, 0, 0, 0.3);
  --gef9-gradient: linear-gradient(135deg, var(--gef9-primary), var(--gef9-warning));
  --gef9-success: #28a745;
  --gef9-error: #dc3545;
  --gef9-info: #17a2b8;
}

/* 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.6;
  color: var(--gef9-text);
  background: var(--gef9-bg);
  background: linear-gradient(135deg, var(--gef9-bg) 0%, var(--gef9-bg-light) 100%);
  min-height: 100vh;
  overflow-x: hidden;
}

body.loaded {
  opacity: 1;
  transition: opacity 0.3s ease;
}

/* Typography */
.gef9-h1 {
  font-size: 3.2rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  background: var(--gef9-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gef9-h2 {
  font-size: 2.4rem;
  font-weight: 600;
  margin-bottom: 1.2rem;
  color: var(--gef9-primary);
}

.gef9-h3 {
  font-size: 2rem;
  font-weight: 500;
  margin-bottom: 1rem;
  color: var(--gef9-accent);
}

.gef9-p {
  font-size: 1.6rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
  color: var(--gef9-text-secondary);
}

/* Layout containers */
.gef9-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.gef9-row {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -1rem;
}

.gef9-col {
  flex: 1;
  padding: 0 1rem;
}

/* Header */
.gef9-header {
  background: var(--gef9-bg-light);
  backdrop-filter: blur(10px);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  border-bottom: 1px solid var(--gef9-border);
  box-shadow: 0 2px 20px var(--gef9-shadow);
}

.gef9-header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 0;
}

.gef9-logo {
  display: flex;
  align-items: center;
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--gef9-primary);
  text-decoration: none;
  transition: color 0.3s ease;
}

.gef9-logo:hover {
  color: var(--gef9-accent);
}

.gef9-logo-icon {
  width: 4rem;
  height: 4rem;
  margin-right: 1rem;
  background: var(--gef9-gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
}

/* Navigation */
.gef9-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.gef9-menu-toggle {
  background: none;
  border: none;
  color: var(--gef9-text);
  font-size: 2.4rem;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 0.5rem;
  transition: all 0.3s ease;
  display: none;
}

.gef9-menu-toggle:hover {
  background: var(--gef9-bg-lighter);
  transform: scale(1.1);
}

.gef9-nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.gef9-nav-link {
  color: var(--gef9-text);
  text-decoration: none;
  font-weight: 500;
  padding: 0.8rem 1.5rem;
  border-radius: 2.5rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.gef9-nav-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--gef9-gradient);
  transition: left 0.3s ease;
  z-index: -1;
}

.gef9-nav-link:hover::before {
  left: 0;
}

.gef9-nav-link:hover {
  color: var(--gef9-dark);
  transform: translateY(-2px);
}

/* Button styles */
.gef9-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1.2rem 2.5rem;
  border: none;
  border-radius: 2.5rem;
  font-size: 1.6rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  min-height: 4.4rem;
  min-width: 10rem;
  position: relative;
  overflow: hidden;
}

.gef9-btn-primary {
  background: var(--gef9-gradient);
  color: var(--gef9-dark);
  box-shadow: 0 4px 15px rgba(255, 179, 71, 0.4);
}

.gef9-btn-primary:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 8px 25px rgba(255, 179, 71, 0.6);
}

.gef9-btn-secondary {
  background: var(--gef9-secondary);
  color: var(--gef9-text);
  border: 2px solid var(--gef9-border);
}

.gef9-btn-secondary:hover {
  background: var(--gef9-primary);
  color: var(--gef9-dark);
  transform: translateY(-2px);
}

/* Mobile menu */
.gef9-mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  max-width: 400px;
  height: 100vh;
  background: var(--gef9-bg-light);
  backdrop-filter: blur(20px);
  z-index: 9999;
  transition: right 0.3s ease;
  padding: 2rem;
  overflow-y: auto;
}

.gef9-mobile-menu.active {
  right: 0;
}

.gef9-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--gef9-border);
}

.gef9-menu-close {
  background: none;
  border: none;
  color: var(--gef9-text);
  font-size: 2.4rem;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 0.5rem;
  transition: all 0.3s ease;
}

.gef9-menu-close:hover {
  background: var(--gef9-error);
  transform: rotate(90deg);
}

.gef9-mobile-nav {
  list-style: none;
}

.gef9-mobile-nav-item {
  margin-bottom: 1rem;
}

.gef9-mobile-nav-link {
  display: block;
  padding: 1.5rem;
  color: var(--gef9-text);
  text-decoration: none;
  border-radius: 1rem;
  transition: all 0.3s ease;
  font-size: 1.8rem;
  font-weight: 500;
}

.gef9-mobile-nav-link:hover {
  background: var(--gef9-bg-lighter);
  color: var(--gef9-primary);
  transform: translateX(1rem);
}

.gef9-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.gef9-menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Main content */
.gef9-main {
  margin-top: 8rem;
  min-height: calc(100vh - 8rem);
}

@media (max-width: 768px) {
  .gef9-main {
    padding-bottom: 8rem;
  }
}

/* Carousel */
.gef9-carousel {
  position: relative;
  width: 100%;
  height: 300px;
  overflow: hidden;
  border-radius: 2rem;
  margin-bottom: 3rem;
  box-shadow: 0 10px 30px var(--gef9-shadow);
}

.gef9-carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease;
  cursor: pointer;
}

.gef9-carousel-slide.active {
  opacity: 1;
}

.gef9-carousel-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gef9-carousel-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 3rem 2rem 2rem;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  color: white;
}

.gef9-carousel-title {
  font-size: 2.8rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.gef9-carousel-description {
  font-size: 1.6rem;
  margin-bottom: 2rem;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.gef9-carousel-controls {
  position: absolute;
  bottom: 2rem;
  right: 2rem;
  display: flex;
  gap: 1rem;
}

.gef9-carousel-btn {
  background: rgba(255, 255, 255, 0.2);
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: white;
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.gef9-carousel-btn:hover {
  background: var(--gef9-primary);
  border-color: var(--gef9-primary);
  transform: scale(1.1);
}

.gef9-carousel-dots {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 1rem;
}

.gef9-carousel-dot {
  width: 1.2rem;
  height: 1.2rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: all 0.3s ease;
}

.gef9-carousel-dot.active {
  background: var(--gef9-primary);
  transform: scale(1.2);
}

/* Game grid */
.gef9-game-section {
  margin-bottom: 4rem;
}

.gef9-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
}

.gef9-section-title {
  font-size: 2.4rem;
  font-weight: 600;
  color: var(--gef9-primary);
  display: flex;
  align-items: center;
  gap: 1rem;
}

.gef9-section-icon {
  font-size: 2.8rem;
  color: var(--gef9-accent);
}

.gef9-game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.gef9-game-card {
  background: var(--gef9-bg-light);
  border-radius: 1.5rem;
  overflow: hidden;
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  border: 2px solid transparent;
}

.gef9-game-card:hover {
  transform: translateY(-5px) scale(1.02);
  border-color: var(--gef9-primary);
  box-shadow: 0 15px 40px rgba(255, 179, 71, 0.3);
}

.gef9-game-image {
  width: 100%;
  height: 150px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.gef9-game-card:hover .gef9-game-image {
  transform: scale(1.1);
}

.gef9-game-info {
  padding: 1.5rem;
}

.gef9-game-name {
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--gef9-text);
  margin-bottom: 0.5rem;
  text-align: center;
}

.gef9-game-category {
  font-size: 1.2rem;
  color: var(--gef9-text-secondary);
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.gef9-game-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--gef9-gradient);
  opacity: 0;
  transition: opacity 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gef9-game-card:hover .gef9-game-overlay {
  opacity: 0.9;
}

.gef9-play-btn {
  background: white;
  color: var(--gef9-dark);
  padding: 1rem 2rem;
  border-radius: 2.5rem;
  font-weight: 600;
  font-size: 1.4rem;
  transform: scale(0.8);
  transition: all 0.3s ease;
}

.gef9-game-card:hover .gef9-play-btn {
  transform: scale(1);
}

/* Content sections */
.gef9-content-section {
  background: var(--gef9-bg-light);
  border-radius: 2rem;
  padding: 3rem;
  margin-bottom: 3rem;
  border: 1px solid var(--gef9-border);
}

.gef9-feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 3rem;
  margin-top: 3rem;
}

.gef9-feature-card {
  background: var(--gef9-bg-lighter);
  border-radius: 1.5rem;
  padding: 2.5rem;
  text-align: center;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.gef9-feature-card:hover {
  transform: translateY(-5px);
  border-color: var(--gef9-primary);
  box-shadow: 0 10px 30px rgba(255, 179, 71, 0.2);
}

.gef9-feature-icon {
  font-size: 4rem;
  color: var(--gef9-primary);
  margin-bottom: 1.5rem;
}

.gef9-feature-title {
  font-size: 2rem;
  font-weight: 600;
  color: var(--gef9-text);
  margin-bottom: 1rem;
}

.gef9-feature-description {
  color: var(--gef9-text-secondary);
  line-height: 1.6;
}

/* FAQ section */
.gef9-faq-item {
  background: var(--gef9-bg-lighter);
  border-radius: 1rem;
  margin-bottom: 1.5rem;
  overflow: hidden;
  border: 1px solid var(--gef9-border);
}

.gef9-faq-question {
  padding: 2rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  color: var(--gef9-text);
  transition: all 0.3s ease;
}

.gef9-faq-question:hover {
  background: var(--gef9-bg-light);
  color: var(--gef9-primary);
}

.gef9-faq-answer {
  padding: 0 2rem;
  max-height: 0;
  overflow: hidden;
  transition: all 0.3s ease;
  color: var(--gef9-text-secondary);
}

.gef9-faq-item.active .gef9-faq-answer {
  padding: 2rem;
  max-height: 500px;
}

.gef9-faq-toggle {
  font-size: 1.8rem;
  transition: transform 0.3s ease;
}

.gef9-faq-item.active .gef9-faq-toggle {
  transform: rotate(180deg);
}

/* Footer */
.gef9-footer {
  background: var(--gef9-bg-light);
  border-top: 1px solid var(--gef9-border);
  padding: 4rem 0 2rem;
  margin-top: 5rem;
}

.gef9-footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
}

.gef9-footer-section h3 {
  color: var(--gef9-primary);
  margin-bottom: 1.5rem;
  font-size: 1.8rem;
}

.gef9-footer-links {
  list-style: none;
}

.gef9-footer-links li {
  margin-bottom: 0.8rem;
}

.gef9-footer-links a {
  color: var(--gef9-text-secondary);
  text-decoration: none;
  transition: color 0.3s ease;
}

.gef9-footer-links a:hover {
  color: var(--gef9-primary);
}

.gef9-partners {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
  margin: 3rem 0;
}

.gef9-partner-logo {
  width: 8rem;
  height: 4rem;
  object-fit: contain;
  filter: grayscale(100%) brightness(150%);
  transition: all 0.3s ease;
}

.gef9-partner-logo:hover {
  filter: grayscale(0%) brightness(100%);
  transform: scale(1.1);
}

.gef9-footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid var(--gef9-border);
  color: var(--gef9-text-secondary);
  font-size: 1.4rem;
}

/* Bottom navigation */
.gef9-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--gef9-bg-light);
  backdrop-filter: blur(20px);
  border-top: 1px solid var(--gef9-border);
  z-index: 1000;
  padding: 1rem 0;
  display: none;
}

.gef9-bottom-nav-content {
  display: flex;
  justify-content: space-around;
  align-items: center;
  max-width: 430px;
  margin: 0 auto;
}

.gef9-bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: var(--gef9-text-secondary);
  padding: 0.5rem 1rem;
  border-radius: 1rem;
  transition: all 0.3s ease;
  min-width: 6rem;
  min-height: 6rem;
  justify-content: center;
}

.gef9-bottom-nav-item:hover,
.gef9-bottom-nav-item.active {
  color: var(--gef9-primary);
  background: var(--gef9-bg-lighter);
  transform: translateY(-2px);
}

.gef9-bottom-nav-icon {
  font-size: 2.4rem;
  margin-bottom: 0.5rem;
  transition: all 0.3s ease;
}

.gef9-bottom-nav-item:hover .gef9-bottom-nav-icon {
  transform: scale(1.2);
}

.gef9-bottom-nav-label {
  font-size: 1rem;
  font-weight: 500;
  text-align: center;
}

/* Responsive design */
@media (max-width: 768px) {
  .gef9-menu-toggle {
    display: block;
  }

  .gef9-nav-links {
    display: none;
  }

  .gef9-bottom-nav {
    display: block;
  }

  .gef9-container {
    padding: 0 1.5rem;
  }

  .gef9-h1 {
    font-size: 2.8rem;
  }

  .gef9-h2 {
    font-size: 2.2rem;
  }

  .gef9-carousel {
    height: 250px;
    border-radius: 1.5rem;
  }

  .gef9-game-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1.5rem;
  }

  .gef9-game-image {
    height: 120px;
  }

  .gef9-feature-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .gef9-content-section {
    padding: 2rem;
  }

  .gef9-footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .gef9-partners {
    gap: 1.5rem;
  }

  .gef9-partner-logo {
    width: 6rem;
    height: 3rem;
  }
}

@media (max-width: 480px) {
  .gef9-h1 {
    font-size: 2.4rem;
  }

  .gef9-h2 {
    font-size: 2rem;
  }

  .gef9-carousel {
    height: 200px;
  }

  .gef9-carousel-title {
    font-size: 2.2rem;
  }

  .gef9-game-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gef9-btn {
    padding: 1rem 2rem;
    font-size: 1.4rem;
    min-height: 4rem;
  }

  .gef9-bottom-nav-icon {
    font-size: 2rem;
  }

  .gef9-bottom-nav-label {
    font-size: 0.9rem;
  }
}

/* Animations */
@keyframes gef9FadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes gef9SlideIn {
  from {
    transform: translateX(-100%);
  }
  to {
    transform: translateX(0);
  }
}

@keyframes gef9Bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}

.gef9-fade-in {
  animation: gef9FadeIn 0.6s ease-out;
}

.gef9-slide-in {
  animation: gef9SlideIn 0.6s ease-out;
}

.gef9-bounce {
  animation: gef9Bounce 0.6s ease-in-out;
}

/* Loading states */
.gef9-loading {
  position: relative;
  overflow: hidden;
}

.gef9-loading::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  animation: loading 1.5s infinite;
}

@keyframes loading {
  0% {
    left: -100%;
  }
  100% {
    left: 100%;
  }
}

/* Accessibility */
.gef9-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Focus styles */
.gef9-btn:focus,
.gef9-nav-link:focus,
.gef9-game-card:focus {
  outline: 2px solid var(--gef9-primary);
  outline-offset: 2px;
}

/* Print styles */
@media print {
  .gef9-header,
  .gef9-footer,
  .gef9-bottom-nav,
  .gef9-carousel-controls {
    display: none !important;
  }

  .gef9-main {
    margin-top: 0;
  }
}