:root {
  --primary-color: #DEB887;
  --secondary-color: #34495E;
  --accent-color: #7FFF00;
  --dark-color: #006400;
  --text-light: #ffffff;
  --text-dark: #333333;
  --bg-light: #f5f5f5;
  --bg-dark: #2c3e50;
  --border-color: #ddd;
  --shadow: 0 2px 10px rgba(0,0,0,0.1);
  --shadow-hover: 0 4px 20px rgba(0,0,0,0.15);
  --gradient-primary: linear-gradient(135deg, #DEB887 0%, #7FFF00 100%);
  --gradient-secondary: linear-gradient(135deg, #34495E 0%, #006400 100%);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--bg-light);
  overflow-x: hidden;
}

.g5d4-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

/* Header Styles */
.g5d4-header {
  background: var(--gradient-secondary);
  color: var(--text-light);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  box-shadow: var(--shadow);
}

.g5d4-header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
}

.g5d4-logo {
  font-size: 24px;
  font-weight: bold;
  color: var(--primary-color);
  text-decoration: none;
}

.g5d4-nav {
  display: flex;
  gap: 30px;
  align-items: center;
}

.g5d4-nav-link {
  color: var(--text-light);
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 25px;
  transition: all 0.3s ease;
  position: relative;
}

.g5d4-nav-link:hover {
  background-color: rgba(255,255,255,0.1);
  color: var(--primary-color);
}

.g5d4-header-buttons {
  display: flex;
  gap: 15px;
}

.g5d4-btn {
  padding: 10px 20px;
  border: none;
  border-radius: 25px;
  cursor: pointer;
  font-size: 14px;
  font-weight: bold;
  text-transform: uppercase;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
  text-align: center;
}

.g5d4-btn-primary {
  background: var(--gradient-primary);
  color: var(--text-dark);
}

.g5d4-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.g5d4-btn-secondary {
  background: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.g5d4-btn-secondary:hover {
  background: var(--primary-color);
  color: var(--text-dark);
}

.g5d4-mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-light);
  font-size: 24px;
  cursor: pointer;
}

/* Mobile Menu */
.g5d4-mobile-menu {
  position: fixed;
  top: 0;
  right: -300px;
  width: 300px;
  height: 100vh;
  background: var(--gradient-secondary);
  z-index: 9999;
  transition: right 0.3s ease;
  padding: 80px 20px 20px;
}

.g5d4-mobile-menu.g5d4-active {
  right: 0;
}

.g5d4-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.g5d4-menu-overlay.g5d4-active {
  opacity: 1;
  visibility: visible;
}

.g5d4-mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.g5d4-mobile-nav-link {
  color: var(--text-light);
  text-decoration: none;
  padding: 15px;
  border-radius: 10px;
  transition: all 0.3s ease;
  border-left: 3px solid transparent;
}

.g5d4-mobile-nav-link:hover {
  background-color: rgba(255,255,255,0.1);
  border-left-color: var(--primary-color);
  color: var(--primary-color);
}

/* Main Content */
.g5d4-main {
  margin-top: 80px;
  min-height: calc(100vh - 80px);
}

@media (max-width: 768px) {
  .g5d4-main {
    padding-bottom: 80px;
  }
}

/* Carousel Styles */
.g5d4-carousel-container {
  position: relative;
  width: 100%;
  height: 300px;
  overflow: hidden;
  border-radius: 15px;
  margin-bottom: 30px;
}

.g5d4-carousel-slide {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.g5d4-carousel-slide.g5d4-active {
  opacity: 1;
}

.g5d4-carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.g5d4-carousel-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.8));
  color: var(--text-light);
  padding: 30px;
}

.g5d4-carousel-title {
  font-size: 28px;
  font-weight: bold;
  margin-bottom: 10px;
}

.g5d4-carousel-description {
  font-size: 16px;
  opacity: 0.9;
}

.g5d4-carousel-controls {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 0 20px;
}

.g5d4-carousel-btn {
  background: rgba(255,255,255,0.2);
  border: none;
  color: var(--text-light);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 18px;
  transition: all 0.3s ease;
}

.g5d4-carousel-btn:hover {
  background: var(--primary-color);
  color: var(--text-dark);
}

/* Section Styles */
.g5d4-section {
  margin-bottom: 50px;
}

.g5d4-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
}

.g5d4-section-title {
  font-size: 24px;
  font-weight: bold;
  color: var(--secondary-color);
  position: relative;
  padding-left: 15px;
}

.g5d4-section-title::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 20px;
  background: var(--gradient-primary);
  border-radius: 2px;
}

.g5d4-section-more {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.g5d4-section-more:hover {
  color: var(--accent-color);
}

/* Game Grid */
.g5d4-games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 20px;
}

.g5d4-game-card {
  background: var(--text-light);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
}

.g5d4-game-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.g5d4-game-card.g5d4-hover .g5d4-game-overlay {
  opacity: 1;
}

.g5d4-game-image {
  width: 100%;
  height: 120px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.g5d4-game-card:hover .g5d4-game-image {
  transform: scale(1.05);
}

.g5d4-game-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.g5d4-game-play-btn {
  background: var(--gradient-primary);
  border: none;
  color: var(--text-dark);
  padding: 10px 20px;
  border-radius: 25px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
}

.g5d4-game-play-btn:hover {
  transform: scale(1.05);
}

.g5d4-game-info {
  padding: 15px;
  text-align: center;
}

.g5d4-game-name {
  font-size: 14px;
  font-weight: bold;
  color: var(--text-dark);
  margin-bottom: 5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.g5d4-game-category {
  font-size: 12px;
  color: var(--secondary-color);
  text-transform: uppercase;
}

/* Content Sections */
.g5d4-content-section {
  background: var(--text-light);
  border-radius: 15px;
  padding: 30px;
  margin-bottom: 30px;
  box-shadow: var(--shadow);
}

.g5d4-content-title {
  font-size: 20px;
  font-weight: bold;
  color: var(--secondary-color);
  margin-bottom: 15px;
}

.g5d4-content-text {
  color: var(--text-dark);
  line-height: 1.8;
  margin-bottom: 15px;
}

.g5d4-content-list {
  list-style: none;
  padding-left: 0;
}

.g5d4-content-list li {
  padding: 8px 0;
  padding-left: 20px;
  position: relative;
}

.g5d4-content-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent-color);
  font-weight: bold;
}

/* Bottom Navigation */
.g5d4-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--gradient-secondary);
  display: flex;
  justify-content: space-around;
  align-items: center;
  height: 60px;
  z-index: 1000;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
}

@media (min-width: 769px) {
  .g5d4-bottom-nav {
    display: none;
  }
}

.g5d4-bottom-nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 60px;
  color: var(--text-light);
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
  cursor: pointer;
}

.g5d4-bottom-nav-item:hover,
.g5d4-bottom-nav-item.g5d4-active {
  color: var(--primary-color);
  background: rgba(255,255,255,0.1);
}

.g5d4-bottom-nav-icon {
  font-size: 20px;
  margin-bottom: 2px;
}

.g5d4-bottom-nav-text {
  font-size: 10px;
  font-weight: bold;
  text-transform: uppercase;
}

/* Footer */
.g5d4-footer {
  background: var(--bg-dark);
  color: var(--text-light);
  padding: 40px 0 20px;
  margin-top: 50px;
}

.g5d4-footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-bottom: 30px;
}

.g5d4-footer-section h3 {
  color: var(--primary-color);
  margin-bottom: 15px;
  font-size: 18px;
}

.g5d4-footer-links {
  list-style: none;
}

.g5d4-footer-links li {
  margin-bottom: 8px;
}

.g5d4-footer-links a {
  color: var(--text-light);
  text-decoration: none;
  transition: color 0.3s ease;
}

.g5d4-footer-links a:hover {
  color: var(--primary-color);
}

.g5d4-partners {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}

.g5d4-partner-icon {
  width: 60px;
  height: 60px;
  object-fit: contain;
  filter: grayscale(100%);
  transition: filter 0.3s ease;
}

.g5d4-partner-icon:hover {
  filter: grayscale(0%);
}

.g5d4-footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.7);
  font-size: 14px;
}

/* Responsive Design */
@media (max-width: 768px) {
  .g5d4-header-content {
    padding: 10px 0;
  }

  .g5d4-nav {
    display: none;
  }

  .g5d4-header-buttons {
    display: none;
  }

  .g5d4-mobile-menu-toggle {
    display: block;
  }

  .g5d4-carousel-container {
    height: 200px;
    margin-bottom: 20px;
  }

  .g5d4-carousel-title {
    font-size: 20px;
  }

  .g5d4-section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .g5d4-games-grid {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 15px;
  }

  .g5d4-game-image {
    height: 100px;
  }

  .g5d4-content-section {
    padding: 20px;
  }

  .g5d4-footer-content {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .g5d4-partners {
    gap: 15px;
  }

  .g5d4-partner-icon {
    width: 50px;
    height: 50px;
  }
}

@media (max-width: 480px) {
  .g5d4-container {
    padding: 0 10px;
  }

  .g5d4-carousel-container {
    height: 180px;
  }

  .g5d4-games-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }

  .g5d4-game-image {
    height: 90px;
  }

  .g5d4-section-title {
    font-size: 20px;
  }
}

/* Utility Classes */
.g5d4-text-center {
  text-align: center;
}

.g5d4-text-primary {
  color: var(--primary-color);
}

.g5d4-text-secondary {
  color: var(--secondary-color);
}

.g5d4-bg-primary {
  background-color: var(--primary-color);
}

.g5d4-bg-secondary {
  background-color: var(--secondary-color);
}

.g5d4-mb-20 {
  margin-bottom: 20px;
}

.g5d4-mt-20 {
  margin-top: 20px;
}

.g5d4-p-20 {
  padding: 20px;
}

/* Loading States */
.g5d4-loading {
  opacity: 0.6;
  pointer-events: none;
}

.g5d4-loaded {
  opacity: 1;
  transition: opacity 0.3s ease;
}

/* Promotional Links */
.g5d4-promo-link {
  cursor: pointer;
  transition: all 0.3s ease;
}

.g5d4-promo-link:hover {
  transform: scale(1.02);
}

/* Animations */
@keyframes g5d4-fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.g5d4-fade-in {
  animation: g5d4-fadeIn 0.6s ease-out;
}

@keyframes g5d4-pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

.g5d4-pulse {
  animation: g5d4-pulse 2s infinite;
}