/* Import fonts */
@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700&display=swap');

:root {
  --primary: #10b981;
  --primary-dark: #047857;
  --bg: #10151c;
  --surface: #18202b;
  --card: #1a232e;
  --text: #f3f4f6;
  --text-muted: #8ca3b8;
  --border: #22303c;
  --shadow: 0 2px 8px rgba(0,0,0,0.18);
  --header-height: 58px;
  --font: 'Nunito', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; }
body {
  background: linear-gradient(135deg, #10151c 0%, #0f172a 25%, #10151c 50%, #0f172a 75%, #10151c 100%);
  background-size: 300% 300%;
  animation: subtleBackgroundFlow 25s ease infinite;
  color: var(--text);
  font-family: var(--font);
  min-height: 100vh;
  padding-top: var(--header-height);
  position: relative;
}

/* Subtle floating background effects */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 20% 30%, rgba(16, 185, 129, 0.02) 0%, transparent 60%),
    radial-gradient(circle at 80% 70%, rgba(16, 185, 129, 0.015) 0%, transparent 60%),
    radial-gradient(circle at 40% 90%, rgba(16, 185, 129, 0.01) 0%, transparent 50%);
  animation: gentleFloat 30s ease-in-out infinite;
  pointer-events: none;
  z-index: -1;
}

/* Smooth background gradient animation */
@keyframes subtleBackgroundFlow {
  0%, 100% { 
    background-position: 0% 50%;
  }
  25% { 
    background-position: 100% 0%;
  }
  50% { 
    background-position: 100% 100%;
  }
  75% { 
    background-position: 0% 100%;
  }
}

/* Gentle floating lights */
@keyframes gentleFloat {
  0%, 100% { 
    transform: translateY(0px) translateX(0px) scale(1);
    opacity: 0.4;
  }
  33% { 
    transform: translateY(-15px) translateX(10px) scale(1.05);
    opacity: 0.2;
  }
  66% { 
    transform: translateY(5px) translateX(-8px) scale(0.95);
    opacity: 0.6;
  }
}

a { color: var(--primary); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--primary-dark); }
img { display: block; max-width: 100%; height: auto; }

.container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 1.2rem;
}

/* Header */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 60px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  z-index: 100;
  display: flex;
  align-items: center;
  padding: 0;
}
.site-header__container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 1.2rem;
}
.site-header__logo {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

/* Modern Logo Styling for Desktop */
.site-header__logo a {
  font-size: 2rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary) 0%, #06d6a0 50%, var(--primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-shadow: 0 0 30px rgba(16, 185, 129, 0.3);
  filter: drop-shadow(0 2px 4px rgba(16, 185, 129, 0.2));
}

/* Modern glow effect on hover for desktop */
.site-header__logo a:hover {
  transform: translateY(-1px);
  filter: drop-shadow(0 4px 8px rgba(16, 185, 129, 0.4)) 
          drop-shadow(0 0 20px rgba(16, 185, 129, 0.3));
  background: linear-gradient(135deg, #06d6a0 0%, var(--primary) 50%, #06d6a0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Modern logo image styling for desktop */
.site-logo {
  height: 32px;
  width: auto;
  max-width: 150px;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(16, 185, 129, 0.3)) 
          brightness(1.1) 
          contrast(1.1);
  transition: all 0.3s ease;
}

.site-header__logo a:hover .site-logo {
  filter: drop-shadow(0 4px 12px rgba(16, 185, 129, 0.5)) 
          drop-shadow(0 0 15px rgba(16, 185, 129, 0.2))
          brightness(1.2) 
          contrast(1.2);
  transform: scale(1.02);
}

.site-header__nav {
  display: flex;
  gap: 0.5rem;
}
.site-header__nav-link {
  color: var(--text-muted);
  font-weight: 600;
  padding: 0.4rem 1rem;
  border-radius: 4px;
  transition: background 0.18s, color 0.18s;
}
.site-header__nav-link.active, .site-header__nav-link:hover {
  background: var(--primary);
  color: #fff;
}

/* Help & Info Dropdown - Desktop Only */
.help-info-dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
}

.dropdown-toggle i {
  transition: transform 0.3s ease;
  font-size: 0.8rem;
}

.help-info-dropdown:hover .dropdown-toggle i {
  transform: rotate(180deg);
}

/* Make sure dropdown is hidden by default */
.help-info-dropdown .dropdown-menu {
  position: absolute !important;
  top: 100% !important;
  right: 0 !important;
  background: var(--surface) !important;
  border: 1px solid var(--border) !important;
  border-radius: 8px !important;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25) !important;
  min-width: 200px !important;
  opacity: 0 !important;
  visibility: hidden !important;
  transform: translateY(-10px) !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  z-index: 1000 !important;
  padding: 0.5rem 0 !important;
  backdrop-filter: blur(10px) !important;
  display: block !important;
  pointer-events: none !important;
}

/* Show dropdown on hover */
.help-info-dropdown:hover .dropdown-menu {
  opacity: 1 !important;
  visibility: visible !important;
  transform: translateY(0) !important;
  pointer-events: auto !important;
}

.dropdown-item {
  display: block;
  padding: 0.75rem 1.5rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: all 0.2s ease;
  font-weight: 500;
  border-left: 3px solid transparent;
}

.dropdown-item:hover {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(6, 214, 160, 0.05) 100%);
  color: var(--primary);
  border-left-color: var(--primary);
  transform: translateX(3px);
}

/* Dropdown menu styling only - no forced hiding */

/* Show dropdown only on hover - Desktop only */
@media (min-width: 801px) {
  .help-info-dropdown:hover .dropdown-menu {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    display: block !important;
  }
}

/* Completely hide dropdown on tablets and mobile */
@media (max-width: 800px) {
  .help-info-dropdown {
    display: none !important;
  }
  
  .help-info-dropdown .dropdown-menu {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
  }
}

.site-header__search {
  width: 220px;
  position: relative;
}
.search-input {
  width: 100%;
  padding: 0.5rem 1rem 0.5rem 2.2rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  color: var(--text);
  font-size: 1rem;
}
.search-input::placeholder { color: var(--text-muted); }
.search-icon {
  position: absolute;
  left: 0.8rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 1rem;
}
.mobile-menu-btn { display: none; background: none; border: none; color: var(--primary); font-size: 1.6rem; cursor: pointer; }

/* CRITICAL: Force hide mobile help button on ALL desktop screens */
@media (min-width: 801px) {
  .mobile-help-btn {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
    position: absolute !important;
    left: -9999px !important;
  }
}

/* Mobile Help & Info Button - FORCE HIDE on desktop, visible only on mobile */
.mobile-help-btn {
  display: none !important; /* Completely hidden on desktop */
}

/* ULTIMATE DESKTOP HIDE - Multiple approaches to ensure mobile button never shows on desktop */
@media screen and (min-width: 801px) {
  .mobile-help-btn {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
    position: fixed !important;
    left: -9999px !important;
    top: -9999px !important;
    width: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
  }
}

/* Force hide on desktop screens - Multiple selectors for higher specificity */
@media (min-width: 801px) {
  .mobile-help-btn,
  .site-header .mobile-help-btn,
  .site-header__container .mobile-help-btn {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
    position: absolute !important;
    left: -9999px !important;
    top: -9999px !important;
  }
}

@media (max-width: 800px) {
  .mobile-help-btn {
    display: flex !important;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2) 0%, rgba(6, 214, 160, 0.1) 100%);
    border: 2px solid rgba(16, 185, 129, 0.3);
    border-radius: 10px;
    width: 42px;
    height: 42px;
    color: #00ff88;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 999;
    overflow: hidden;
  }
  
  .mobile-help-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.1) 0%, rgba(6, 214, 160, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
  }
  
  .mobile-help-btn:hover::before {
    opacity: 1;
  }
  
  .mobile-help-btn:hover {
    transform: translateY(-52px) scale(1.05);
    border-color: rgba(0, 255, 136, 0.5);
    box-shadow: 0 8px 25px rgba(0, 255, 136, 0.3);
    color: #00ff88;
  }
  
  .mobile-help-btn:active {
    transform: translateY(-50%) scale(0.98);
    transition: transform 0.1s ease;
  }
  
  .mobile-help-btn i {
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 0 8px rgba(0, 255, 136, 0.3));
  }
}

/* Main Content */
.main-content { padding: 2.2rem 0 1.5rem 0; }

.section-title {
  font-size: 2.1rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 2rem;
  letter-spacing: 0.5px;
}

/* Games Grid - Normal Compact Design */
.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 0.8rem;
}

.games-grid.games-main-grid {
  margin-bottom: 2.5rem;
}

/* Game Card Wrapper - Contains card and external title */
.game-card {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transition: transform 0.18s;
}

.game-card:hover {
  transform: translateY(-4px);
}

/* Game Card Inner - Just the image container */
.game-card__inner {
  background: var(--card);
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(16,185,129,0.06);
  transition: transform 0.18s, box-shadow 0.18s;
  overflow: hidden;
  position: relative;
  aspect-ratio: 1 / 1; /* Square card */
}

.game-card:hover .game-card__inner {
  box-shadow: 0 8px 25px rgba(16,185,129,0.12);
}

.game-card__link {
  text-decoration: none;
  color: inherit;
  display: block;
  position: relative;
  width: 100%;
  height: 100%;
}

.game-card__image-container {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 100%;
}

.game-card__image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.game-card:hover .game-card__image-container img {
  transform: scale(1.05);
}

/* Hide the old content div inside main grid cards only */
div#main-games.games-grid .game-card__content {
  display: none !important;
}

/* Show content for category-page-grid games */
.games-grid.category-page-grid .game-card__content {
  display: block !important;
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.8));
  padding: 1.5rem 0.6rem 0.6rem 0.6rem;
  color: white;
}

.games-grid.category-page-grid .game-card__title {
  font-size: 0.85rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 0.3rem 0;
  line-height: 1.2;
  text-shadow: 0 1px 3px rgba(0,0,0,0.8);
}

.games-grid.category-page-grid .game-card__category {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.7);
  text-transform: lowercase;
  letter-spacing: 0.02em;
  margin: 0;
}

.games-grid.category-page-grid .game-card__play-btn {
  display: none;
}

/* Image placeholder styling for broken images */
.game-card__placeholder {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--card);
  color: var(--primary);
  font-size: 2rem;
  opacity: 0.6;
}

.game-card__placeholder i {
  filter: drop-shadow(0 2px 4px rgba(16, 185, 129, 0.3));
}

/* ===== VIDEO HOVER FUNCTIONALITY ===== */
/* Game Media Container for Video Support */
.game-media-container {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

/* Video Preview Styles */
.game-preview-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 2;
  pointer-events: none;
  border-radius: inherit;
}

/* Show video on hover */
.game-card:hover .game-preview-video,
.slider-game-card:hover .game-preview-video,
.slider-game-inner:hover .game-preview-video,
.slider-game-card .slider-game-inner:hover .game-preview-video {
  opacity: 1;
}

/* Loading indicator for video */
.game-media-container[data-loading="true"]::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top: 2px solid var(--primary);
  border-radius: 50%;
  animation: videoLoadingSpin 1s linear infinite;
  z-index: 3;
  opacity: 1;
}

@keyframes videoLoadingSpin {
  0% { transform: translate(-50%, -50%) rotate(0deg); }
  100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Play icon indicator for games with video */
.game-media-container[data-has-video="true"]::after {
  content: '▶';
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(0,0,0,0.8);
  color: white;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  z-index: 4;
  opacity: 0;
  transition: opacity 0.3s ease;
  border: 1px solid rgba(255,255,255,0.2);
}

.game-card:hover .game-media-container[data-has-video="true"]::after,
.slider-game-card:hover .game-media-container[data-has-video="true"]::after,
.slider-game-inner:hover .game-media-container[data-has-video="true"]::after,
.slider-game-card .slider-game-inner:hover .game-media-container[data-has-video="true"]::after {
  opacity: 1;
  background: rgba(0,0,0,0.9);
  transform: scale(1.1);
}

/* Video quality indicator */
.game-media-container[data-has-video="true"]::before {
  content: 'HD';
  position: absolute;
  top: 8px;
  left: 8px;
  background: linear-gradient(135deg, var(--primary) 0%, #06d6a0 100%);
  color: white;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 8px;
  font-weight: 700;
  z-index: 4;
  opacity: 0;
  transition: opacity 0.3s ease;
  letter-spacing: 0.5px;
}

.game-card:hover .game-media-container[data-has-video="true"]::before,
.slider-game-card:hover .game-media-container[data-has-video="true"]::before,
.slider-game-inner:hover .game-media-container[data-has-video="true"]::before,
.slider-game-card .slider-game-inner:hover .game-media-container[data-has-video="true"]::before {
  opacity: 0.9;
}

/* Enhanced hover effect for video cards */
.game-card:has(.game-media-container[data-has-video="true"]):hover {
  transform: translateY(-6px);
}

.game-card:has(.game-media-container[data-has-video="true"]):hover .game-card__inner {
  box-shadow: 0 12px 30px rgba(16,185,129,0.15);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

/* Disable video on mobile to save bandwidth */
@media (max-width: 800px) {
  .game-preview-video {
    display: none !important;
  }
  
  .game-media-container[data-has-video="true"]::after,
  .game-media-container[data-has-video="true"]::before {
    display: none !important;
  }
  
  .game-media-container[data-loading="true"]::before {
    display: none !important;
  }
  
  /* Reset hover effects on mobile */
  .game-card:has(.game-media-container[data-has-video="true"]):hover {
    transform: translateY(-2px);
  }
}

/* Performance optimization for reduced motion */
@media (prefers-reduced-motion: reduce) {
  .game-preview-video {
    transition: none;
    animation: none;
  }
  
  .game-media-container[data-loading="true"]::before {
    animation: none;
  }
  
  .game-card:hover .game-preview-video {
    opacity: 0.7; /* Reduced opacity instead of full animation */
  }
}

/* External Title - Outside the card */
.game-card__external-title {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text);
  margin: 0;
  line-height: 1.2;
  letter-spacing: 0.01em;
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  transition: color 0.3s ease;
  padding: 0 0.2rem;
}

.game-card:hover .game-card__external-title {
  color: var(--primary);
}

/* Hide category descriptions completely on game cards only */
.game-card:not(.category-card) .game-card__category {
  display: none !important;
}

/* Show category names on category cards */
.category-card .game-card__category {
  display: block !important;
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: lowercase;
  letter-spacing: 0.02em;
  margin-top: 0.3rem;
  text-align: center;
}

/* Remove play button completely */
.game-card__play-btn {
  display: none !important;
}

/* Make sure category card titles are visible and styled properly */
.category-card .game-card__title {
  font-size: 0.85rem !important;
  font-weight: 800 !important;
  color: #ffffff !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  text-shadow: 0 1px 3px rgba(0,0,0,0.8), 0 0 6px rgba(16,185,129,0.3) !important;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  position: relative !important;
  z-index: 10 !important;
  margin: 0 !important;
  line-height: 1.2 !important;
}

/* Override any potential hiding styles for category cards specifically */
.category-card .game-card__content {
  opacity: 1 !important;
  visibility: visible !important;
  display: block !important;
  position: absolute !important;
  bottom: 0 !important;
  left: 0 !important;
  right: 0 !important;
  background: linear-gradient(transparent, rgba(0,0,0,0.8)) !important;
  padding: 1.5rem 0.6rem 0.6rem 0.6rem !important;
  z-index: 5 !important;
}

/* Category Cards - Different Styling */
.category-card {
  border: 2px solid transparent;
  background: linear-gradient(var(--card), var(--card)) padding-box,
              linear-gradient(135deg, var(--primary), #06d6a0) border-box;
  position: relative;
}

.category-card .game-card__inner {
  border: 2px solid transparent;
  background: linear-gradient(var(--card), var(--card)) padding-box,
              linear-gradient(135deg, var(--primary), #06d6a0) border-box;
}

.category-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(16,185,129,0.05), rgba(6,214,160,0.05));
  border-radius: 8px;
  z-index: 1;
}

.category-card .game-card__image-container {
  z-index: 2;
  position: relative;
}

.category-card .game-card__content {
  z-index: 3;
  position: relative;
}

.category-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 35px rgba(16,185,129,0.2);
}

.category-card:hover .game-card__title {
  color: var(--primary) !important;
  text-shadow: 0 1px 3px rgba(0,0,0,0.9), 0 0 12px rgba(16,185,129,0.6) !important;
}

/* Category cards - same overlay style */
.category-card .game-card__category {
  display: none !important;
}

/* About Section Styles */
.about-section {
  margin-top: 3.5rem;
  margin-bottom: 2.5rem;
  background: var(--surface);
  border-radius: 10px;
  box-shadow: 0 2px 12px rgba(16,185,129,0.06);
  padding: 2.2rem 1.5rem;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.about-section .section-title {
  margin-bottom: 1.2rem;
  color: var(--primary);
}

.about-content p {
  color: var(--text-muted);
  font-size: 1.13rem;
  line-height: 1.7;
  text-align: center;
}

.about-content strong {
  color: var(--primary);
}

/* Footer */
.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 2rem 0 1.2rem 0;
  text-align: center;
  margin-top: 2.5rem;
}
.site-footer p { color: var(--text-muted); font-size: 1rem; }
.site-footer a { color: var(--primary); }
.site-footer a:hover { text-decoration: underline; }

/* Mobile Bottom Navigation - Hidden on desktop, shown on mobile */
.mobile-bottom-nav {
  display: none;
}

/* Show mobile bottom nav on mobile devices */
@media (max-width: 800px) {
  .mobile-bottom-nav {
    display: block !important;
  }
}

/* Mobile Categories Button - Hidden on desktop by default */
.mobile-categories-btn {
  display: none;
}



/* Mobile Categories Overlay - Hidden on desktop */
.mobile-categories-overlay {
  display: none;
}

/* Responsive */
@media (max-width: 1100px) {
  .container { max-width: 98vw; }
  .games-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
  
  /* Override for main games grid to prevent interference with mobile design */
  div#main-games.games-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)) !important;
  }
}

/* SINGLE CONSOLIDATED MOBILE LAYOUT */
@media (max-width: 800px) {
  /* Hide desktop elements */
  .site-header__nav, .site-header__search { display: none; }
  
  /* Mobile Help & Info Button - Simple button like categories */
  .mobile-help-btn {
    display: flex !important;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2) 0%, rgba(6, 214, 160, 0.1) 100%);
    border: 2px solid rgba(16, 185, 129, 0.3);
    border-radius: 10px;
    width: 42px;
    height: 42px;
    color: #00ff88;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    position: absolute;
    left: 1rem; /* Position on the left side */
    top: 50%;
    transform: translateY(-50%);
    z-index: 999;
    overflow: hidden;
  }
  
  .mobile-help-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.1) 0%, rgba(6, 214, 160, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
  }
  
  .mobile-help-btn:hover::before {
    opacity: 1;
  }
  
  .mobile-help-btn:hover {
    transform: translateY(-52px) scale(1.05);
    border-color: rgba(0, 255, 136, 0.5);
    box-shadow: 0 8px 25px rgba(0, 255, 136, 0.3);
    color: #00ff88;
  }
  
  .mobile-help-btn:active {
    transform: translateY(-50%) scale(0.98);
    transition: transform 0.1s ease;
  }
  
  .mobile-help-btn i {
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 0 8px rgba(0, 255, 136, 0.3));
  }
  
  /* Mobile Hero Section Styling */
  .hero-section {
    padding: 1.5rem 1rem !important;
    margin-bottom: 2rem !important;
  }
  
  .hero-full-line {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 1rem !important;
    max-width: 100% !important;
    margin: 0 !important;
    flex-wrap: nowrap !important;
  }
  
  /* Left Side: Smaller Icon and Title */
  .hero-left {
    display: flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    flex: 0 0 auto !important;
  }
  
  .hero-icon {
    font-size: 1.4rem !important;
    color: #10b981 !important;
    animation: heroIconFloat 3s ease-in-out infinite !important;
  }
  
  .hero-title {
    font-size: 1.1rem !important;
    font-weight: 700 !important;
    color: #f3f4f6 !important;
    margin: 0 !important;
    line-height: 1.2 !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3) !important;
    white-space: nowrap !important;
  }
  
  .hero-title span {
    color: #10b981 !important;
  }
  
  /* Right Side: Compact Features */
  .hero-features {
    display: flex !important;
    align-items: center !important;
    gap: 0.8rem !important;
    flex-wrap: wrap !important;
    justify-content: flex-end !important;
    flex: 1 !important;
  }
  
  .feature-item {
    display: flex !important;
    align-items: center !important;
    gap: 0.3rem !important;
    color: #8ca3b8 !important;
    font-size: 0.7rem !important;
    font-weight: 600 !important;
    white-space: nowrap !important;
    background: rgba(16, 185, 129, 0.1) !important;
    padding: 0.3rem 0.5rem !important;
    border-radius: 12px !important;
    border: 1px solid rgba(16, 185, 129, 0.2) !important;
  }
  
  .feature-item i {
    font-size: 0.7rem !important;
  }
  
  /* Hide most features on mobile, keep only "All for free" */
  .hero-features .feature-item:nth-child(1),
  .hero-features .feature-item:nth-child(2),
  .hero-features .feature-item:nth-child(3) {
    display: none !important;
  }
  
  /* Keep "All for free" visible and styled */
  .hero-features .feature-item:nth-child(4) {
    display: flex !important;
    align-items: center !important;
    gap: 0.4rem !important;
    color: #8ca3b8 !important;
    font-size: 0.8rem !important;
    font-weight: 600 !important;
    white-space: nowrap !important;
    background: rgba(239, 68, 68, 0.1) !important;
    padding: 0.4rem 0.6rem !important;
    border-radius: 12px !important;
    border: 1px solid rgba(239, 68, 68, 0.3) !important;
  }
  
  .hero-features .feature-item:nth-child(4) i {
    color: #ef4444 !important;
    font-size: 0.8rem !important;
  }
  
  /* Mobile Hero Character - Animated Green Mascot */
  .hero-mobile-character {
    position: absolute !important;
    top: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 60px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 2.5rem !important;
    color: #10b981 !important;
    animation: heroCharacterFloat 4s ease-in-out infinite, heroCharacterGlow 2s ease-in-out infinite alternate !important;
    z-index: 3 !important;
    filter: drop-shadow(0 0 20px rgba(16, 185, 129, 0.5)) !important;
    cursor: pointer !important;
  }
  
  .hero-mobile-character::before {
    content: '' !important;
    position: absolute !important;
    width: 50px !important;
    height: 50px !important;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.25) 0%, rgba(16, 185, 129, 0.08) 70%, transparent 100%) !important;
    border-radius: 50% !important;
    animation: heroCharacterPulse 3s ease-in-out infinite !important;
    z-index: -1 !important;
  }
  
  /* Character Animations */
  @keyframes heroCharacterFloat {
    0%, 100% { 
      transform: translateX(0px) rotate(0deg) scale(1) !important;
    }
    25% { 
      transform: translateX(-4px) rotate(-3deg) scale(1.02) !important;
    }
    50% { 
      transform: translateX(0px) rotate(0deg) scale(1.05) !important;
    }
    75% { 
      transform: translateX(4px) rotate(3deg) scale(1.02) !important;
    }
  }
  
  @keyframes heroCharacterGlow {
    0% { 
      filter: drop-shadow(0 0 20px rgba(16, 185, 129, 0.5)) !important;
    }
    100% { 
      filter: drop-shadow(0 0 30px rgba(16, 185, 129, 0.8)) brightness(1.3) !important;
    }
  }
  
  @keyframes heroCharacterPulse {
    0%, 100% { 
      transform: scale(1) !important;
      opacity: 0.7 !important;
    }
    50% { 
      transform: scale(1.3) !important;
      opacity: 0.4 !important;
    }
  }
  
  /* Character hover effect */
  .hero-mobile-character:hover {
    animation: heroCharacterBounce 0.6s ease-in-out !important;
  }
  
  @keyframes heroCharacterBounce {
    0%, 100% { 
      transform: scale(1) !important;
    }
    50% { 
      transform: scale(1.15) !important;
    }
  }
  
  /* Responsive adjustments for very small screens */
  @media (max-width: 600px) {
    .hero-features {
      gap: 0.5rem !important;
    }
    
    .hero-features .feature-item:nth-child(4) {
      font-size: 0.75rem !important;
      padding: 0.35rem 0.5rem !important;
    }
    
    .hero-features .feature-item:nth-child(4) i {
      font-size: 0.75rem !important;
    }
    
    .hero-title {
      font-size: 1rem !important;
    }
    
    .hero-icon {
      font-size: 1.2rem !important;
    }
  }
  
  @media (max-width: 480px) {
    /* Keep elements on same line even on very small screens */
    .hero-features {
      flex-wrap: nowrap !important;
      justify-content: flex-end !important;
      margin-top: 0 !important;
    }
    
    .hero-full-line {
      flex-direction: row !important;
      align-items: center !important;
      justify-content: space-between !important;
      gap: 0.8rem !important;
    }
    
    .hero-features .feature-item:nth-child(4) {
      font-size: 0.7rem !important;
      padding: 0.3rem 0.5rem !important;
    }
    
    .hero-features .feature-item:nth-child(4) i {
      font-size: 0.7rem !important;
    }
  }
  
  /* Mobile Header - Updated Layout */
  .site-header {
    background: linear-gradient(135deg, rgba(26, 35, 46, 0.95) 0%, rgba(16, 21, 28, 0.9) 100%);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(16, 185, 129, 0.2);
    height: 70px;
    padding: 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  }
  
  .site-header__container {
    display: flex;
    align-items: center;
    height: 100%;
    position: relative;
    padding: 0 1rem;
  }
  
  /* Logo centered */
  .site-header__logo {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
  }
  
  .site-header__logo a {
    font-size: 1.5rem;
    font-weight: 900;
    background: linear-gradient(135deg, #00ff88 0%, #06d6a0 50%, #00ff88 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: logoShimmer 3s ease-in-out infinite;
    text-shadow: 0 0 30px rgba(0, 255, 136, 0.3);
    filter: drop-shadow(0 2px 8px rgba(0, 255, 136, 0.2));
    letter-spacing: 1.2px;
  }
  
  /* Mobile Categories Button - Positioned on the right - ONLY ON MOBILE */
  .mobile-categories-btn {
    display: flex !important;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2) 0%, rgba(6, 214, 160, 0.1) 100%);
    border: 2px solid rgba(16, 185, 129, 0.3);
    border-radius: 10px;
    width: 42px;
    height: 42px;
    color: #00ff88;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    position: absolute;
    right: 1rem; /* Position on the right side */
    top: 50%;
    transform: translateY(-50%);
    z-index: 999;
    overflow: hidden;
  }
  
  .mobile-categories-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.1) 0%, rgba(6, 214, 160, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
  }
  
  .mobile-categories-btn:hover::before {
    opacity: 1;
  }
  
  .mobile-categories-btn:hover {
    transform: translateY(-2px) scale(1.05);
    border-color: rgba(0, 255, 136, 0.5);
    box-shadow: 0 8px 25px rgba(0, 255, 136, 0.3);
    color: #00ff88;
  }
  
  .mobile-categories-btn:active {
    transform: translateY(0) scale(0.98);
    transition: transform 0.1s ease;
  }
  
  .mobile-categories-btn i {
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 0 8px rgba(0, 255, 136, 0.3));
  }
  
  /* Mobile Body Layout */
  body {
    padding-bottom: 90px;
    padding-top: 70px;
  }
  
  .main-content {
    padding: 2rem 0;
    min-height: calc(100vh - 160px);
  }
  
  .container {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }
  
  /* Mobile Games Grid - Updated to 3 cards per row with square thumbnails */
  div#main-games.games-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 0.8rem !important;
    padding: 0 !important;
    margin-bottom: 2rem !important;
  }
  
  /* Game card wrapper - mobile design */
  div#main-games.games-grid article.game-card {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.4rem !important;
    transition: transform 0.18s !important;
  }
  
  div#main-games.games-grid article.game-card:hover {
    transform: translateY(-2px) !important;
  }
  
  /* Game card inner - mobile design with square thumbnails */
  div#main-games.games-grid article.game-card .game-card__inner {
    background: var(--card) !important;
    border-radius: 10px !important;
    box-shadow: 0 2px 8px rgba(16,185,129,0.08) !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
    overflow: hidden !important;
    position: relative !important;
    aspect-ratio: 1 / 1 !important; /* Force square aspect ratio */
    border: 1px solid rgba(16, 185, 129, 0.05) !important;
  }
  
  div#main-games.games-grid article.game-card:hover .game-card__inner {
    transform: translateY(-2px) scale(1.02) !important;
    box-shadow: 0 6px 20px rgba(16,185,129,0.12) !important;
    border-color: rgba(16, 185, 129, 0.2) !important;
  }
  
  /* Card link */
  div#main-games.games-grid article.game-card .game-card__link {
    text-decoration: none !important;
    color: inherit !important;
    display: block !important;
    position: relative !important;
    width: 100% !important;
    height: 100% !important;
  }
  
  /* Image container - square 1:1 ratio */
  div#main-games.games-grid article.game-card .game-card__image-container {
    position: relative !important;
    overflow: hidden !important;
    width: 100% !important;
    height: 100% !important;
  }
  
  /* Image */
  div#main-games.games-grid article.game-card .game-card__image-container img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    transition: transform 0.3s !important;
  }
  
  div#main-games.games-grid article.game-card:hover .game-card__image-container img {
    transform: scale(1.05) !important;
  }
  
  /* External Title - Mobile design */
  div#main-games.games-grid article.game-card .game-card__external-title {
    font-size: 0.65rem !important;
    font-weight: 700 !important;
    color: var(--text) !important;
    margin: 0 !important;
    line-height: 1.1 !important;
    letter-spacing: 0.01em !important;
    text-align: center !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    padding: 0 0.2rem !important;
    transition: color 0.3s ease !important;
  }
  
  div#main-games.games-grid article.game-card:hover .game-card__external-title {
    color: var(--primary) !important;
  }
  
  /* Hide old content styles */
  div#main-games.games-grid article.game-card .game-card__content {
    display: none !important;
  }
  
  /* Favorite button on mobile cards - smaller for 3-column layout */
  div#main-games.games-grid article.game-card button.favorite-btn {
    position: absolute !important;
    top: 6px !important;
    right: 6px !important;
    width: 28px !important;
    height: 28px !important;
    background: rgba(0, 0, 0, 0.7) !important;
    backdrop-filter: blur(4px) !important;
    border-radius: 14px !important;
    border: none !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    z-index: 10 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }
  
  div#main-games.games-grid article.game-card button.favorite-btn i {
    font-size: 0.9rem !important;
    color: #fff !important;
  }
  
  div#main-games.games-grid article.game-card button.favorite-btn.favorited i {
    color: #ef4444 !important;
  }
  
  div#main-games.games-grid article.game-card button.favorite-btn:hover {
    background: rgba(0, 0, 0, 0.9) !important;
    transform: scale(1.1) !important;
  }
  
  div#main-games.games-grid article.game-card button.favorite-btn.favorited:hover i {
    color: #dc2626 !important;
  }
  
  /* Mobile Navigation */
  .mobile-bottom-nav {
    display: block !important;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, rgba(26, 35, 46, 0.98) 0%, rgba(16, 21, 28, 0.95) 100%);
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(16, 185, 129, 0.2);
    height: 80px;
    padding: 1rem 0;
    box-shadow: 0 -6px 25px rgba(0, 0, 0, 0.3);
    z-index: 1000;
  }
  
  /* Mobile Navigation Container */
  .mobile-bottom-nav__container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 1rem;
  }
  
  .mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #8ca3b8;
    min-width: 65px;
    padding: 0.6rem;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
  }
  
  .mobile-nav-item.active {
    color: #00ff88;
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.15) 0%, rgba(6, 214, 160, 0.1) 100%);
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0, 255, 136, 0.2);
  }
  
  .mobile-nav-item:hover {
    color: #00ff88;
    transform: translateY(-2px);
    background: rgba(0, 255, 136, 0.08);
  }
  
  .mobile-nav-item i {
    font-size: 1.4rem;
    margin-bottom: 0.4rem;
    filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.3));
  }
  
  .mobile-nav-item.active i {
    color: #00ff88;
    filter: drop-shadow(0 0 8px rgba(0, 255, 136, 0.4));
  }
  
  .mobile-nav-item span {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
  }
  
  /* Mobile navigation badge */
  .mobile-nav-badge {
    position: absolute;
    top: 0.3rem;
    right: 0.8rem;
    background: #ef4444;
    color: white;
    font-size: 0.6rem;
    font-weight: 700;
    padding: 0.2rem 0.4rem;
    border-radius: 10px;
    min-width: 16px;
    text-align: center;
  }
  
  /* Search nav item styling */
  .mobile-nav-item.search-nav-item i {
    color: #00ff88;
    filter: drop-shadow(0 0 6px rgba(0, 255, 136, 0.3));
  }
  
  .mobile-nav-item.search-nav-item:hover i {
    filter: drop-shadow(0 0 12px rgba(0, 255, 136, 0.5));
    transform: scale(1.1);
  }
  
  .mobile-nav-item.search-nav-item {
    animation: searchNavPulse 3s ease-in-out infinite;
  }
  
  /* Mobile Search Overlay */
  .mobile-search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(20px);
    animation: searchSlideIn 0.3s ease;
    z-index: 9999;
    display: none; /* Hidden by default */
    align-items: center;
    justify-content: center;
  }
  
  .mobile-search-overlay.active {
    display: flex !important;
  }
  
  .mobile-search-container {
    padding: 2rem 1.5rem;
    max-width: 90vw;
    margin: 0 auto;
    width: 100%;
  }
  
  .mobile-search-form {
    background: linear-gradient(135deg, #1a232e 0%, #18202b 100%);
    border: 2px solid rgba(16, 185, 129, 0.3);
    border-radius: 20px;
    padding: 1rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    gap: 1rem;
  }
  
  .mobile-search-input {
    background: transparent;
    border: none;
    color: #f3f4f6;
    font-size: 1.2rem;
    padding: 1rem 1.5rem;
    border-radius: 15px;
    width: 100%;
    flex: 1;
  }
  
  .mobile-search-input:focus {
    outline: none;
    background: rgba(16, 185, 129, 0.05);
  }
  
  .mobile-search-input::placeholder {
    color: #8ca3b8;
  }
  
  .mobile-search-close {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
    border: none;
    padding: 0.8rem;
    border-radius: 15px;
    font-size: 1.3rem;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
  }
  
  .mobile-search-close:hover {
    background: rgba(16, 185, 129, 0.3);
    transform: scale(1.1);
  }
  
  /* Mobile header adjustments for smaller screens */
  .site-header__container {
    padding: 0 0.8rem;
  }
  
  .site-header__logo a { 
    font-size: 1.4rem; /* Reduced from 1.6rem */
    letter-spacing: 0.8px; /* Reduced from 1px */
  }
  
  .mobile-categories-btn {
    width: 38px; /* Reduced from 44px */
    height: 38px; /* Reduced from 44px */
    font-size: 1rem; /* Reduced from 1.2rem */
  }
  
  /* Touch feedback */
  .game-card:active {
    transform: scale(0.98);
    transition: transform 0.1s ease;
  }
  
  .continue-btn:active {
    transform: scale(0.95);
    transition: transform 0.1s ease;
  }
  
  .mobile-nav-item:active {
    transform: translateY(0) scale(0.95);
    transition: transform 0.1s ease;
  }
  
  /* Better section spacing and visibility */
  .section-separator {
    margin: 4rem 1rem;
  }
  
  .section-separator .separator-line {
    height: 3px;
    background: linear-gradient(90deg, transparent 0%, rgba(16, 185, 129, 0.4) 50%, transparent 100%);
  }
  
  .category-card {
    height: 200px;
    border-radius: 16px;
  }
  
  .games-grid.category-page-grid {
    gap: 1.5rem;
    margin-top: 2rem;
  }
  
  /* Mobile Categories Overlay - ONLY ON MOBILE */
  .mobile-categories-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(16, 21, 28, 0.98);
    backdrop-filter: blur(25px);
    z-index: 9998;
    display: none;
    align-items: center;
    justify-content: center;
    animation: categoriesSlideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 2rem 1rem;
    overflow-y: auto;
  }

  .mobile-categories-container {
    background: linear-gradient(145deg, #1a232e 0%, #18202b 100%);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 24px;
    max-width: 420px;
    width: 100%;
    margin: 0 auto;
    box-shadow: 
      0 25px 60px rgba(0, 0, 0, 0.6),
      0 0 0 1px rgba(16, 185, 129, 0.1);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(20px);
  }

  .mobile-categories-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 2rem 2rem 1.5rem;
    border-bottom: 1px solid rgba(16, 185, 129, 0.15);
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.08) 0%, rgba(6, 214, 160, 0.04) 100%);
  }

  .mobile-categories-header h2 {
    color: #f8fafc;
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    letter-spacing: 0.02em;
  }

  .mobile-categories-header h2 i {
    color: #10b981;
    font-size: 1.3rem;
    filter: drop-shadow(0 0 10px rgba(16, 185, 129, 0.4));
  }

  .mobile-categories-close {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.2) 0%, rgba(220, 38, 38, 0.1) 100%);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 12px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 1.2rem;
  }

  .mobile-categories-close:hover {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.3) 0%, rgba(220, 38, 38, 0.2) 100%);
    border-color: rgba(239, 68, 68, 0.5);
    transform: scale(1.05);
    color: #fca5a5;
  }

  .mobile-categories-grid {
    padding: 1.5rem 2rem 2rem;
    max-height: 60vh;
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .mobile-categories-grid::-webkit-scrollbar {
    display: none;
  }

  .mobile-category-item {
    display: flex;
    align-items: center;
    text-decoration: none;
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.6) 0%, rgba(24, 32, 43, 0.4) 100%);
    border: 1px solid rgba(71, 85, 105, 0.3);
    border-radius: 16px;
    padding: 1.2rem 1.5rem;
    margin-bottom: 0.8rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    gap: 1rem;
  }

  .mobile-category-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.08) 0%, rgba(6, 214, 160, 0.04) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
  }

  .mobile-category-item:hover::before {
    opacity: 1;
  }

  .mobile-category-item:hover {
    transform: translateY(-2px);
    border-color: rgba(16, 185, 129, 0.4);
    box-shadow: 
      0 12px 28px rgba(0, 0, 0, 0.3),
      0 0 0 1px rgba(16, 185, 129, 0.2);
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.8) 0%, rgba(24, 32, 43, 0.6) 100%);
  }

  .mobile-category-item:active {
    transform: translateY(0) scale(0.98);
    transition: transform 0.1s ease;
  }

  .mobile-category-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2) 0%, rgba(6, 214, 160, 0.1) 100%);
    border: 1px solid rgba(16, 185, 129, 0.3);
    position: relative;
    z-index: 2;
    flex-shrink: 0;
  }

  .mobile-category-icon i {
    font-size: 1.4rem;
    color: #10b981;
    filter: drop-shadow(0 0 8px rgba(16, 185, 129, 0.3));
    transition: all 0.3s ease;
  }

  .mobile-category-item:hover .mobile-category-icon {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.3) 0%, rgba(6, 214, 160, 0.2) 100%);
    border-color: rgba(16, 185, 129, 0.5);
    transform: scale(1.05);
  }

  .mobile-category-item:hover .mobile-category-icon i {
    color: #34d399;
    filter: drop-shadow(0 0 12px rgba(16, 185, 129, 0.5));
    transform: scale(1.1);
  }

  .mobile-category-name {
    color: #f1f5f9;
    font-size: 1rem;
    font-weight: 600;
    text-transform: capitalize;
    position: relative;
    z-index: 2;
    transition: color 0.3s ease;
    flex: 1;
    letter-spacing: 0.01em;
  }

  .mobile-category-item:hover .mobile-category-name {
    color: #ffffff;
  }

  .mobile-category-arrow {
    color: #64748b;
    font-size: 0.9rem;
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
    opacity: 0.7;
  }

  .mobile-category-item:hover .mobile-category-arrow {
    color: #10b981;
    transform: translateX(3px);
    opacity: 1;
  }
  
  /* Animation for categories overlay */
  @keyframes categoriesSlideIn {
    from {
      opacity: 0;
      transform: scale(0.95) translateY(-20px);
    }
    to {
      opacity: 1;
      transform: scale(1) translateY(0);
    }
  }
  
  /* Mobile Category Sliders - 3 cards per row with 1:1 ratio */
  .category-slider-track {
    display: flex !important;
    gap: 0.6rem !important;
    padding: 0.5rem 0 !important;
    width: max-content !important;
  }
  
  /* Slider Game Cards - Mobile 1:1 ratio design with title below */
  .slider-game-card {
    flex: 0 0 calc(33.333vw - 1rem) !important; /* 3 cards per viewport width */
    max-width: 110px !important; /* Maximum size limit */
    display: flex !important;
    flex-direction: column !important;
    gap: 0.4rem !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
  }
  
  .slider-game-card:hover {
    transform: translateY(-2px) !important;
  }
  
  /* Slider Game Card Inner - Mobile */
  .slider-game-inner {
    background: var(--card) !important;
    border-radius: 10px !important;
    box-shadow: 0 2px 8px rgba(16,185,129,0.08) !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
    overflow: hidden !important;
    position: relative !important;
    aspect-ratio: 1 / 1 !important; /* Force square aspect ratio */
    border: 1px solid rgba(16, 185, 129, 0.05) !important;
  }
  
  .slider-game-card:hover .slider-game-inner {
    box-shadow: 0 6px 20px rgba(16,185,129,0.12) !important;
    border-color: rgba(16, 185, 129, 0.2) !important;
  }
  
  .slider-game-link {
    text-decoration: none !important;
    color: inherit !important;
    display: block !important;
    position: relative !important;
    width: 100% !important;
    height: 100% !important;
  }
  
  .slider-game-image {
    position: relative !important;
    overflow: hidden !important;
    width: 100% !important;
    height: 100% !important;
  }
  
  .slider-game-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    transition: transform 0.4s ease !important;
  }
  
  .slider-game-card:hover .slider-game-image img {
    transform: scale(1.08) !important;
  }
  
  /* Hide old slider content on mobile */
  .slider-game-content {
    display: none !important;
  }
  
  /* External Title for Mobile Sliders */
  .slider-game-external-title {
    font-size: 0.65rem !important;
    font-weight: 700 !important;
    color: var(--text) !important;
    margin: 0 !important;
    line-height: 1.1 !important;
    letter-spacing: 0.01em !important;
    text-align: center !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    transition: color 0.3s ease !important;
    padding: 0 0.2rem !important;
  }
  
  .slider-game-card:hover .slider-game-external-title {
    color: var(--primary) !important;
  }
  
  /* Slider Favorite Button - Mobile size */
  .slider-favorite-btn {
    position: absolute !important;
    top: 4px !important;
    right: 4px !important;
    background: rgba(0, 0, 0, 0.8) !important;
    border: none !important;
    border-radius: 50% !important;
    width: 24px !important;
    height: 24px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    z-index: 10 !important;
    backdrop-filter: blur(10px) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
  }
  
  .slider-favorite-btn:hover {
    background: rgba(0, 0, 0, 0.9) !important;
    transform: scale(1.1) !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
  }
  
  .slider-favorite-btn i {
    color: #fff !important;
    font-size: 0.8rem !important;
    transition: all 0.3s ease !important;
  }
  
  .slider-favorite-btn.favorited i {
    color: #ef4444 !important;
  }
  
  .slider-favorite-btn:hover i {
    transform: scale(1.1) !important;
  }
  
  .slider-favorite-btn.favorited:hover i {
    color: #dc2626 !important;
  }
}

/* Small Mobile Screens */
@media (max-width: 500px) {
  .section-title { 
    font-size: 1.6rem;
    padding: 0 0.8rem;
    margin-bottom: 1.2rem;
  }
  
  .mobile-nav-item {
    min-width: 50px;
    padding: 0.4rem;
  }
  
  .mobile-nav-item i {
    font-size: 1.2rem;
    margin-bottom: 0.3rem;
  }
  
  .mobile-nav-item span {
    font-size: 0.65rem;
    font-weight: 700;
  }
  
  /* Mobile header adjustments for smaller screens */
  .site-header__container {
    padding: 0 0.8rem;
  }
  
  .site-header__logo a { 
    font-size: 1.4rem; /* Reduced from 1.6rem */
    letter-spacing: 0.8px; /* Reduced from 1px */
  }
  
  .mobile-categories-btn {
    width: 38px; /* Reduced from 44px */
    height: 38px; /* Reduced from 44px */
    font-size: 1rem; /* Reduced from 1.2rem */
  }
  
  /* Mobile categories overlay adjustments */
  .mobile-categories-container {
    max-width: 95vw;
    border-radius: 20px;
  }
  
  .mobile-categories-header {
    padding: 1.5rem 1.5rem 1.2rem;
  }
  
  .mobile-categories-header h2 {
    font-size: 1.25rem;
  }
  
  .mobile-categories-close {
    width: 40px;
    height: 40px;
    font-size: 1.1rem;
  }
  
  .mobile-categories-grid {
    padding: 1.2rem 1.5rem 1.5rem;
  }
  
  .mobile-category-item {
    padding: 1rem 1.2rem;
    border-radius: 14px;
    gap: 0.8rem;
  }
  
  .mobile-category-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
  }
  
  .mobile-category-icon i {
    font-size: 1.3rem;
  }
  
  .mobile-category-name {
    font-size: 0.95rem;
  }
}

/* Extra Small Screens */
@media (max-width: 400px) {
  .games-grid {
    gap: 0.8rem;
    padding: 0 0.3rem;
  }
  
  /* Override for main games grid to maintain our layout */
  div#main-games.games-grid {
    gap: 0.4rem !important;
    padding: 0 !important;
  }
  
  .section-separator {
    margin: 3rem 0.5rem;
  }
  
  .mobile-nav-item {
    min-width: 55px;
    padding: 0.7rem 0.3rem;
  }
  
  .mobile-nav-item span {
    font-size: 0.7rem;
  }
  
  /* Very small mobile adjustments for categories overlay */
  .mobile-categories-overlay {
    padding: 1rem 0.5rem;
  }
  
  .mobile-categories-container {
    max-width: 98vw;
  }
  
  .mobile-categories-header {
    padding: 1.2rem 1.2rem 1rem;
  }
  
  .mobile-categories-grid {
    padding: 1rem 1.2rem 1.2rem;
  }
  
  .mobile-category-item {
    padding: 0.9rem 1rem;
    margin-bottom: 0.6rem;
  }
  
  .mobile-category-icon {
    width: 40px;
    height: 40px;
  }
  
  .mobile-category-icon i {
    font-size: 1.2rem;
  }
  
  .mobile-category-name {
    font-size: 0.9rem;
  }
}

/* Favorites Notification Styles */
.favorites-notification {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
  padding: 1rem 1.5rem;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  transform: translateX(400px);
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 10000;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  max-width: 300px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
}

.favorites-notification.show {
  transform: translateX(0);
  opacity: 1;
  visibility: visible;
}

.favorites-notification.error {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

.favorites-notification__content {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.favorites-notification__content i {
  font-size: 1.2rem;
  color: #fef3f3;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
}

/* About Section Mobile Improvements */
@media (max-width: 800px) {
  .about-section {
    margin: 2rem 0.5rem 3rem;
    padding: 1.8rem 1.2rem;
    border-radius: 16px;
  }
  
  .about-content p {
    font-size: 1rem;
    line-height: 1.6;
    text-align: left;
  }
  
  /* Mobile favorites notification positioning */
  .favorites-notification {
    bottom: 100px; /* Above mobile nav */
    right: 15px;
    left: 15px;
    max-width: none;
    transform: translateY(100px);
  }
  
  .favorites-notification.show {
    transform: translateY(0);
  }
}

/* Animation keyframes for favorites notification */
@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(100px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideOutRight {
  from {
    opacity: 1;
    transform: translateX(0);
  }
  to {
    opacity: 0;
    transform: translateX(100px);
  }
}

/* Game Card Favorite Button */
.favorite-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(0, 0, 0, 0.7);
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.favorite-btn:hover {
  background: rgba(0, 0, 0, 0.9);
  transform: scale(1.1);
}

.favorite-btn i {
  color: #fff;
  font-size: 1.2rem;
  transition: all 0.3s ease;
}

.favorite-btn.favorited i {
  color: #ef4444;
}

.favorite-btn:hover i {
  transform: scale(1.1);
}

.favorite-btn.favorited:hover i {
  color: #dc2626;
}

/* CSS cleaned and fixed for both desktop and mobile layouts */

/* Categories Slider Section */
.categories-slider-section {
  margin: 2rem 0;
}

/* Category Slider Row */
.category-slider-row {
  margin-bottom: 0.1rem;
}

/* Category Header */
.category-slider-header {
  margin-bottom: 0.2rem;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 10;
  pointer-events: none;
}

.category-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  margin: 0;
  text-transform: capitalize;
  letter-spacing: 0.5px;
  position: relative;
  display: inline-block;
  pointer-events: none;
  user-select: none;
  z-index: 1;
}

.category-title::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 30px;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), transparent);
  border-radius: 1px;
}

/* Navigation Buttons in Header - Fixed for desktop clicks */
.slider-nav-buttons {
  display: flex !important;
  gap: 0.5rem;
  align-items: center;
  z-index: 1000 !important;
  position: relative !important;
  pointer-events: auto !important;
}

.slider-nav-btn {
  width: 40px !important;
  height: 40px !important;
  border: none !important;
  border-radius: 8px !important;
  background: rgba(16, 185, 129, 0.1) !important;
  color: var(--primary) !important;
  font-size: 1rem !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: all 0.3s ease !important;
  border: 1px solid rgba(16, 185, 129, 0.2) !important;
  z-index: 1001 !important;
  position: relative !important;
  pointer-events: auto !important;
  user-select: none !important;
  -webkit-user-select: none !important;
  -moz-user-select: none !important;
  -ms-user-select: none !important;
  outline: none !important;
  -webkit-tap-highlight-color: transparent !important;
}

.slider-nav-btn:hover:not(:disabled) {
  background: var(--primary) !important;
  color: white !important;
  transform: scale(1.05) !important;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3) !important;
  pointer-events: auto !important;
}

.slider-nav-btn:active {
  transform: scale(0.95) !important;
  pointer-events: auto !important;
}

.slider-nav-btn:focus {
  outline: 2px solid var(--primary) !important;
  outline-offset: 2px !important;
}

.slider-nav-btn:disabled {
  opacity: 0.3 !important;
  cursor: not-allowed !important;
  transform: none !important;
  pointer-events: none !important;
}

/* Ensure icons don't block clicks */
.slider-nav-btn i {
  pointer-events: none !important;
  user-select: none !important;
}

/* Slider Container */
.category-slider-container {
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
  scroll-behavior: smooth;
  padding: 15px 0;
  margin: 0;
}

.category-slider-container::-webkit-scrollbar {
  display: none;
}

/* Mobile Responsive */
@media (max-width: 800px) {
  .category-slider-header {
    padding: 0;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
  
  .category-title {
    font-size: 1.3rem;
  }
  
  /* Force hide slider navigation buttons on mobile with higher specificity */
  .category-slider-header .slider-nav-buttons,
  .slider-nav-buttons {
    display: none !important;
    visibility: hidden !important;
  }
  
  .slider-nav-btn {
    display: none !important;
    visibility: hidden !important;
  }
  
  .category-slider-container {
    margin: 0;
  }
}

.category-slider-track {
  display: flex;
  gap: 0.8rem;
  padding: 0.5rem 0;
  width: max-content;
}

/* Slider Game Cards - Desktop Design (1:1 Ratio with Title Below) */
.slider-game-card {
  flex: 0 0 150px;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.slider-game-card:hover {
  transform: translateY(-3px);
}

/* Slider Game Card Inner */
.slider-game-inner {
  background: var(--card);
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(16,185,129,0.08);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  position: relative;
  aspect-ratio: 1 / 1; /* Square image */
  border: 1px solid rgba(16, 185, 129, 0.05);
}

.slider-game-card:hover .slider-game-inner {
  box-shadow: 0 8px 25px rgba(16,185,129,0.15);
  border-color: rgba(16, 185, 129, 0.2);
}

.slider-game-link {
  text-decoration: none;
  color: inherit;
  display: block;
  position: relative;
  width: 100%;
  height: 100%;
}

.slider-game-image {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 100%;
}

.slider-game-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.slider-game-card:hover .slider-game-image img {
  transform: scale(1.1);
}

/* Hide old slider content */
.slider-game-content {
  display: none !important;
}

/* External Title for Sliders */
.slider-game-external-title {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text);
  margin: 0;
  line-height: 1.2;
  letter-spacing: 0.02em;
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  transition: color 0.3s ease;
  padding: 0 0.2rem;
}

.slider-game-card:hover .slider-game-external-title {
  color: var(--primary);
}

/* Slider Favorite Button - Desktop Design */
.slider-favorite-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(0, 0, 0, 0.7);
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.slider-favorite-btn:hover {
  background: rgba(0, 0, 0, 0.9);
  transform: scale(1.1);
  border-color: rgba(255, 255, 255, 0.2);
}

.slider-favorite-btn i {
  color: #fff;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.slider-favorite-btn.favorited i {
  color: #ef4444;
}

.slider-favorite-btn:hover i {
  transform: scale(1.1);
}

.slider-favorite-btn.favorited:hover i {
  color: #dc2626;
}

/* Visual Separator Between Sections */
.section-separator {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 3rem 0;
  gap: 1rem;
}

.separator-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
  max-width: 200px;
}

.separator-icon {
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1rem;
}

/* Categories Section Styling */
.categories-section {
  position: relative;
}

.categories-section::before {
  content: '';
  position: absolute;
  top: -1rem;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border) 20%, var(--border) 80%, transparent);
}

/* MOBILE HELP & INFO BUTTON - Simple button like categories */
@media (max-width: 800px) {
  /* Hide the dropdown completely on mobile */
  .help-info-dropdown {
    display: none !important;
  }
  
  /* Create a simple Help & Info button in header container */
  .mobile-help-btn {
    display: flex !important;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2) 0%, rgba(6, 214, 160, 0.1) 100%);
    border: 2px solid rgba(16, 185, 129, 0.3);
    border-radius: 10px;
    width: 42px;
    height: 42px;
    color: #00ff88;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    position: absolute;
    left: 1rem; /* Position on the left side */
    top: 50%;
    transform: translateY(-50%);
    z-index: 999;
    overflow: hidden;
  }
  
  .mobile-help-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.1) 0%, rgba(6, 214, 160, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
  }
  
  .mobile-help-btn:hover::before {
    opacity: 1;
  }
  
  .mobile-help-btn:hover {
    transform: translateY(-52px) scale(1.05);
    border-color: rgba(0, 255, 136, 0.5);
    box-shadow: 0 8px 25px rgba(0, 255, 136, 0.3);
    color: #00ff88;
  }
  
  .mobile-help-btn:active {
    transform: translateY(-50%) scale(0.98);
    transition: transform 0.1s ease;
  }
  
  .mobile-help-btn i {
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 0 8px rgba(0, 255, 136, 0.3));
  }
}

/* Fix mobile help button hover effect */
@media (max-width: 800px) {
  .mobile-help-btn:hover {
    transform: translateY(-50%) scale(1.05) !important;
  }
  
  /* Mobile Help & Info Overlay */
  .mobile-help-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    animation: categoriesSlideIn 0.3s ease-out;
  }
  
  .mobile-help-container {
    background: var(--surface);
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(16, 185, 129, 0.2);
    overflow: hidden;
    width: 100%;
    max-width: 400px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
  }
  
  .mobile-help-header {
    background: linear-gradient(135deg, var(--surface) 0%, rgba(16, 185, 129, 0.05) 100%);
    padding: 1.2rem;
    border-bottom: 1px solid rgba(16, 185, 129, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  
  .mobile-help-header h2 {
    color: var(--text);
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }
  
  .mobile-help-header h2 i {
    color: var(--primary);
    font-size: 1.1rem;
  }
  
  .mobile-help-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.2s ease;
  }
  
  .mobile-help-close:hover {
    background: rgba(16, 185, 129, 0.1);
    color: var(--primary);
    transform: scale(1.1);
  }
  
  .mobile-help-grid {
    flex: 1;
    overflow-y: auto;
    padding: 0.5rem 0;
  }
  
  .mobile-help-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    color: var(--text);
    text-decoration: none;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
    position: relative;
  }
  
  .mobile-help-item:hover {
    background: rgba(16, 185, 129, 0.05);
    border-left-color: var(--primary);
    transform: translateX(5px);
  }
  
  .mobile-help-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2) 0%, rgba(6, 214, 160, 0.1) 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(16, 185, 129, 0.3);
    flex-shrink: 0;
  }
  
  .mobile-help-icon i {
    color: var(--primary);
    font-size: 1.1rem;
  }
  
  .mobile-help-name {
    flex: 1;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text);
    transition: color 0.3s ease;
  }
  
  .mobile-help-arrow {
    color: var(--text-muted);
    font-size: 0.8rem;
    transition: all 0.3s ease;
  }
  
  .mobile-help-item:hover .mobile-help-arrow {
    color: var(--primary);
    transform: translateX(3px);
  }
}

/* ULTIMATE DESKTOP HIDE - All Mobile Help Elements */
@media screen and (min-width: 801px) {
  /* Hide ALL mobile help related elements with maximum specificity */
  .mobile-help-btn,
  .mobile-help-overlay,
  .mobile-help-container,
  .mobile-help-header,
  .mobile-help-grid,
  .mobile-help-item,
  .mobile-help-close,
  html body .mobile-help-btn,
  html body .mobile-help-overlay,
  html body .site-header .mobile-help-btn,
  html body .site-header .site-header__container .mobile-help-btn,
  html body div.mobile-help-overlay,
  html body * .mobile-help-btn,
  html body * .mobile-help-overlay {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
    position: fixed !important;
    left: -9999px !important;
    top: -9999px !important;
    width: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
    z-index: -9999 !important;
    clip: rect(0, 0, 0, 0) !important;
    transform: translateX(-9999px) !important;
  }
}

/* CLEAN MOBILE HELP SOLUTION */

/* Desktop: Hide mobile help elements */
@media screen and (min-width: 801px) {
  .mobile-help-btn {
    display: none !important;
  }
  .mobile-help-overlay {
    display: none !important;
  }
}

/* Mobile: Show mobile help elements */
@media screen and (max-width: 800px) {
  .mobile-help-btn {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
  }
}

/* MOBILE HELP BUTTON - FORCE SHOW ON MOBILE */
@media screen and (max-width: 800px) {
  html body .site-header .site-header__container .mobile-help-btn,
  html body .mobile-help-btn,
  .mobile-help-btn {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    position: absolute !important;
    left: 1rem !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    z-index: 999 !important;
    width: 42px !important;
    height: 42px !important;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2) 0%, rgba(6, 214, 160, 0.1) 100%) !important;
    border: 2px solid rgba(16, 185, 129, 0.3) !important;
    border-radius: 10px !important;
    color: #00ff88 !important;
    font-size: 1.1rem !important;
    cursor: pointer !important;
    backdrop-filter: blur(10px) !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2) !important;
    align-items: center !important;
    justify-content: center !important;
  }
  
  html body .mobile-help-overlay,
  .mobile-help-overlay {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    /* Will be shown when button is clicked via JavaScript */
  }
  
  .mobile-help-overlay.active {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
}

/* ====== FINAL MOBILE HELP BUTTON FIX ====== */
/* Force show mobile help button on phones - highest priority */
@media screen and (max-width: 800px) {
  html body .site-header .site-header__container .mobile-help-btn,
  html body .mobile-help-btn,
  .mobile-help-btn {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    position: absolute !important;
    left: 1rem !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    z-index: 999 !important;
    width: 42px !important;
    height: 42px !important;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2) 0%, rgba(6, 214, 160, 0.1) 100%) !important;
    border: 2px solid rgba(16, 185, 129, 0.3) !important;
    border-radius: 10px !important;
    color: #00ff88 !important;
    font-size: 1.1rem !important;
    cursor: pointer !important;
    backdrop-filter: blur(10px) !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2) !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    overflow: hidden !important;
  }
}

/* ====== MOBILE HELP OVERLAY FIX ====== */
/* Ensure mobile help overlay works on phones */
@media screen and (max-width: 800px) {
  html body .mobile-help-overlay,
  .mobile-help-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background: rgba(0, 0, 0, 0.8) !important;
    backdrop-filter: blur(5px) !important;
    z-index: 10000 !important;
    display: none !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 1rem !important;
    animation: categoriesSlideIn 0.3s ease-out !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
  }
  
  /* When overlay is active (opened) */
  .mobile-help-overlay[style*="flex"],
  .mobile-help-overlay.active {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
  }
  
  /* Ensure overlay components are visible */
  .mobile-help-overlay .mobile-help-container,
  .mobile-help-overlay .mobile-help-header,
  .mobile-help-overlay .mobile-help-grid,
  .mobile-help-overlay .mobile-help-item,
  .mobile-help-overlay .mobile-help-close {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
  }
  
  .mobile-help-overlay .mobile-help-grid {
    display: block !important;
  }
}

/* ====== MOBILE BOTTOM NAVIGATION FIX ====== */
/* Force show mobile bottom navigation on mobile devices */
@media screen and (max-width: 800px) {
  .mobile-bottom-nav {
    display: block !important;
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    background: linear-gradient(135deg, rgba(26, 35, 46, 0.98) 0%, rgba(16, 21, 28, 0.95) 100%) !important;
    backdrop-filter: blur(20px) !important;
    border-top: 1px solid rgba(16, 185, 129, 0.2) !important;
    height: 80px !important;
    padding: 1rem 0 !important;
    box-shadow: 0 -6px 25px rgba(0, 0, 0, 0.3) !important;
    z-index: 1000 !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
  
  .mobile-bottom-nav__container {
    display: flex !important;
    justify-content: space-around !important;
    align-items: center !important;
    height: 100% !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    padding: 0 1rem !important;
  }
  
  .mobile-nav-item {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-decoration: none !important;
    color: #8ca3b8 !important;
    min-width: 65px !important;
    padding: 0.6rem !important;
    border-radius: 12px !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    position: relative !important;
  }
}

/* Hide mobile bottom nav on desktop */
@media screen and (min-width: 801px) {
  .mobile-bottom-nav {
    display: none !important;
  }
}


/* 16:9 Aspect Ratio for Game Thumbnails on Laptops Only */
/* This changes game card thumbnails from square (1:1) to widescreen (16:9) on laptop devices */

@media screen and (min-width: 801px) {
    
    /* Main Games Grid - Desktop 16:9 Cards */
    div#main-games.games-grid article.game-card .game-card__inner {
        aspect-ratio: 16 / 9 !important; /* Change from 1:1 to 16:9 */
    }
    
    /* Regular Game Cards - Desktop 16:9 */
    .game-card__inner {
        aspect-ratio: 16 / 9 !important; /* Change from 1:1 to 16:9 */
    }
    
    /* Slider Game Cards - Desktop 16:9 */
    .slider-game-inner {
        aspect-ratio: 16 / 9 !important; /* Change from 1:1 to 16:9 */
    }
    
    /* Category Page Grid - Desktop 16:9 */
    .games-grid.category-page-grid .game-card {
        aspect-ratio: 16 / 9 !important; /* Change from 1:1 to 16:9 */
    }
    
    /* Adjust grid layouts for wider cards */
    .games-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)) !important; /* Wider minimum for 16:9 cards */
    }
    
    div#main-games.games-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)) !important; /* Slightly wider for main grid */
    }
    
    /* Slider adjustments for 16:9 cards */
    .slider-game-card {
        flex: 0 0 200px !important; /* Fixed width for 16:9 slider cards */
        max-width: 250px !important;
    }
    
    /* Category slider adjustments */
    .category-slider-track .slider-game-card {
        flex: 0 0 180px !important; /* Slightly smaller for category sliders */
        max-width: 220px !important;
    }
}

/* Ensure mobile devices keep square aspect ratio */
@media screen and (max-width: 800px) {
    
    /* Force square aspect ratio on mobile - override any 16:9 rules */
    .game-card__inner,
    .slider-game-inner,
    div#main-games.games-grid article.game-card .game-card__inner,
    .games-grid.category-page-grid .game-card {
        aspect-ratio: 1 / 1 !important; /* Keep square on mobile */
    }
}

/* Perfect Full-Size Thumbnails - Fill Entire Game Card */
/* This ensures game thumbnails resize to exactly match the game card dimensions */

/* Remove any potential padding/margins and ensure full coverage */
.game-card__inner {
    padding: 0 !important;
    margin: 0 !important;
    overflow: hidden !important;
    position: relative !important;
    border-radius: 8px !important; /* Consistent with design */
}

.game-card__link {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    position: relative !important;
    overflow: hidden !important;
    padding: 0 !important;
    margin: 0 !important;
    border-radius: 8px !important;
}

.game-card__image-container {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    height: 100% !important;
    overflow: hidden !important;
    padding: 0 !important;
    margin: 0 !important;
    border-radius: 8px !important;
}

.game-card__image-container img {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
    border-radius: 8px !important;
    transition: transform 0.3s ease !important;
    display: block !important;
}

/* Slider cards - same treatment */
.slider-game-inner {
    padding: 0 !important;
    margin: 0 !important;
    overflow: hidden !important;
    position: relative !important;
    border-radius: 10px !important;
}

.slider-game-link {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    position: relative !important;
    overflow: hidden !important;
    padding: 0 !important;
    margin: 0 !important;
    border-radius: 10px !important;
}

.slider-game-image {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    height: 100% !important;
    overflow: hidden !important;
    padding: 0 !important;
    margin: 0 !important;
    border-radius: 10px !important;
}

.slider-game-image img {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
    border-radius: 10px !important;
    transition: transform 0.4s ease !important;
    display: block !important;
}

/* Mobile specific - ensure full coverage */
@media screen and (max-width: 800px) {
    div#main-games.games-grid article.game-card .game-card__inner {
        padding: 0 !important;
        margin: 0 !important;
        overflow: hidden !important;
        border-radius: 10px !important;
    }
    
    div#main-games.games-grid article.game-card .game-card__image-container {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        width: 100% !important;
        height: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
        border-radius: 10px !important;
    }
    
    div#main-games.games-grid article.game-card .game-card__image-container img {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        object-position: center !important;
        border-radius: 10px !important;
    }
}

/* Category page grid - full coverage */
.games-grid.category-page-grid .game-card {
    padding: 0 !important;
    margin: 0 !important;
    overflow: hidden !important;
    border-radius: 8px !important;
}

.games-grid.category-page-grid .game-card .game-card__image-container {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    height: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    border-radius: 8px !important;
}

.games-grid.category-page-grid .game-card .game-card__image-container img {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
    border-radius: 8px !important;
}

/* Ensure hover effects still work with full-size images */
.game-card:hover .game-card__image-container img {
    transform: scale(1.05) !important;
}

.slider-game-card:hover .slider-game-image img {
    transform: scale(1.08) !important;
}

/* Fix for any borders or shadows that might create gaps */
.game-card__inner,
.slider-game-inner {
    box-sizing: border-box !important;
    border: none !important;
    outline: none !important;
}

/* Ensure favorite buttons stay on top of full-size images */
.favorite-btn,
.slider-favorite-btn {
    z-index: 10 !important;
    position: absolute !important;
}

/* Recently played cards - full coverage */
.recently-played-card .recently-played-image {
    position: relative !important;
    overflow: hidden !important;
    padding: 0 !important;
    margin: 0 !important;
    border-radius: 16px !important;
}

.recently-played-card .recently-played-image img {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
    border-radius: 16px !important;
}

/* Tablet compatibility */
@media screen and (min-width: 801px) and (max-width: 1024px) {
    .games-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)) !important;
    }
    
    div#main-games.games-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)) !important;
    }
    
    .slider-game-card {
        flex: 0 0 180px !important;
        max-width: 220px !important;
    }
}

/* Large desktop optimization */
@media screen and (min-width: 1200px) {
    .games-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)) !important;
    }
    
    div#main-games.games-grid {
        grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)) !important;
    }
    
    .slider-game-card {
        flex: 0 0 220px !important;
        max-width: 280px !important;
    }
}

/* 16:9 Aspect Ratio for Game Cards on Laptops (≥801px) */
@media screen and (min-width: 801px) {
    
    /* Main Games Grid - 16:9 Cards */
    div#main-games.games-grid article.game-card .game-card__inner {
        aspect-ratio: 16 / 9 !important;
    }
    
    /* Regular Game Cards - 16:9 */
    .game-card__inner {
        aspect-ratio: 16 / 9 !important;
    }
    
    /* Slider Game Cards - 16:9 */
    .slider-game-inner {
        aspect-ratio: 16 / 9 !important;
    }
    
    /* Category Page Grid - 16:9 */
    .games-grid.category-page-grid .game-card {
        aspect-ratio: 16 / 9 !important;
    }
}

/* Keep Mobile Square (1:1) */
@media screen and (max-width: 800px) {
    .game-card__inner,
    .slider-game-inner,
    div#main-games.games-grid article.game-card .game-card__inner,
    .games-grid.category-page-grid .game-card {
        aspect-ratio: 1 / 1 !important;
    }
}

/* 16:9 Aspect Ratio Game Cards on Laptops - Show Full Image */
@media screen and (min-width: 801px) {
    
    /* Main Games Grid - 16:9 Cards */
    div#main-games.games-grid article.game-card .game-card__inner {
        aspect-ratio: 16 / 9 !important;
    }
    
    /* Regular Game Cards - 16:9 */
    .game-card__inner {
        aspect-ratio: 16 / 9 !important;
    }
    
    /* Slider Game Cards - 16:9 */
    .slider-game-inner {
        aspect-ratio: 16 / 9 !important;
    }
    
    /* Category Page Grid - 16:9 */
    .games-grid.category-page-grid .game-card {
        aspect-ratio: 16 / 9 !important;
    }
    
    /* Make images fit completely within 16:9 cards - show full image */
    .game-card__image-container img,
    div#main-games.games-grid article.game-card .game-card__image-container img,
    .games-grid.category-page-grid .game-card .game-card__image-container img {
        object-fit: contain !important; /* Show complete image within card */
        object-position: center !important;
        background-color: rgba(26, 35, 46, 0.1) !important; /* Subtle background for any empty space */
    }
    
    /* Same for slider images */
    .slider-game-image img {
        object-fit: contain !important; /* Show complete image within card */
        object-position: center !important;
        background-color: rgba(26, 35, 46, 0.1) !important;
    }
}

/* Keep Mobile Square with fitted images */
@media screen and (max-width: 800px) {
    /* Square cards on mobile */
    .game-card__inner,
    .slider-game-inner,
    div#main-games.games-grid article.game-card .game-card__inner,
    .games-grid.category-page-grid .game-card {
        aspect-ratio: 1 / 1 !important;
    }
    
    /* Fit complete image on mobile too */
    .game-card__image-container img,
    div#main-games.games-grid article.game-card .game-card__image-container img,
    .slider-game-image img {
        object-fit: contain !important;
        object-position: center !important;
        background-color: rgba(26, 35, 46, 0.1) !important;
    }
}

/* 16:9 Game Cards - Stretch Image to Fill All Space */
@media screen and (min-width: 801px) {
    
    /* 16:9 Cards */
    div#main-games.games-grid article.game-card .game-card__inner,
    .game-card__inner,
    .slider-game-inner,
    .games-grid.category-page-grid .game-card {
        aspect-ratio: 16 / 9 !important;
    }
    
    /* Stretch images to fill entire card - shows full image but may distort */
    .game-card__image-container img,
    div#main-games.games-grid article.game-card .game-card__image-container img,
    .games-grid.category-page-grid .game-card .game-card__image-container img,
    .slider-game-image img {
        object-fit: fill !important; /* Stretches image to fill entire space */
        object-position: center !important;
    }
}

/* 16:9 Game Cards - Maximum Fill with Complete Image */
@media screen and (min-width: 801px) {
    
    /* 16:9 Cards */
    div#main-games.games-grid article.game-card .game-card__inner,
    .game-card__inner,
    .slider-game-inner,
    .games-grid.category-page-grid .game-card {
        aspect-ratio: 16 / 9 !important;
    }
    
    /* Images fill maximum space while showing complete image */
    .game-card__image-container img,
    div#main-games.games-grid article.game-card .game-card__image-container img,
    .games-grid.category-page-grid .game-card .game-card__image-container img,
    .slider-game-image img {
        object-fit: contain !important; /* Shows complete image */
        object-position: center !important;
        width: 100% !important;
        height: 100% !important;
        background-color: transparent !important; /* No background in empty areas */
    }
}

/* Keep mobile square */
@media screen and (max-width: 800px) {
    .game-card__inner,
    .slider-game-inner,
    div#main-games.games-grid article.game-card .game-card__inner,
    .games-grid.category-page-grid .game-card {
        aspect-ratio: 1 / 1 !important;
    }
}

/* HIDE ALL FAVORITE ICONS FROM GAME CARDS */

/* Hide favorite buttons on main game grid cards */
div#main-games.games-grid article.game-card button.favorite-btn,
.game-card .favorite-btn {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* Hide favorite buttons on slider cards */
.slider-favorite-btn {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* Hide favorite buttons on category page cards */
.games-grid.category-page-grid .game-card .favorite-btn {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* Hide favorite buttons on recently played cards */
.recently-played-card .favorite-btn {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* Hide all favorite buttons globally on game cards */
.favorite-btn {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* Hide slider favorite buttons globally */
.slider-favorite-btn {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* 16:9 Game Cards - Stretch Image to Fill All Space Exactly */
@media screen and (min-width: 801px) {
    
    /* 16:9 Cards on Laptops/Desktops */
    div#main-games.games-grid article.game-card .game-card__inner,
    .game-card__inner,
    .slider-game-inner,
    .games-grid.category-page-grid .game-card {
        aspect-ratio: 16 / 9 !important;
    }
    
    /* Stretch images to fill entire 16:9 card - shows full image but may distort */
    .game-card__image-container img,
    div#main-games.games-grid article.game-card .game-card__image-container img,
    .games-grid.category-page-grid .game-card .game-card__image-container img,
    .slider-game-image img {
        object-fit: fill !important; /* Stretches image to fill entire space exactly */
        object-position: center !important;
        width: 100% !important;
        height: 100% !important;
    }
}

/* Keep Mobile Square with stretched images */
@media screen and (max-width: 800px) {
    /* Square cards on mobile */
    .game-card__inner,
    .slider-game-inner,
    div#main-games.games-grid article.game-card .game-card__inner,
    .games-grid.category-page-grid .game-card {
        aspect-ratio: 1 / 1 !important;
    }
    
    /* Stretch images to fill square cards on mobile */
    .game-card__image-container img,
    div#main-games.games-grid article.game-card .game-card__image-container img,
    .slider-game-image img {
        object-fit: fill !important; /* Stretches to fill square cards */
        object-position: center !important;
        width: 100% !important;
        height: 100% !important;
    }
}

/* Smaller 16:9 Game Cards - Reduced Size with 16:9 Ratio */
@media screen and (min-width: 801px) {
    
    /* 16:9 Cards on Laptops/Desktops */
    div#main-games.games-grid article.game-card .game-card__inner,
    .game-card__inner,
    .slider-game-inner,
    .games-grid.category-page-grid .game-card {
        aspect-ratio: 16 / 9 !important;
    }
    
    /* SMALLER Grid Layouts - Reduced Card Size */
    .games-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)) !important; /* Reduced from 200px to 160px */
        gap: 1rem !important; /* Adjust spacing between cards */
    }
    
    div#main-games.games-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)) !important; /* Reduced from 220px to 180px */
        gap: 1.2rem !important; /* Slightly more spacing for main grid */
    }
    
    /* Smaller Category Page Grid */
    .games-grid.category-page-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)) !important; /* Smaller for category pages */
        gap: 1rem !important;
    }
    
    /* Smaller Slider Cards */
    .slider-game-card {
        flex: 0 0 160px !important; /* Reduced from 200px to 160px */
        max-width: 200px !important; /* Reduced from 250px to 200px */
    }
    
    /* Category slider adjustments */
    .category-slider-track .slider-game-card {
        flex: 0 0 140px !important; /* Reduced from 180px to 140px */
        max-width: 180px !important; /* Reduced from 220px to 180px */
    }
    
    /* Stretch images to fill entire smaller 16:9 cards */
    .game-card__image-container img,
    div#main-games.games-grid article.game-card .game-card__image-container img,
    .games-grid.category-page-grid .game-card .game-card__image-container img,
    .slider-game-image img {
        object-fit: fill !important; /* Stretches image to fill entire space exactly */
        object-position: center !important;
        width: 100% !important;
        height: 100% !important;
    }
}

/* Tablet - Medium sized cards */
@media screen and (min-width: 801px) and (max-width: 1024px) {
    .games-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)) !important; /* Even smaller on tablets */
    }
    
    div#main-games.games-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)) !important;
    }
    
    .slider-game-card {
        flex: 0 0 140px !important;
        max-width: 180px !important;
    }
}

/* Large Desktop - Slightly bigger but still reduced */
@media screen and (min-width: 1200px) {
    .games-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)) !important; /* Bigger on large screens but still reduced */
    }
    
    div#main-games.games-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)) !important;
    }
    
    .slider-game-card {
        flex: 0 0 180px !important;
        max-width: 220px !important;
    }
}

/* Keep Mobile Square */
@media screen and (max-width: 800px) {
    .game-card__inner,
    .slider-game-inner,
    div#main-games.games-grid article.game-card .game-card__inner,
    .games-grid.category-page-grid .game-card {
        aspect-ratio: 1 / 1 !important;
    }
    
    .game-card__image-container img,
    div#main-games.games-grid article.game-card .game-card__image-container img,
    .slider-game-image img {
        object-fit: fill !important;
        object-position: center !important;
        width: 100% !important;
        height: 100% !important;
    }
}

/* Custom Slider Card Sizes on Laptops - 16:9 Aspect Ratio */
@media screen and (min-width: 801px) {
    
    /* 16:9 Aspect Ratio for all cards */
    div#main-games.games-grid article.game-card .game-card__inner,
    .game-card__inner,
    .slider-game-inner,
    .games-grid.category-page-grid .game-card {
        aspect-ratio: 16 / 9 !important;
    }
    
    /* Main Grid Cards - Smaller Size */
    .games-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)) !important;
        gap: 1rem !important;
    }
    
    div#main-games.games-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)) !important;
        gap: 1.2rem !important;
    }
    
    /* CUSTOM SLIDER CARD SIZES - Laptop Only */
    .slider-game-card {
        flex: 0 0 200px !important; /* Custom width for sliders */
        max-width: 240px !important; /* Maximum width */
        min-width: 180px !important; /* Minimum width */
    }
    
    /* Category Sliders - Different size */
    .category-slider-track .slider-game-card {
        flex: 0 0 180px !important; /* Slightly smaller for category sliders */
        max-width: 220px !important;
        min-width: 160px !important;
    }
    
    /* Recently Played Slider - Custom size */
    .recently-played-slider .slider-game-card {
        flex: 0 0 220px !important; /* Bigger for recently played */
        max-width: 260px !important;
        min-width: 200px !important;
    }
    
    /* Slider Images - Fill 16:9 cards */
    .slider-game-image img {
        object-fit: fill !important;
        object-position: center !important;
        width: 100% !important;
        height: 100% !important;
    }
    
    /* Main Grid Images - Fill smaller cards */
    .game-card__image-container img,
    div#main-games.games-grid article.game-card .game-card__image-container img,
    .games-grid.category-page-grid .game-card .game-card__image-container img {
        object-fit: fill !important;
        object-position: center !important;
        width: 100% !important;
        height: 100% !important;
    }
}

/* Tablet Adjustments */
@media screen and (min-width: 801px) and (max-width: 1024px) {
    /* Tablet - Medium slider sizes */
    .slider-game-card {
        flex: 0 0 160px !important;
        max-width: 200px !important;
        min-width: 140px !important;
    }
    
    .category-slider-track .slider-game-card {
        flex: 0 0 140px !important;
        max-width: 180px !important;
        min-width: 120px !important;
    }
    
    .recently-played-slider .slider-game-card {
        flex: 0 0 180px !important;
        max-width: 220px !important;
        min-width: 160px !important;
    }
}

/* Large Desktop - Bigger sliders */
@media screen and (min-width: 1200px) {
    .slider-game-card {
        flex: 0 0 240px !important; /* Bigger on large screens */
        max-width: 280px !important;
        min-width: 220px !important;
    }
    
    .category-slider-track .slider-game-card {
        flex: 0 0 220px !important;
        max-width: 260px !important;
        min-width: 200px !important;
    }
    
    .recently-played-slider .slider-game-card {
        flex: 0 0 260px !important;
        max-width: 300px !important;
        min-width: 240px !important;
    }
}

/* Mobile - Keep Square */
@media screen and (max-width: 800px) {
    .game-card__inner,
    .slider-game-inner,
    div#main-games.games-grid article.game-card .game-card__inner,
    .games-grid.category-page-grid .game-card {
        aspect-ratio: 1 / 1 !important;
    }
    
    .game-card__image-container img,
    div#main-games.games-grid article.game-card .game-card__image-container img,
    .slider-game-image img {
        object-fit: fill !important;
        object-position: center !important;
        width: 100% !important;
        height: 100% !important;
    }
}

/* Same Size for Game Grid Cards and Sliders - Laptop Only - 16:9 Ratio */
@media screen and (min-width: 801px) {
    
    /* 16:9 Aspect Ratio for all cards */
    div#main-games.games-grid article.game-card .game-card__inner,
    .game-card__inner,
    .slider-game-inner,
    .games-grid.category-page-grid .game-card {
        aspect-ratio: 16 / 9 !important;
    }
    
    /* SAME SIZE FOR BOTH GRID CARDS AND SLIDERS */
    
    /* Main Grid Cards - Same as sliders */
    .games-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)) !important;
        gap: 1rem !important;
    }
    
    div#main-games.games-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)) !important;
        gap: 1.2rem !important;
    }
    
    /* Category Page Grid - Same size */
    .games-grid.category-page-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)) !important;
        gap: 1rem !important;
    }
    
    /* Slider Cards - Same size as grid cards */
    .slider-game-card {
        flex: 0 0 200px !important; /* Same as grid cards */
        max-width: 240px !important;
        min-width: 200px !important;
    }
    
    /* Category Sliders - Same size */
    .category-slider-track .slider-game-card {
        flex: 0 0 200px !important; /* Same size */
        max-width: 240px !important;
        min-width: 200px !important;
    }
    
    /* Recently Played Slider - Same size */
    .recently-played-slider .slider-game-card {
        flex: 0 0 200px !important; /* Same size */
        max-width: 240px !important;
        min-width: 200px !important;
    }
    
    /* All Images - Fill 16:9 cards exactly */
    .game-card__image-container img,
    div#main-games.games-grid article.game-card .game-card__image-container img,
    .games-grid.category-page-grid .game-card .game-card__image-container img,
    .slider-game-image img {
        object-fit: fill !important;
        object-position: center !important;
        width: 100% !important;
        height: 100% !important;
    }
}

/* Mobile - Keep Square and Different Size */
@media screen and (max-width: 800px) {
    .game-card__inner,
    .slider-game-inner,
    div#main-games.games-grid article.game-card .game-card__inner,
    .games-grid.category-page-grid .game-card {
        aspect-ratio: 1 / 1 !important;
    }
    
    .game-card__image-container img,
    div#main-games.games-grid article.game-card .game-card__image-container img,
    .slider-game-image img {
        object-fit: fill !important;
        object-position: center !important;
        width: 100% !important;
        height: 100% !important;
    }
}

/* Reduce Space Between Slider Cards - Laptop Only */
@media screen and (min-width: 801px) {
    
    /* Same Size for Game Grid Cards and Sliders - 16:9 Ratio */
    div#main-games.games-grid article.game-card .game-card__inner,
    .game-card__inner,
    .slider-game-inner,
    .games-grid.category-page-grid .game-card {
        aspect-ratio: 16 / 9 !important;
    }
    
    /* Grid Cards - Same size as sliders */
    .games-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)) !important;
        gap: 1rem !important;
    }
    
    div#main-games.games-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)) !important;
        gap: 1.2rem !important;
    }
    
    .games-grid.category-page-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)) !important;
        gap: 1rem !important;
    }
    
    /* REDUCED SPACING BETWEEN SLIDER CARDS */
    
    /* Category Slider Container - Reduced gap */
    .category-slider-container {
        gap: 0.5rem !important; /* Reduced from default spacing */
    }
    
    /* Category Slider Track - Reduced gap */
    .category-slider-track {
        gap: 0.5rem !important; /* Reduced gap between cards */
        display: flex !important;
    }
    
    /* All Slider Cards - Reduced margins */
    .slider-game-card {
        flex: 0 0 200px !important;
        max-width: 240px !important;
        min-width: 200px !important;
        margin-right: 0.5rem !important; /* Reduced from default */
        margin-left: 0 !important;
    }
    
    /* Remove extra margin from last slider card */
    .slider-game-card:last-child {
        margin-right: 0 !important;
    }
    
    /* Category Sliders - Same reduced spacing */
    .category-slider-track .slider-game-card {
        flex: 0 0 200px !important;
        max-width: 240px !important;
        min-width: 200px !important;
        margin-right: 0.5rem !important; /* Reduced spacing */
        margin-left: 0 !important;
    }
    
    .category-slider-track .slider-game-card:last-child {
        margin-right: 0 !important;
    }
    
    /* Recently Played Slider - Reduced spacing */
    .recently-played-slider .slider-game-card {
        flex: 0 0 200px !important;
        max-width: 240px !important;
        min-width: 200px !important;
        margin-right: 0.5rem !important; /* Reduced spacing */
        margin-left: 0 !important;
    }
    
    .recently-played-slider .slider-game-card:last-child {
        margin-right: 0 !important;
    }
    
    /* All Images - Fill 16:9 cards exactly */
    .game-card__image-container img,
    div#main-games.games-grid article.game-card .game-card__image-container img,
    .games-grid.category-page-grid .game-card .game-card__image-container img,
    .slider-game-image img {
        object-fit: fill !important;
        object-position: center !important;
        width: 100% !important;
        height: 100% !important;
    }
}

/* Mobile - Keep unchanged */
@media screen and (max-width: 800px) {
    .game-card__inner,
    .slider-game-inner,
    div#main-games.games-grid article.game-card .game-card__inner,
    .games-grid.category-page-grid .game-card {
        aspect-ratio: 1 / 1 !important;
    }
    
    .game-card__image-container img,
    div#main-games.games-grid article.game-card .game-card__image-container img,
    .slider-game-image img {
        object-fit: fill !important;
        object-position: center !important;
        width: 100% !important;
        height: 100% !important;
    }
}

/* Very Reduced Space Between Slider Cards - Laptop Only */
@media screen and (min-width: 801px) {
    
    /* === 16:9 ASPECT RATIO FOR LAPTOP GAME CARDS & SLIDERS === */
    /* Clean implementation - replaces multiple conflicting rules */

    @media screen and (min-width: 801px) {
        
        /* === 16:9 ASPECT RATIO FOR ALL GAME CARDS === */
        
        /* Main Games Grid Cards */
        div#main-games.games-grid article.game-card .game-card__inner,
        .game-card__inner,
        .games-grid.category-page-grid .game-card {
            aspect-ratio: 16 / 9 !important;
        }
        
        /* Slider Game Cards */
        .slider-game-inner {
            aspect-ratio: 16 / 9 !important;
        }
        
        /* === GRID LAYOUTS - OPTIMIZED FOR 16:9 CARDS === */
        
        /* Main Games Grid */
        div#main-games.games-grid {
            grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)) !important;
            gap: 1.2rem !important;
        }
        
        /* Regular Games Grid */
        .games-grid {
            grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)) !important;
            gap: 1rem !important;
        }
        
        /* Category Page Grid */
        .games-grid.category-page-grid {
            grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)) !important;
            gap: 1rem !important;
        }
        
        /* === SLIDER CARD SIZES - OPTIMIZED FOR 16:9 === */
        
        /* Main Slider Cards */
        .slider-game-card {
            flex: 0 0 220px !important;
            max-width: 260px !important;
            min-width: 200px !important;
        }
        
        /* Category Slider Cards */
        .category-slider-track .slider-game-card {
            flex: 0 0 200px !important;
            max-width: 240px !important;
            min-width: 180px !important;
        }
        
        /* Recently Played Slider Cards */
        .recently-played-slider .slider-game-card {
            flex: 0 0 240px !important;
            max-width: 280px !important;
            min-width: 220px !important;
        }
        
        /* === SLIDER SPACING OPTIMIZATION === */
        
        /* Reduce spacing between slider cards */
        .category-slider-track {
            gap: 0.6rem !important;
        }
        
        .slider-game-card {
            margin-right: 0.6rem !important;
            margin-left: 0 !important;
        }
        
        .slider-game-card:last-child {
            margin-right: 0 !important;
        }
        
        /* === IMAGE FITTING - FILL 16:9 CONTAINERS === */
        
        /* Grid Card Images */
        .game-card__image-container img,
        div#main-games.games-grid article.game-card .game-card__image-container img,
        .games-grid.category-page-grid .game-card .game-card__image-container img {
            object-fit: cover !important;
            object-position: center !important;
            width: 100% !important;
            height: 100% !important;
        }
        
        /* Slider Card Images */
        .slider-game-image img {
            object-fit: cover !important;
            object-position: center !important;
            width: 100% !important;
            height: 100% !important;
        }
    }

    /* === TABLET OPTIMIZATIONS === */
    @media screen and (min-width: 801px) and (max-width: 1024px) {
        
        /* Smaller cards for tablets */
        .games-grid {
            grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)) !important;
        }
        
        div#main-games.games-grid {
            grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)) !important;
        }
        
        .slider-game-card {
            flex: 0 0 180px !important;
            max-width: 220px !important;
            min-width: 160px !important;
        }
        
        .category-slider-track .slider-game-card {
            flex: 0 0 160px !important;
            max-width: 200px !important;
            min-width: 140px !important;
        }
        
        .recently-played-slider .slider-game-card {
            flex: 0 0 200px !important;
            max-width: 240px !important;
            min-width: 180px !important;
        }
    }

    /* === LARGE DESKTOP OPTIMIZATIONS === */
    @media screen and (min-width: 1200px) {
        
        /* Larger cards for big screens */
        .games-grid {
            grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)) !important;
        }
        
        div#main-games.games-grid {
            grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)) !important;
        }
        
        .slider-game-card {
            flex: 0 0 260px !important;
            max-width: 300px !important;
            min-width: 240px !important;
        }
        
        .category-slider-track .slider-game-card {
            flex: 0 0 240px !important;
            max-width: 280px !important;
            min-width: 220px !important;
        }
        
        .recently-played-slider .slider-game-card {
            flex: 0 0 280px !important;
            max-width: 320px !important;
            min-width: 260px !important;
        }
    }

    /* === MOBILE OVERRIDE - KEEP SQUARE === */
    @media screen and (max-width: 800px) {
        
        /* Force square aspect ratio on mobile */
        .game-card__inner,
        .slider-game-inner,
        div#main-games.games-grid article.game-card .game-card__inner,
        .games-grid.category-page-grid .game-card {
            aspect-ratio: 1 / 1 !important;
        }
        
        /* Mobile image fitting */
        .game-card__image-container img,
        div#main-games.games-grid article.game-card .game-card__image-container img,
        .slider-game-image img {
            object-fit: cover !important;
            object-position: center !important;
            width: 100% !important;
            height: 100% !important;
        }
    }
}

/* Mobile - Keep unchanged */
@media screen and (max-width: 800px) {
    .game-card__inner,
    .slider-game-inner,
    div#main-games.games-grid article.game-card .game-card__inner,
    .games-grid.category-page-grid .game-card {
        aspect-ratio: 1 / 1 !important;
    }
    
    .game-card__image-container img,
    div#main-games.games-grid article.game-card .game-card__image-container img,
    .slider-game-image img {
        object-fit: fill !important;
        object-position: center !important;
        width: 100% !important;
        height: 100% !important;
    }
}

/* Small Category Cards - Use Existing Icons (No Images) */

/* Hide category card images */
.category-card .game-card__image-container img,
.category-card .game-card__image-container picture {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
}

/* Small Category Cards Design */
.category-card {
    background: linear-gradient(135deg, rgba(26, 35, 46, 0.9) 0%, rgba(16, 21, 28, 0.95) 100%) !important;
    border: 1px solid rgba(16, 185, 129, 0.2) !important;
    border-radius: 12px !important;
    padding: 1rem !important;
    min-height: 100px !important;
    max-height: 120px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    transition: all 0.3s ease !important;
    cursor: pointer !important;
}

.category-card:hover {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(6, 214, 160, 0.05) 100%) !important;
    border-color: rgba(16, 185, 129, 0.4) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.2) !important;
}

/* Category Card Inner Container */
.category-card .game-card__inner {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
    height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    aspect-ratio: auto !important;
}

/* Category Card Content */
.category-card .game-card__content {
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
    height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.5rem !important;
}

/* Show and Style Existing Category Icons */
.category-card i,
.category-card .category-icon,
.category-card .game-card__content i {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    font-size: 2rem !important; /* Make icon bigger */
    color: #ffffff !important;
    margin-bottom: 0.3rem !important;
    transition: all 0.3s ease !important;
}

.category-card:hover i,
.category-card:hover .category-icon,
.category-card:hover .game-card__content i {
    color: #00ff88 !important; /* Green on hover */
    transform: scale(1.1) !important;
}

/* Category Title */
.category-card .game-card__title {
    color: #ffffff !important;
    font-size: 0.9rem !important;
    font-weight: 600 !important;
    text-align: center !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1.2 !important;
    text-transform: capitalize !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.category-card:hover .game-card__title {
    color: #00ff88 !important;
}

/* Hide category description and play button */
.category-card .game-card__category,
.category-card .game-card__play-btn {
    display: none !important;
}

/* Category Grid Layout - Smaller cards */
.games-grid.category-page-grid,
.categories-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)) !important;
    gap: 1rem !important;
}

/* If icons are in separate containers, make them visible */
.category-card .icon-container,
.category-card .category-icon-wrapper {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin-bottom: 0.3rem !important;
}

/* Make sure any FontAwesome or custom icons show */
.category-card .fa,
.category-card .fas,
.category-card .far,
.category-card .fab,
.category-card [class*="icon-"],
.category-card [class*="fa-"] {
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
    font-size: 2rem !important;
    color: #ffffff !important;
}

.category-card:hover .fa,
.category-card:hover .fas,
.category-card:hover .far,
.category-card:hover .fab,
.category-card:hover [class*="icon-"],
.category-card:hover [class*="fa-"] {
    color: #00ff88 !important;
    transform: scale(1.1) !important;
}

/* Mobile Category Cards */
@media screen and (max-width: 800px) {
    .category-card {
        min-height: 70px !important;
        max-height: 90px !important;
        padding: 0.8rem !important;
    }
    
    .category-card i,
    .category-card .category-icon,
    .category-card .game-card__content i,
    .category-card .fa,
    .category-card .fas,
    .category-card .far,
    .category-card .fab,
    .category-card [class*="icon-"],
    .category-card [class*="fa-"] {
        font-size: 1.5rem !important;
        margin-bottom: 0.2rem !important;
    }
    
    .category-card .game-card__title {
        font-size: 0.8rem !important;
    }
    
    .games-grid.category-page-grid,
    .categories-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)) !important;
        gap: 0.8rem !important;
    }
}

/* Small Category Cards - Show Icons, Hide Images Only */

/* Hide category card IMAGES but not the container or icons */
.category-card .game-card__image-container img,
.category-card .game-card__image-container picture {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
}

/* Keep the image container visible for fallback icons */
.category-card .game-card__image-container {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    align-items: center !important;
    justify-content: center !important;
    background: transparent !important;
    margin-bottom: 0.5rem !important;
}

/* Show fallback icons from displayCategoryImage function */
.category-card .game-card__image-container .placeholder-image,
.category-card .game-card__image-container i,
.category-card .placeholder-image,
.category-card .placeholder-image i {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    font-size: 2rem !important;
    color: #ffffff !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
}

/* Small Category Cards Design */
.category-card {
    background: linear-gradient(135deg, rgba(26, 35, 46, 0.9) 0%, rgba(16, 21, 28, 0.95) 100%) !important;
    border: 1px solid rgba(16, 185, 129, 0.2) !important;
    border-radius: 12px !important;
    padding: 1rem !important;
    min-height: 100px !important;
    max-height: 120px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    transition: all 0.3s ease !important;
    cursor: pointer !important;
}

.category-card:hover {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(6, 214, 160, 0.05) 100%) !important;
    border-color: rgba(16, 185, 129, 0.4) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.2) !important;
}

/* Category Card Inner Container */
.category-card .game-card__inner {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
    height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    aspect-ratio: auto !important;
}

.category-card .game-card__link {
    width: 100% !important;
    height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-decoration: none !important;
}

/* Category Card Content */
.category-card .game-card__content {
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
}

/* Icon hover effects */
.category-card:hover .game-card__image-container i,
.category-card:hover .placeholder-image i {
    color: #00ff88 !important;
    transform: scale(1.1) !important;
}

/* Category Title */
.category-card .game-card__title {
    color: #ffffff !important;
    font-size: 0.9rem !important;
    font-weight: 600 !important;
    text-align: center !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1.2 !important;
    text-transform: capitalize !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.category-card:hover .game-card__title {
    color: #00ff88 !important;
}

/* Hide category description and play button */
.category-card .game-card__category,
.category-card .game-card__play-btn {
    display: none !important;
}

/* Category Grid Layout - Smaller cards */
.games-grid.category-page-grid,
.categories-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)) !important;
    gap: 1rem !important;
}

/* Mobile Category Cards */
@media screen and (max-width: 800px) {
    .category-card {
        min-height: 80px !important;
        max-height: 100px !important;
        padding: 0.8rem !important;
    }
    
    .category-card .game-card__image-container i,
    .category-card .placeholder-image i {
        font-size: 1.5rem !important;
    }
    
    .category-card .game-card__title {
        font-size: 0.8rem !important;
    }
    
    .games-grid.category-page-grid,
    .categories-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)) !important;
        gap: 0.8rem !important;
    }
}

/* Category Cards with Icons Only - No Images */

/* Hide any remaining images */
.category-card .game-card__image-container img,
.category-card .game-card__image-container picture {
    display: none !important;
}

/* Small Category Cards Design */
.category-card {
    background: linear-gradient(135deg, rgba(26, 35, 46, 0.9) 0%, rgba(16, 21, 28, 0.95) 100%) !important;
    border: 1px solid rgba(16, 185, 129, 0.2) !important;
    border-radius: 12px !important;
    padding: 1rem !important;
    min-height: 100px !important;
    max-height: 120px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    transition: all 0.3s ease !important;
    cursor: pointer !important;
}

.category-card:hover {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(6, 214, 160, 0.05) 100%) !important;
    border-color: rgba(16, 185, 129, 0.4) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.2) !important;
}

/* Category Card Structure */
.category-card .game-card__inner {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
    height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    aspect-ratio: auto !important;
}

.category-card .game-card__link {
    width: 100% !important;
    height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-decoration: none !important;
    gap: 0.5rem !important;
}

/* Category Icon Container */
.category-card .game-card__image-container {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: transparent !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    width: auto !important;
    height: auto !important;
}

/* Category Icon Styling */
.category-card .category-card-icon,
.category-card .category-icon {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
    padding: 0 !important;
}

.category-card .category-card-icon i,
.category-card .category-icon i,
.category-card .game-card__image-container i {
    font-size: 2.2rem !important;
    color: #ffffff !important;
    margin: 0 !important;
    padding: 0 !important;
    transition: all 0.3s ease !important;
    display: block !important;
}

/* Icon hover effects */
.category-card:hover .category-card-icon i,
.category-card:hover .category-icon i,
.category-card:hover .game-card__image-container i {
    color: #00ff88 !important;
    transform: scale(1.15) !important;
}

/* Category Content */
.category-card .game-card__content {
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
}

/* Category Title */
.category-card .game-card__title {
    color: #ffffff !important;
    font-size: 0.9rem !important;
    font-weight: 600 !important;
    text-align: center !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1.2 !important;
    text-transform: capitalize !important;
    display: block !important;
}

.category-card:hover .game-card__title {
    color: #00ff88 !important;
}

/* Hide unwanted elements */
.category-card .game-card__category,
.category-card .game-card__play-btn {
    display: none !important;
}

/* Category Grid Layout */
.games-grid.category-page-grid,
.categories-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)) !important;
    gap: 1rem !important;
}

/* Mobile Category Cards */
@media screen and (max-width: 800px) {
    .category-card {
        min-height: 80px !important;
        max-height: 100px !important;
        padding: 0.8rem !important;
    }
    
    .category-card .category-card-icon i,
    .category-card .category-icon i,
    .category-card .game-card__image-container i {
        font-size: 1.8rem !important;
    }
    
    .category-card .game-card__title {
        font-size: 0.8rem !important;
    }
    
    .games-grid.category-page-grid,
    .categories-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)) !important;
        gap: 0.8rem !important;
    }
}

/* Categories 2-Row Slider */
.categories-slider-section {
    margin: 3rem 0;
    padding: 0;
}

.category-slider-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.category-title {
    color: #f3f4f6 !important; /* Exact color from style.txt */
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.category-title i {
    color: #10b981 !important; /* Exact color from style.txt */
    font-size: 1.6rem;
}

.slider-nav-buttons {
    display: flex;
    gap: 0.5rem;
}

.slider-nav-btn {
    background: linear-gradient(135deg, rgba(26, 35, 46, 0.9) 0%, rgba(16, 21, 28, 0.95) 100%);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 8px;
    color: #10b981;
    cursor: pointer;
    padding: 0.7rem;
    font-size: 1rem;
    transition: all 0.3s ease;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-nav-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border-color: #10b981;
    transform: translateY(-2px);
}

.slider-nav-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    background: rgba(26, 35, 46, 0.5);
}

/* Category Slider Container */
.category-slider-container {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(26, 35, 46, 0.3) 0%, rgba(16, 21, 28, 0.2) 100%);
    padding: 1rem;
}

.category-slider-wrapper {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

/* Individual Slider Rows */
.category-slider-row {
    overflow: hidden;
    position: relative;
}

.category-slider-track {
    display: flex;
    gap: 0.8rem;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

/* Category Cards in Slider */
.slider-category-card {
    flex: 0 0 140px;
    min-width: 140px;
    max-width: 160px;
    background: linear-gradient(135deg, rgba(26, 35, 46, 0.9) 0%, rgba(16, 21, 28, 0.95) 100%);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 10px;
    padding: 1rem;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-category-card:hover {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(6, 214, 160, 0.05) 100%);
    border-color: rgba(16, 185, 129, 0.4);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.15);
}

.slider-category-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    width: 100%;
    height: 100%;
    gap: 0.4rem;
}

/* Category Icons in Slider */
.slider-category-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.3rem;
}

.slider-category-icon i,
.category-slider-icon i {
    font-size: 1.8rem !important;
    color: #ffffff !important;
    transition: all 0.3s ease !important;
}

.slider-category-card:hover .slider-category-icon i,
.slider-category-card:hover .category-slider-icon i {
    color: #00ff88 !important;
    transform: scale(1.1) !important;
}

/* Category Titles in Slider */
.slider-category-content {
    width: 100%;
    text-align: center;
}

.slider-category-title {
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 600;
    margin: 0;
    line-height: 1.2;
    text-transform: capitalize;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.slider-category-card:hover .slider-category-title {
    color: #00ff88;
}

/* Mobile Responsive */
@media screen and (max-width: 800px) {
    .category-slider-header {
        flex-direction: column;
        gap: 1rem;
        margin-bottom: 1rem;
    }
    
    .category-title {
        font-size: 1.5rem;
    }
    
    .slider-nav-btn {
        width: 40px;
        height: 40px;
        padding: 0.5rem;
    }
    
    .slider-category-card {
        flex: 0 0 110px;
        min-width: 110px;
        max-width: 130px;
        height: 75px;
        padding: 0.7rem;
    }
    
    .slider-category-icon i,
    .category-slider-icon i {
        font-size: 1.4rem !important;
    }
    
    .slider-category-title {
        font-size: 0.65rem;
    }
    
    .category-slider-track {
        gap: 0.6rem;
    }
    
    .category-slider-wrapper {
        gap: 0.6rem;
    }
}

/* Very Small Mobile */
@media screen and (max-width: 480px) {
    .slider-category-card {
        flex: 0 0 95px;
        min-width: 95px;
        max-width: 115px;
        height: 65px;
        padding: 0.5rem;
    }
    
    .slider-category-icon i,
    .category-slider-icon i {
        font-size: 1.2rem !important;
    }
    
    .slider-category-title {
        font-size: 0.6rem;
    }
}

/* Categories Icon 2-Row Slider - Separate from Game Sliders */
.categories-icon-slider-section {
    margin: 3rem 0;
    padding: 0;
}

.category-icon-slider-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.category-icon-title {
    color: #f3f4f6;
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.category-icon-title i {
    color: #10b981;
    font-size: 1.6rem;
}

/* Category Icon Slider Container */
.category-icon-slider-container {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(26, 35, 46, 0.3) 0%, rgba(16, 21, 28, 0.2) 100%);
    padding: 1rem;
}

.category-icon-slider-wrapper {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

/* Individual Slider Rows */
.category-icon-slider-row {
    overflow: hidden;
    position: relative;
}

.category-icon-slider-track {
    display: flex;
    gap: 0.8rem;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

/* Category Icon Cards in Slider */
.slider-category-icon-card {
    flex: 0 0 140px;
    min-width: 140px;
    max-width: 160px;
    background: linear-gradient(135deg, rgba(26, 35, 46, 0.9) 0%, rgba(16, 21, 28, 0.95) 100%);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 10px;
    padding: 1rem;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-category-icon-card:hover {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(6, 214, 160, 0.05) 100%);
    border-color: rgba(16, 185, 129, 0.4);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.15);
}

.slider-category-icon-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    width: 100%;
    height: 100%;
    gap: 0.4rem;
}

/* Category Icons in Icon Slider */
.slider-category-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.3rem;
}

.slider-category-icon i,
.category-icon-slider-icon i {
    font-size: 1.8rem !important;
    color: #ffffff !important;
    transition: all 0.3s ease !important;
}

.slider-category-icon-card:hover .slider-category-icon i,
.slider-category-icon-card:hover .category-icon-slider-icon i {
    color: #00ff88 !important;
    transform: scale(1.1) !important;
}

/* Category Titles in Icon Slider */
.slider-category-icon-content {
    width: 100%;
    text-align: center;
}

.slider-category-icon-title {
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 600;
    margin: 0;
    line-height: 1.2;
    text-transform: capitalize;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.slider-category-icon-card:hover .slider-category-icon-title {
    color: #00ff88;
}

/* Mobile Responsive for Icon Slider */
@media screen and (max-width: 800px) {
    .category-icon-slider-header {
        flex-direction: column;
        gap: 1rem;
        margin-bottom: 1rem;
    }
    
    .category-icon-title {
        font-size: 1.5rem;
    }
    
    .slider-category-icon-card {
        flex: 0 0 110px;
        min-width: 110px;
        max-width: 130px;
        height: 75px;
        padding: 0.7rem;
    }
    
    .slider-category-icon i,
    .category-icon-slider-icon i {
        font-size: 1.4rem !important;
    }
    
    .slider-category-icon-title {
        font-size: 0.65rem;
    }
    
    .category-icon-slider-track {
        gap: 0.6rem;
    }
    
    .category-icon-slider-wrapper {
        gap: 0.6rem;
    }
}

/* Very Small Mobile for Icon Slider */
@media screen and (max-width: 480px) {
    .slider-category-icon-card {
        flex: 0 0 95px;
        min-width: 95px;
        max-width: 115px;
        height: 65px;
        padding: 0.5rem;
    }
    
    .slider-category-icon i,
    .category-icon-slider-icon i {
        font-size: 1.2rem !important;
    }
    
    .slider-category-icon-title {
        font-size: 0.6rem;
    }
}

@media (max-width: 800px) {
  .category-title {
    font-size: 1.3rem;
  }
}

/* === FIXED: EXACT COLORS FROM STYLE.TXT + VERTICAL ALIGNMENT === */

/* Game Card Titles - Exact colors from style.txt */
.game-card__external-title {
    font-size: 0.8rem;
    font-weight: 700;
    color: #f3f4f6 !important; /* Exact color from style.txt */
    margin: 0;
    line-height: 1.2;
    letter-spacing: 0.01em;
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    transition: color 0.3s ease;
    padding: 0 0.2rem;
}

.game-card:hover .game-card__external-title {
    color: #10b981 !important; /* Exact hover color from style.txt */
}

/* Slider Game Titles - Exact colors from style.txt */
.slider-game-external-title {
    font-size: 0.75rem;
    font-weight: 700;
    color: #f3f4f6 !important; /* Exact color from style.txt */
    margin: 0;
    line-height: 1.2;
    letter-spacing: 0.02em;
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    transition: color 0.3s ease;
    padding: 0 0.2rem;
}

.slider-game-card:hover .slider-game-external-title {
    color: #10b981 !important; /* Exact hover color from style.txt */
}

/* === FIXED: VERTICAL ALIGNMENT BETWEEN SLIDERS AND GRID === */

@media screen and (min-width: 801px) {
    
    /* === 16:9 ASPECT RATIO FOR ALL GAME CARDS === */
    
    /* Main Games Grid Cards */
    div#main-games.games-grid article.game-card .game-card__inner,
    .game-card__inner,
    .games-grid.category-page-grid .game-card {
        aspect-ratio: 16 / 9 !important;
    }
    
    /* Slider Game Cards */
    .slider-game-inner {
        aspect-ratio: 16 / 9 !important;
    }
    
    /* === FIXED: REMOVE PADDING TO ALIGN WITH GRID === */
    
    /* Slider Container - REMOVE padding that caused misalignment */
    .category-slider-container {
        overflow-x: auto;
        overflow-y: hidden;
        scrollbar-width: none;
        -ms-overflow-style: none;
        scroll-behavior: smooth;
        padding: 0 !important; /* REMOVED: was padding: 15px 0 */
        margin: 0;
    }
    
    /* Slider Track - Align perfectly with grid */
    .category-slider-track {
        display: flex;
        gap: 1rem !important; /* Match grid gap */
        padding: 0 !important; /* REMOVED: was padding: 0.5rem 0 */
        width: max-content;
        align-items: flex-start; /* Align tops of cards */
    }
    
    /* === GRID LAYOUTS - OPTIMIZED FOR 16:9 CARDS === */
    
    /* Main Games Grid */
    div#main-games.games-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)) !important;
        gap: 1.2rem !important;
    }
    
    /* Regular Games Grid */
    .games-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)) !important;
        gap: 1rem !important;
    }
    
    /* Category Page Grid */
    .games-grid.category-page-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)) !important;
        gap: 1rem !important;
    }
    
    /* === SLIDER CARD SIZES - MATCH GRID ALIGNMENT === */
    
    /* Main Slider Cards - Match grid card sizes */
    .slider-game-card {
        flex: 0 0 220px !important;
        max-width: 260px !important;
        min-width: 200px !important;
        margin: 0 !important; /* Remove margins that cause misalignment */
    }
    
    /* Category Slider Cards */
    .category-slider-track .slider-game-card {
        flex: 0 0 200px !important;
        max-width: 240px !important;
        min-width: 180px !important;
        margin: 0 !important; /* Remove margins that cause misalignment */
    }
    
    /* Recently Played Slider Cards */
    .recently-played-slider .slider-game-card {
        flex: 0 0 240px !important;
        max-width: 280px !important;
        min-width: 220px !important;
        margin: 0 !important; /* Remove margins that cause misalignment */
    }
    
    /* === IMAGE FITTING - FILL 16:9 CONTAINERS === */
    
    /* Grid Card Images */
    .game-card__image-container img,
    div#main-games.games-grid article.game-card .game-card__image-container img,
    .games-grid.category-page-grid .game-card .game-card__image-container img {
        object-fit: cover !important;
        object-position: center !important;
        width: 100% !important;
        height: 100% !important;
    }
    
    /* Slider Card Images */
    .slider-game-image img {
        object-fit: cover !important;
        object-position: center !important;
        width: 100% !important;
        height: 100% !important;
    }
}

/* === TABLET OPTIMIZATIONS === */
@media screen and (min-width: 801px) and (max-width: 1024px) {
    
    /* Smaller cards for tablets */
    .games-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)) !important;
    }
    
    div#main-games.games-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)) !important;
    }
    
    .slider-game-card {
        flex: 0 0 180px !important;
        max-width: 220px !important;
        min-width: 160px !important;
    }
    
    .category-slider-track .slider-game-card {
        flex: 0 0 160px !important;
        max-width: 200px !important;
        min-width: 140px !important;
    }
    
    .recently-played-slider .slider-game-card {
        flex: 0 0 200px !important;
        max-width: 240px !important;
        min-width: 180px !important;
    }
}

/* === LARGE DESKTOP OPTIMIZATIONS === */
@media screen and (min-width: 1200px) {
    
    /* Larger cards for big screens */
    .games-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)) !important;
    }
    
    div#main-games.games-grid {
        grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)) !important;
    }
    
    .slider-game-card {
        flex: 0 0 260px !important;
        max-width: 300px !important;
        min-width: 240px !important;
    }
    
    .category-slider-track .slider-game-card {
        flex: 0 0 240px !important;
        max-width: 280px !important;
        min-width: 220px !important;
    }
    
    .recently-played-slider .slider-game-card {
        flex: 0 0 280px !important;
        max-width: 320px !important;
        min-width: 260px !important;
    }
}

/* === MOBILE OVERRIDE - KEEP SQUARE === */
@media screen and (max-width: 800px) {
    
    /* Force square aspect ratio on mobile */
    .game-card__inner,
    .slider-game-inner,
    div#main-games.games-grid article.game-card .game-card__inner,
    .games-grid.category-page-grid .game-card {
        aspect-ratio: 1 / 1 !important;
    }
    
    /* Mobile image fitting */
    .game-card__image-container img,
    div#main-games.games-grid article.game-card .game-card__image-container img,
    .slider-game-image img {
        object-fit: cover !important;
        object-position: center !important;
        width: 100% !important;
        height: 100% !important;
    }
    
    /* Mobile titles - exact colors from style.txt */
    .game-card__external-title,
    .slider-game-external-title {
        color: #f3f4f6 !important;
    }
    
    .game-card:hover .game-card__external-title,
    .slider-game-card:hover .slider-game-external-title {
        color: #10b981 !important;
    }
}

/* === REDUCED SIZE SLIDER TITLES WITH NEW COLOR === */

/* Desktop Slider Titles - Smaller size */
.slider-game-external-title {
    font-size: 0.65rem !important; /* Reduced from 0.75rem */
    font-weight: 700;
    color: #8ca3b8 !important; /* Changed to muted text color */
    margin: 0;
    line-height: 1.1 !important; /* Slightly tighter line height */
    letter-spacing: 0.01em;
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    transition: color 0.3s ease;
    padding: 0 0.2rem;
}

.slider-game-card:hover .slider-game-external-title {
    color: #10b981 !important; /* Green on hover */
}

/* Mobile Slider Titles - Smaller size */
@media screen and (max-width: 800px) {
    .slider-game-external-title {
        font-size: 0.55rem !important; /* Reduced from 0.65rem */
        line-height: 1.0 !important; /* Even tighter on mobile */
        color: #8ca3b8 !important; /* Same muted color */
    }
    
    .slider-game-card:hover .slider-game-external-title {
        color: #10b981 !important; /* Green on hover */
    }
}

/* === SMALLER SLIDER TITLES WITH WEBSITE GREEN COLOR === */

/* Desktop Slider Titles - Smaller size with green color */
.slider-game-external-title {
    font-size: 0.65rem !important; /* Reduced from 0.75rem */
    font-weight: 700;
    color: #10b981 !important; /* Website's green color */
    margin: 0;
    line-height: 1.1 !important; /* Tighter line height */
    letter-spacing: 0.01em;
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    transition: color 0.3s ease;
    padding: 0 0.2rem;
}

.slider-game-card:hover .slider-game-external-title {
    color: #06d6a0 !important; /* Lighter green on hover */
}

/* Mobile Slider Titles - Smaller size with green color */
@media screen and (max-width: 800px) {
    .slider-game-external-title {
        font-size: 0.55rem !important; /* Reduced from 0.65rem */
        line-height: 1.0 !important; /* Tighter on mobile */
        color: #10b981 !important; /* Website's green color */
    }
    
    .slider-game-card:hover .slider-game-external-title {
        color: #06d6a0 !important; /* Lighter green on hover */
    }
}

/* === SMALLER SECTION TITLES WITH GREEN COLOR === */

/* Category/Section Titles - Reduced size with green color */
.category-title {
    color: #10b981 !important; /* Website's green color */
    font-size: 1.5rem !important; /* Reduced from 1.8rem */
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-transform: capitalize;
    letter-spacing: 0.5px;
    position: relative;
    display: inline-block;
    pointer-events: none;
    user-select: none;
    z-index: 1;
}

.category-title i {
    color: #10b981 !important; /* Same green for icons */
    font-size: 1.4rem !important; /* Reduced from 1.6rem */
}

.category-title::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 30px;
    height: 2px;
    background: linear-gradient(90deg, #10b981, transparent) !important; /* Green gradient underline */
    border-radius: 1px;
}

/* Mobile Section Titles */
@media screen and (max-width: 800px) {
    .category-title {
        font-size: 1.2rem !important; /* Reduced from 1.3rem */
        color: #10b981 !important; /* Green on mobile too */
    }
    
    .category-title i {
        font-size: 1.2rem !important; /* Smaller icon on mobile */
    }
}

/* === REVERT CARD TITLES TO ORIGINAL STYLE.TXT STYLING === */

/* Game Card Titles - Back to original */
.game-card__external-title {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text) !important; /* Back to original var(--text) */
    margin: 0;
    line-height: 1.2;
    letter-spacing: 0.01em;
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    transition: color 0.3s ease;
    padding: 0 0.2rem;
}

.game-card:hover .game-card__external-title {
    color: var(--primary) !important; /* Back to original var(--primary) */
}

/* Slider Game Card Titles - Back to original */
.slider-game-external-title {
    font-size: 0.75rem; /* Back to original size */
    font-weight: 700;
    color: var(--text) !important; /* Back to original var(--text) */
    margin: 0;
    line-height: 1.2; /* Back to original */
    letter-spacing: 0.02em;
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    transition: color 0.3s ease;
    padding: 0 0.2rem;
}

.slider-game-card:hover .slider-game-external-title {
    color: var(--primary) !important; /* Back to original var(--primary) */
}

/* Mobile Card Titles - Back to original */
@media screen and (max-width: 800px) {
    .game-card__external-title {
        font-size: 0.65rem !important; /* Back to original mobile size */
        color: var(--text) !important;
    }
    
    .slider-game-external-title {
        font-size: 0.65rem !important; /* Back to original mobile size */
        color: var(--text) !important;
    }
    
    .game-card:hover .game-card__external-title,
    .slider-game-card:hover .slider-game-external-title {
        color: var(--primary) !important;
    }
}

/* === FIX MOBILE SLIDER FUNCTIONALITY AND TITLE ALIGNMENT === */

/* Mobile Slider Container - Fix functionality */
@media screen and (max-width: 800px) {
    
    /* Fix slider container for mobile touch scrolling */
    .category-slider-container {
        overflow-x: auto !important;
        overflow-y: hidden !important;
        scrollbar-width: none !important;
        -ms-overflow-style: none !important;
        scroll-behavior: smooth !important;
        padding: 0 !important;
        margin: 0 !important;
        -webkit-overflow-scrolling: touch !important; /* Enable smooth touch scrolling */
        touch-action: pan-x !important; /* Allow horizontal scrolling */
    }
    
    /* Hide scrollbar on mobile */
    .category-slider-container::-webkit-scrollbar {
        display: none !important;
    }
    
    /* Mobile slider track - ensure proper scrolling */
    .category-slider-track {
        display: flex !important;
        gap: 0.6rem !important;
        padding: 0.5rem 0 !important;
        width: max-content !important;
        touch-action: pan-x !important; /* Allow horizontal scrolling */
    }
    
    /* Mobile slider cards - proper sizing */
    .slider-game-card {
        flex: 0 0 calc(33.333vw - 1rem) !important; /* 3 cards per viewport width */
        max-width: 110px !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 0.4rem !important;
        transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
        touch-action: manipulation !important; /* Enable touch interactions */
    }
}

/* === FIX SECTION TITLES ALIGNMENT ON MOBILE === */

/* Section Titles - Left aligned on mobile */
@media screen and (max-width: 800px) {
    
    /* Category slider header - proper alignment */
    .category-slider-header {
        padding: 0 !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: flex-start !important; /* Left align instead of space-between */
        text-align: left !important; /* Force left alignment */
        width: 100% !important;
    }
    
    /* Section titles - left aligned, not centered */
    .category-title {
        font-size: 1.2rem !important;
        color: #10b981 !important;
        text-align: left !important; /* Force left alignment */
        justify-content: flex-start !important;
        align-items: flex-start !important;
        margin: 0 !important;
        padding: 0 !important;
        width: auto !important;
        display: flex !important;
        flex-direction: row !important;
    }
    
    .category-title i {
        font-size: 1.2rem !important;
        margin-right: 0.3rem !important; /* Space between icon and text */
    }
    
    /* Hide navigation buttons on mobile with higher specificity */
    .category-slider-header .slider-nav-buttons,
    .slider-nav-buttons {
        display: none !important;
        visibility: hidden !important;
    }
    
    .slider-nav-btn {
        display: none !important;
        visibility: hidden !important;
    }
}

/* === ENSURE MOBILE SLIDERS WORK WITH TOUCH === */

/* Enable touch scrolling for all mobile sliders */
@media screen and (max-width: 800px) {
    
    /* All slider containers - touch enabled */
    .category-slider-container,
    .recently-played-slider,
    .category-icon-slider-container {
        -webkit-overflow-scrolling: touch !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        touch-action: pan-x !important;
        scroll-behavior: smooth !important;
    }
    
    /* All slider tracks - touch enabled */
    .category-slider-track,
    .recently-played-track,
    .category-icon-slider-track {
        touch-action: pan-x !important;
        width: max-content !important;
        display: flex !important;
    }
    
    /* All slider cards - touch enabled */
    .slider-game-card,
    .recently-played-card,
    .slider-category-icon-card {
        touch-action: manipulation !important;
        user-select: none !important;
        -webkit-user-select: none !important;
        -webkit-tap-highlight-color: transparent !important;
    }
}

/* === CATEGORY SLIDERS - MOBILE TOUCH SCROLLING === */

/* Category Sliders - Touch scrolling enabled */
@media screen and (max-width: 800px) {
    
    /* Categories Icon Slider Container - Touch enabled */
    .categories-icon-slider-section .category-icon-slider-container {
        -webkit-overflow-scrolling: touch !important; /* Smooth touch scrolling */
        overflow-x: auto !important;
        overflow-y: hidden !important;
        touch-action: pan-x !important; /* Enable horizontal scrolling */
        scroll-behavior: smooth !important;
        scrollbar-width: none !important;
        -ms-overflow-style: none !important;
        padding: 1rem !important;
        border-radius: 12px !important;
    }
    
    /* Category Icon Slider Wrapper - Touch enabled */
    .category-icon-slider-wrapper {
        display: flex !important;
        flex-direction: column !important;
        gap: 0.8rem !important;
        touch-action: pan-x !important; /* Enable horizontal scrolling */
    }
    
    /* Category Icon Slider Track - Touch enabled */
    .category-icon-slider-track {
        display: flex !important;
        gap: 0.6rem !important;
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
        will-change: transform !important;
        width: max-content !important;
        touch-action: pan-x !important; /* Enable horizontal scrolling */
    }
    
    /* Category Icon Cards - Touch interactions */
    .slider-category-icon-card {
        flex: 0 0 110px !important;
        min-width: 110px !important;
        max-width: 130px !important;
        height: 75px !important;
        padding: 0.7rem !important;
        touch-action: manipulation !important; /* Proper touch interactions */
        user-select: none !important;
        -webkit-user-select: none !important;
        -webkit-tap-highlight-color: transparent !important;
        cursor: pointer !important;
    }
    
    /* Categories 2-Row Slider - Touch enabled */
    .categories-slider-section .category-slider-container {
        -webkit-overflow-scrolling: touch !important; /* Smooth touch scrolling */
        overflow-x: auto !important;
        overflow-y: hidden !important;
        touch-action: pan-x !important; /* Enable horizontal scrolling */
        scroll-behavior: smooth !important;
        scrollbar-width: none !important;
        -ms-overflow-style: none !important;
    }
    
    /* Categories Slider Track - Touch enabled */
    .categories-slider-section .category-slider-track {
        display: flex !important;
        gap: 0.6rem !important;
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
        will-change: transform !important;
        width: max-content !important;
        touch-action: pan-x !important; /* Enable horizontal scrolling */
    }
    
    /* Category Cards in Slider - Touch interactions */
    .slider-category-card {
        flex: 0 0 140px !important;
        min-width: 140px !important;
        max-width: 160px !important;
        touch-action: manipulation !important; /* Proper touch interactions */
        user-select: none !important;
        -webkit-user-select: none !important;
        -webkit-tap-highlight-color: transparent !important;
        cursor: pointer !important;
    }
    
    /* Hide scrollbars on category sliders */
    .categories-icon-slider-section .category-icon-slider-container::-webkit-scrollbar,
    .categories-slider-section .category-slider-container::-webkit-scrollbar {
        display: none !important;
    }
}

/* === DESKTOP CATEGORY SLIDERS - ENSURE NO CONFLICTS === */

/* Desktop category sliders - maintain normal behavior */
@media screen and (min-width: 801px) {
    
    .categories-icon-slider-section .category-icon-slider-container,
    .categories-slider-section .category-slider-container {
        overflow: hidden !important; /* No scrolling on desktop */
        touch-action: auto !important;
    }
    
    .category-icon-slider-track,
    .categories-slider-section .category-slider-track {
        touch-action: auto !important;
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
    }
}

/* === ALIGN CATEGORIES SLIDER WITH GAME GRID === */

/* Categories Slider - Remove padding to align with grid */
@media screen and (min-width: 801px) {
    
    /* Categories Icon Slider Container - Align with grid */
    .categories-icon-slider-section .category-icon-slider-container {
        position: relative;
        overflow: hidden;
        border-radius: 12px;
        background: linear-gradient(135deg, rgba(26, 35, 46, 0.3) 0%, rgba(16, 21, 28, 0.2) 100%);
        padding: 0 !important; /* REMOVED: was padding: 1rem - causes misalignment */
        margin: 0 !important; /* Ensure no extra margins */
    }
    
    /* Categories Icon Slider Wrapper - No extra padding */
    .category-icon-slider-wrapper {
        display: flex;
        flex-direction: column;
        gap: 0.8rem;
        padding: 0 !important; /* Remove padding that causes misalignment */
        margin: 0 !important;
    }
    
    /* Categories Icon Slider Track - Align with grid */
    .category-icon-slider-track {
        display: flex;
        gap: 1rem !important; /* Match game grid gap */
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        will-change: transform;
        padding: 0 !important; /* Remove padding that causes misalignment */
        margin: 0 !important;
        align-items: flex-start !important; /* Align tops with grid cards */
    }
    
    /* Categories 2-Row Slider Container - Align with grid */
    .categories-slider-section .category-slider-container {
        overflow: hidden;
        border-radius: 12px;
        background: linear-gradient(135deg, rgba(26, 35, 46, 0.3) 0%, rgba(16, 21, 28, 0.2) 100%);
        padding: 0 !important; /* REMOVED: padding that caused misalignment */
        margin: 0 !important;
    }
    
    /* Categories Slider Wrapper - No extra padding */
    .categories-slider-section .category-slider-wrapper {
        display: flex;
        flex-direction: column;
        gap: 0.8rem;
        padding: 0 !important; /* Remove padding */
        margin: 0 !important;
    }
    
    /* Categories Slider Track - Align with grid */
    .categories-slider-section .category-slider-track {
        display: flex;
        gap: 1rem !important; /* Match game grid gap */
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        will-change: transform;
        padding: 0 !important; /* Remove padding */
        margin: 0 !important;
        align-items: flex-start !important; /* Align with grid cards */
    }
    
    /* Category Cards - Remove margins that cause misalignment */
    .slider-category-card,
    .slider-category-icon-card {
        margin: 0 !important; /* Remove all margins */
        padding: 1rem !important; /* Keep internal padding for content */
    }
}

/* === MOBILE - KEEP ORIGINAL PADDING FOR TOUCH SCROLLING === */
@media screen and (max-width: 800px) {
    
    /* Mobile - Keep padding for visual appearance */
    .categories-icon-slider-section .category-icon-slider-container {
        padding: 1rem !important; /* Keep padding on mobile */
    }
    
    .categories-slider-section .category-slider-container {
        padding: 1rem !important; /* Keep padding on mobile */
    }
    
    .category-icon-slider-wrapper,
    .categories-slider-section .category-slider-wrapper {
        padding: 0 !important; /* But remove wrapper padding */
    }
}

/* === SECTION SPACING - CONSISTENT WITH GAME SECTIONS === */

/* Categories sections - match game section spacing */
.categories-slider-section,
.categories-icon-slider-section {
    margin: 3rem 0 !important; /* Match game section margins */
    padding: 0 !important; /* No extra padding */
}

/* Category headers - align with game grid headers */
.category-slider-header,
.category-icon-slider-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem !important; /* Match game section header margin */
    padding: 0 !important; /* No extra padding */
}

/* === INCREASE SIZE OF CATEGORY SLIDER CARDS === */

/* Desktop Category Slider Cards - Larger size */
@media screen and (min-width: 801px) {
    
    /* Category Icon Cards - Increased size */
    .slider-category-icon-card {
        flex: 0 0 160px !important; /* Increased from 140px */
        min-width: 160px !important; /* Increased from 140px */
        max-width: 180px !important; /* Increased from 160px */
        background: linear-gradient(135deg, rgba(26, 35, 46, 0.9) 0%, rgba(16, 21, 28, 0.95) 100%);
        border: 1px solid rgba(16, 185, 129, 0.2);
        border-radius: 10px;
        padding: 1.2rem !important; /* Increased padding */
        text-align: center;
        transition: all 0.3s ease;
        cursor: pointer;
        height: 100px !important; /* Increased from 90px */
        display: flex;
        align-items: center;
        justify-content: center;
        margin: 0 !important;
    }
    
    /* Regular Category Cards - Increased size */
    .slider-category-card {
        flex: 0 0 180px !important; /* Increased from 140-160px */
        min-width: 180px !important;
        max-width: 200px !important;
        background: linear-gradient(135deg, rgba(26, 35, 46, 0.9) 0%, rgba(16, 21, 28, 0.95) 100%);
        border: 1px solid rgba(16, 185, 129, 0.2);
        border-radius: 12px;
        padding: 1.5rem !important; /* Increased padding */
        text-align: center;
        transition: all 0.3s ease;
        cursor: pointer;
        height: 120px !important; /* Increased height */
        display: flex;
        align-items: center;
        justify-content: center;
        margin: 0 !important;
    }
    
    /* Category Icons - Larger size */
    .slider-category-icon i,
    .slider-category-icon-card .slider-category-icon i {
        font-size: 2.2rem !important; /* Increased from 1.8rem */
        color: #ffffff !important;
        transition: all 0.3s ease !important;
    }
    
    /* Category Titles in Cards - Larger text */
    .slider-category-title,
    .slider-category-icon-title {
        color: #ffffff;
        font-size: 0.85rem !important; /* Increased from 0.75rem */
        font-weight: 600;
        margin: 0;
        line-height: 1.2;
        text-transform: capitalize;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}

/* Tablet Category Cards - Medium increase */
@media screen and (min-width: 801px) and (max-width: 1024px) {
    
    .slider-category-icon-card {
        flex: 0 0 140px !important; /* Slightly smaller on tablets */
        min-width: 140px !important;
        max-width: 160px !important;
        height: 85px !important;
        padding: 1rem !important;
    }
    
    .slider-category-card {
        flex: 0 0 160px !important;
        min-width: 160px !important;
        max-width: 180px !important;
        height: 100px !important;
        padding: 1.2rem !important;
    }
    
    .slider-category-icon i,
    .slider-category-icon-card .slider-category-icon i {
        font-size: 2rem !important;
    }
    
    .slider-category-title,
    .slider-category-icon-title {
        font-size: 0.8rem !important;
    }
}

/* Large Desktop Category Cards - Biggest size */
@media screen and (min-width: 1200px) {
    
    .slider-category-icon-card {
        flex: 0 0 180px !important; /* Largest on big screens */
        min-width: 180px !important;
        max-width: 200px !important;
        height: 110px !important;
        padding: 1.4rem !important;
    }
    
    .slider-category-card {
        flex: 0 0 200px !important;
        min-width: 200px !important;
        max-width: 220px !important;
        height: 130px !important;
        padding: 1.6rem !important;
    }
    
    .slider-category-icon i,
    .slider-category-icon-card .slider-category-icon i {
        font-size: 2.4rem !important;
    }
    
    .slider-category-title,
    .slider-category-icon-title {
        font-size: 0.9rem !important;
    }
}

/* Mobile Category Cards - Keep reasonable size */
@media screen and (max-width: 800px) {
    
    .slider-category-icon-card {
        flex: 0 0 120px !important; /* Slightly increased from 110px */
        min-width: 120px !important;
        max-width: 140px !important;
        height: 80px !important; /* Increased from 75px */
        padding: 0.8rem !important;
    }
    
    .slider-category-card {
        flex: 0 0 140px !important;
        min-width: 140px !important;
        max-width: 160px !important;
        height: 90px !important;
        padding: 1rem !important;
    }
    
    .slider-category-icon i,
    .slider-category-icon-card .slider-category-icon i {
        font-size: 1.6rem !important; /* Slightly increased */
    }
    
    .slider-category-title,
    .slider-category-icon-title {
        font-size: 0.7rem !important;
    }
}

/* === MOBILE SLIDER VERTICAL ALIGNMENT FIX === */

@media screen and (max-width: 800px) {
    
    /* Remove padding/margins that push sliders off the vertical line */
    .category-slider-container {
        padding: 0 !important;
        margin: 0 !important;
    }
    
    /* Remove track padding that causes misalignment */
    .category-slider-track {
        padding: 0 !important;
        margin: 0 !important;
    }
    
    /* Align slider section containers with grid */
    .categories-slider-section,
    .slider-section {
        padding-left: 0 !important;
        padding-right: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    
    /* Remove any container backgrounds that might add visual spacing */
    .category-slider-container {
        background: none !important;
        border-radius: 0 !important;
    }
}

/* === MOBILE SLIDER VERTICAL ALIGNMENT - COMPREHENSIVE FIX === */

@media screen and (max-width: 800px) {
    
    /* Match the exact container padding structure used by the grid */
    .container {
        padding-left: 0.5rem !important;
        padding-right: 0.5rem !important;
    }
    
    /* Ensure all slider sections use the same container structure as grid */
    .categories-slider-section,
    .slider-section,
    .category-slider-header {
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    
    /* Remove any extra container padding from slider containers */
    .category-slider-container {
        padding: 0 !important;
        margin: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    
    /* Remove track padding and ensure it starts at the same position as grid */
    .category-slider-track {
        padding: 0 !important;
        margin: 0 !important;
        padding-left: 0 !important;
        margin-left: 0 !important;
    }
    
    /* Force slider sections to align with the main container */
    .categories-slider-section {
        padding-left: 0 !important;
        padding-right: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    
    /* Ensure slider cards start at the exact same position as grid cards */
    .slider-game-card:first-child {
        margin-left: 0 !important;
        padding-left: 0 !important;
    }
}

/* === FORCE EXACT ALIGNMENT - MOBILE SLIDER VS GRID === */

@media screen and (max-width: 800px) {
    
    /* Step 1: Reset ALL slider section containers to match grid structure exactly */
    
    /* Main slider section - match the main content structure */
    .categories-slider-section,
    .slider-section {
        padding: 0 !important;
        margin: 0 !important;
        margin-bottom: 2rem !important; /* Match grid margin */
    }
    
    /* Category slider header - align with grid */
    .category-slider-header {
        padding: 0 !important;
        margin: 0 !important;
        margin-bottom: 1rem !important;
    }
    
    /* Step 2: Force slider container to match grid container exactly */
    
    /* Remove all container styling that might offset sliders */
    .category-slider-container {
        padding: 0 !important;
        margin: 0 !important;
        background: none !important;
        border: none !important;
        border-radius: 0 !important;
        box-shadow: none !important;
    }
    
    /* Step 3: Align slider track with grid start position */
    
    /* Make slider track behave exactly like grid */
    .category-slider-track {
        padding: 0 !important;
        margin: 0 !important;
        /* Force it to start at the exact same horizontal position as grid */
        margin-left: 0 !important;
        padding-left: 0 !important;
    }
    
    /* Step 4: Ensure first slider card starts at position 0 */
    
    .slider-game-card:first-child {
        margin-left: 0 !important;
        padding-left: 0 !important;
    }
    
    /* Step 5: If there's a wrapper around sliders, reset it */
    
    .slider-wrapper,
    .category-wrapper {
        padding: 0 !important;
        margin: 0 !important;
    }
    
    /* Step 6: Force the parent container to match */
    
    /* Make sure parent sections don't add offset */
    section:has(.category-slider-container),
    div:has(.category-slider-container) {
        padding-left: 0 !important;
        padding-right: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
}

/* === HIDE CATEGORY SLIDER ON MOBILE FOR TESTING === */

@media screen and (max-width: 800px) {
    
    /* Hide the entire category slider section on mobile */
    .categories-slider-section,
    .categories-icon-slider-section,
    .category-slider-header,
    .category-slider-container,
    .category-icon-slider-container {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
    }
    
    /* Also hide any category slider tracks */
    .category-slider-track,
    .category-icon-slider-track {
        display: none !important;
    }
    
    /* Hide category icon cards */
    .slider-category-icon-card,
    .slider-category-card {
        display: none !important;
    }
}

/* === HIDE ONLY CATEGORY SLIDER ON MOBILE (NOT GAME SLIDERS) === */

@media screen and (max-width: 800px) {
    
    /* Hide only the categories slider section - keep game sliders */
    .categories-slider-section {
        display: none !important;
    }
    
    /* Hide categories icon slider if it exists */
    .categories-icon-slider-section {
        display: none !important;
    }
    
    /* Hide category icon slider container */
    .category-icon-slider-container {
        display: none !important;
    }
    
    /* Hide category icon slider track */
    .category-icon-slider-track {
        display: none !important;
    }
    
    /* Hide individual category slider cards */
    .slider-category-icon-card,
    .slider-category-card {
        display: none !important;
    }
}

/* === HIDE ONLY CATEGORIES GRID ON MOBILE (KEEP GAME SLIDERS) === */

@media screen and (max-width: 800px) {
    
    /* Hide only the categories grid section (the one with category cards) */
    .categories-section {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
    }
    
    /* Hide the separator before the categories section */
    .section-separator:has(+ .categories-section) {
        display: none !important;
    }
    
    /* Keep all game sliders visible */
    .categories-slider-section {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    /* Keep game slider containers visible */
    .category-slider-container {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    /* Keep game slider tracks visible */
    .category-slider-track {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    /* Keep game slider cards visible */
    .slider-game-card {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
}

/* === HIDE ONLY CATEGORIES GRID - KEEP GAME SLIDER TITLES VISIBLE === */

@media screen and (max-width: 800px) {
    
    /* Hide ONLY the categories grid section (not the game sliders) */
    .categories-section {
        display: none !important;
    }
    
    /* Hide the separator before categories grid */
    .section-separator:has(+ .categories-section) {
        display: none !important;
    }
    
    /* === ENSURE GAME SLIDERS AND TITLES REMAIN VISIBLE === */
    
    /* Keep game slider sections visible */
    .categories-slider-section {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    /* Keep game slider headers and titles visible */
    .category-slider-header,
    .category-slider-header .category-title {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    /* Keep game slider titles visible and properly styled */
    .category-title {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        color: #10b981 !important;
        font-size: 1.5rem !important;
        font-weight: 700 !important;
        text-align: left !important; /* Left aligned, not centered */
    }
    
    /* Keep game slider containers visible */
    .category-slider-container {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    /* Keep game slider tracks visible */
    .category-slider-track {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    /* Keep game slider cards visible */
    .slider-game-card {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    /* Keep game card titles visible */
    .slider-game-external-title {
        display: -webkit-box !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
}

/* === MOBILE VERTICAL ALIGNMENT - MATCH SLIDER CARDS TO GRID CARDS === */

@media screen and (max-width: 800px) {
    
    /* === MAIN CONTAINER ALIGNMENT === */
    
    /* Ensure main content container has consistent padding */
    .main-content.container {
        padding-left: 0.5rem !important;
        padding-right: 0.5rem !important;
    }
    
    /* === GAME SLIDERS SECTION ALIGNMENT === */
    
    /* Remove all extra padding/margins from slider sections */
    .categories-slider-section {
        padding-left: 0 !important;
        padding-right: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    
    /* Remove padding from individual slider rows */
    .category-slider-row {
        padding-left: 0 !important;
        padding-right: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    
    /* Remove padding from slider headers */
    .category-slider-header {
        padding-left: 0 !important;
        padding-right: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    
    /* === SLIDER CONTAINER ALIGNMENT === */
    
    /* Force slider containers to have same padding as main content */
    .category-slider-container {
        padding-left: 0 !important;
        padding-right: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        background: none !important;
        border: none !important;
        border-radius: 0 !important;
    }
    
    /* === SLIDER TRACK ALIGNMENT === */
    
    /* Make slider tracks start at exact same position as grid */
    .category-slider-track {
        padding-left: 0 !important;
        padding-right: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    
    /* === FIRST SLIDER CARD ALIGNMENT === */
    
    /* Ensure first slider card starts at position 0 like grid */
    .slider-game-card:first-child {
        margin-left: 0 !important;
        padding-left: 0 !important;
    }
    
    /* === FORCE MAIN GRID AND SLIDERS TO SAME STARTING POSITION === */
    
    /* Main games grid */
    div#main-games.games-grid {
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    
    /* Game cards in grid */
    div#main-games.games-grid .game-card:first-child {
        margin-left: 0 !important;
        padding-left: 0 !important;
    }
    
    /* === ICON SLIDER ALIGNMENT (if present) === */
    
    /* Remove container padding from icon slider */
    .categories-icon-slider-section .container {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    
    .category-icon-slider-container {
        padding-left: 0 !important;
        padding-right: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
}

/* === MOBILE SLIDER ALIGNMENT FIX - MATCH CONTAINER PADDING === */

@media screen and (max-width: 800px) {
    
    /* Make slider sections match main content container padding exactly */
    .categories-slider-section {
        padding-left: 0.5rem !important;
        padding-right: 0.5rem !important;
        padding-top: 0 !important;
        padding-bottom: 0 !important;
    }
    
    /* Remove any conflicting padding from nested containers */
    .categories-slider-section .category-slider-row,
    .categories-slider-section .category-slider-header,
    .categories-slider-section .category-slider-container,
    .categories-slider-section .category-slider-track {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    
    /* Also fix slider sections that might have different class names */
    .slider-section {
        padding-left: 0.5rem !important;
        padding-right: 0.5rem !important;
        padding-top: 0 !important;
        padding-bottom: 0 !important;
    }
    
    /* Ensure slider track doesn't add extra padding */
    .category-slider-track {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    
    /* Remove any left margin from first slider card */
    .slider-game-card:first-child {
        margin-left: 0 !important;
    }

}

/* === ADD NAVIGATION BUTTONS TO ALL GAME SLIDERS - DESKTOP ONLY === */

@media screen and (min-width: 801px) {
    
    /* === MODIFY GAME SLIDER HEADERS TO INCLUDE NAVIGATION BUTTONS === */
    
    /* Game slider headers - add flexbox layout for title + buttons */
    .category-slider-header {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        margin-bottom: 1.5rem !important;
    }
    
    /* Ensure category title stays on the left */
    .category-title {
        margin: 0 !important;
        flex: 1 !important;
    }
    
    /* === ADD NAVIGATION BUTTONS TO EACH GAME SLIDER === */
    
    /* Create navigation buttons for each game slider row */
    .category-slider-row {
        position: relative;
    }
    
    /* Add navigation buttons after each slider header */
    .category-slider-header::after {
        content: '';
        display: flex;
        gap: 0.5rem;
        margin-left: 1rem;
    }
    
    /* Navigation buttons styling - match categories slider */
    .slider-nav-btn {
        width: 40px !important;
        height: 40px !important;
        background: linear-gradient(135deg, rgba(26, 35, 46, 0.9) 0%, rgba(16, 21, 28, 0.95) 100%) !important;
        border: 1px solid rgba(16, 185, 129, 0.3) !important;
        border-radius: 50% !important;
        color: #8ca3b8 !important;
        cursor: pointer !important;
        transition: all 0.3s ease !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        font-size: 0.9rem !important;
        backdrop-filter: blur(10px) !important;
    }
    
    .slider-nav-btn:hover {
        background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
        color: white !important;
        border-color: #10b981 !important;
        transform: translateY(-2px) !important;
        box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3) !important;
    }
    
    .slider-nav-btn:active {
        transform: translateY(0) !important;
    }
    
    .slider-nav-btn:disabled {
        opacity: 0.4 !important;
        cursor: not-allowed !important;
        transform: none !important;
    }
}

/* === HIDE NAVIGATION BUTTONS ON MOBILE === */

@media screen and (max-width: 800px) {
    .category-slider-header .slider-nav-buttons,
    .slider-nav-buttons {
        display: none !important;
        visibility: hidden !important;
    }
}

/* === NAVIGATION BUTTONS INLINE WITH TITLE + SMALLER SIZE - DESKTOP ONLY === */

@media screen and (min-width: 801px) {
    
    /* === GAME SLIDER HEADERS - BUTTONS ON SAME LINE === */
    
    /* Make sure header is flexbox with title and buttons on same line */
    .category-slider-header {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        margin-bottom: 1.5rem !important;
        gap: 1rem !important;
    }
    
    /* Title stays on the left */
    .category-title {
        margin: 0 !important;
        flex: 1 !important;
    }
    
    /* Navigation buttons container - inline with title */
    .category-slider-header .slider-nav-buttons {
        display: flex !important;
        gap: 0.3rem !important; /* Reduced gap between buttons */
        align-items: center !important;
        flex-shrink: 0 !important; /* Don't shrink buttons */
    }
    
    /* === SMALLER NAVIGATION BUTTONS === */
    
    /* Reduced size navigation buttons */
    .category-slider-header .slider-nav-btn {
        width: 32px !important; /* Reduced from 40px */
        height: 32px !important; /* Reduced from 40px */
        border: none !important;
        border-radius: 6px !important; /* Slightly smaller radius */
        background: rgba(16, 185, 129, 0.1) !important;
        color: var(--primary) !important;
        font-size: 0.8rem !important; /* Smaller icon */
        cursor: pointer !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        transition: all 0.3s ease !important;
        border: 1px solid rgba(16, 185, 129, 0.2) !important;
        z-index: 1001 !important;
        position: relative !important;
        pointer-events: auto !important;
    }
    
    .category-slider-header .slider-nav-btn:hover:not(:disabled) {
        background: var(--primary) !important;
        color: white !important;
        transform: scale(1.05) !important;
        box-shadow: 0 3px 8px rgba(16, 185, 129, 0.3) !important; /* Smaller shadow */
    }
    
    .category-slider-header .slider-nav-btn:disabled {
        opacity: 0.3 !important;
        cursor: not-allowed !important;
        transform: none !important;
    }
    
    /* === CATEGORIES SLIDER BUTTONS - MATCH SIZE === */
    
    /* Also reduce categories slider button size to match */
    .category-icon-slider-header .slider-nav-btn {
        width: 32px !important;
        height: 32px !important;
        font-size: 0.8rem !important;
        border-radius: 6px !important;
    }
    
    .category-icon-slider-header .slider-nav-buttons {
        gap: 0.3rem !important;
    }
}

/* === ADD SPACE BETWEEN GAME CARDS SLIDERS - LAPTOP ONLY === */

@media screen and (min-width: 801px) {
    
    /* Add space between individual game slider rows */
    .category-slider-row {
        margin-bottom: 3rem !important; /* Space between each game slider */
    }
    
    /* Remove extra margin from the last slider */
    .category-slider-row:last-child {
        margin-bottom: 2rem !important;
    }
    
    /* Alternative: Add space to the entire slider section */
    .categories-slider-section {
        margin-bottom: 4rem !important; /* Space after all game sliders */
    }
    
    /* Add space between slider sections if there are multiple */
    .categories-slider-section + .categories-slider-section {
        margin-top: 2rem !important;
    }
}

/* === HIDE BROWSE BY CATEGORY TITLE - KEEP NAVIGATION BUTTONS === */

@media screen and (min-width: 801px) {
    
    /* Hide only the title text, keep the navigation buttons */
    .category-icon-slider-header .category-icon-title {
        display: none !important;
        visibility: hidden !important;
    }
    
    /* Adjust header to only show navigation buttons on the right */
    .category-icon-slider-header {
        display: flex !important;
        justify-content: flex-end !important; /* Push buttons to right */
        align-items: center !important;
        margin-bottom: 1.5rem !important;
    }
    
    /* Ensure navigation buttons are visible */
    .category-icon-slider-header .slider-nav-buttons {
        display: flex !important;
        gap: 0.3rem !important;
    }
}

/* === REDUCE SPACE BETWEEN ABOUT US AND CATEGORIES SLIDER === */

/* Reduce margin after About Us section */
.about-section {
    margin-bottom: 1.5rem !important; /* Reduced from default 3rem */
}

/* Reduce margin before Categories Icon Slider */
.categories-icon-slider-section {
    margin-top: 1.5rem !important; /* Reduced from default 3rem */
}

/* Alternative: Target the specific combination */
.about-section + .categories-icon-slider-section {
    margin-top: 1rem !important; /* Even smaller gap when directly following About Us */
}

/* Language Switcher Styling */
.language-switcher {
    position: relative;
    margin-left: 1rem;
    font-family: var(--font);
}

.current-language {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, rgba(26, 35, 46, 0.98) 0%, rgba(16, 21, 28, 0.95) 100%);
    border: 1px solid var(--border);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--text-muted);
    min-width: 120px;
    backdrop-filter: blur(10px);
}

.current-language:hover {
    background: linear-gradient(135deg, rgba(26, 35, 46, 0.95) 0%, rgba(16, 21, 28, 0.98) 100%);
    color: var(--text);
    border-color: var(--primary);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.current-language i.fa-globe {
    color: var(--primary);
    font-size: 1rem;
}

.current-language i.fa-chevron-down {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
    margin-left: auto;
}

.language-switcher:hover .current-language i.fa-chevron-down {
    transform: rotate(180deg);
}

.language-dropdown {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    background: linear-gradient(135deg, rgba(26, 35, 46, 0.98) 0%, rgba(16, 21, 28, 0.95) 100%);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 0.5rem;
    min-width: 160px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.3s, visibility 0s linear 0.3s, transform 0.3s;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(10px);
}

.language-switcher:hover .language-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    transition-delay: 0.2s;
}

/* Add a buffer zone to prevent accidental mouseout */
.language-dropdown::before {
    content: '';
    position: absolute;
    top: -20px;
    left: 0;
    right: 0;
    height: 20px;
}

.language-dropdown li {
    list-style: none;
}

.language-dropdown a {
    display: flex;
    align-items: center;
    padding: 0.6rem 1rem;
    color: var(--text-muted);
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.2s ease;
    font-size: 0.95rem;
}

.language-dropdown a:hover {
    background: rgba(16, 185, 129, 0.1);
    color: var(--text);
    transform: translateX(3px);
}

.language-dropdown li.active a {
    color: var(--primary);
    background: rgba(16, 185, 129, 0.1);
    font-weight: 600;
}

/* RTL Language Support */
[dir="rtl"] .language-switcher {
    margin-left: 0;
    margin-right: 1rem;
}

[dir="rtl"] .current-language i.fa-chevron-down {
    margin-left: 0;
    margin-right: auto;
}

[dir="rtl"] .language-dropdown {
    right: auto;
    left: 0;
    text-align: right;
}

[dir="rtl"] .language-dropdown a {
    flex-direction: row-reverse;
}

[dir="rtl"] .language-dropdown a:hover {
    transform: translateX(-3px);
}

/* Animation for dropdown */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile Styles */
@media (max-width: 800px) {
    .language-switcher {
        position: fixed;
        bottom: 80px;
        right: 1rem;
        margin: 0;
        z-index: 999;
    }

    [dir="rtl"] .language-switcher {
        right: auto;
        left: 1rem;
    }

    .current-language {
        background: linear-gradient(135deg, rgba(26, 35, 46, 0.98) 0%, rgba(16, 21, 28, 0.95) 100%);
        backdrop-filter: blur(10px);
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
        border-color: rgba(16, 185, 129, 0.2);
    }

    .language-dropdown {
        bottom: calc(100% + 0.5rem);
        top: auto;
        right: 0;
        background: linear-gradient(135deg, rgba(26, 35, 46, 0.98) 0%, rgba(16, 21, 28, 0.95) 100%);
        backdrop-filter: blur(10px);
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.2);
    }

    [dir="rtl"] .language-dropdown {
        right: auto;
        left: 0;
    }
}

/* Mobile search bar visibility */
.mobile-search-overlay {
    display: none !important;
}

/* Mobile search bar only shows on mobile devices */
@media screen and (max-width: 800px) {
    .mobile-search-overlay {
        display: none !important; /* Initially hidden */
    }
    
    .mobile-search-overlay.show {
        display: flex !important; /* Only show when .show class is added */
    }
    
    /* Hide desktop search on mobile */
    .desktop-search {
        display: none !important;
    }
}

/* Desktop search bar only shows on desktop */
@media screen and (min-width: 801px) {
    .mobile-search-overlay,
    .mobile-search-container,
    .mobile-search-input {
        display: none !important;
    }
    
    /* Show desktop search */
    .desktop-search {
        display: block !important;
    }
}

/* Search bar visibility rules */
.mobile-search-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 9999;
    backdrop-filter: blur(5px);
}

/* Desktop search visibility */
.desktop-search {
    display: block;
}

/* Mobile-specific rules */
@media screen and (max-width: 800px) {
    .desktop-search {
        display: none !important;
    }
    
    .mobile-search-overlay {
        display: none;
    }
    
    .mobile-search-overlay.show {
        display: flex;
    }
}

/* Desktop-specific rules */
@media screen and (min-width: 801px) {
    .mobile-search-overlay,
    .mobile-search-container,
    .mobile-search-input,
    .mobile-search-btn {
        display: none !important;
    }
}

/* Category Slider Styles */
.category-slider-row {
    margin-bottom: 2rem;
}

.category-slider-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.slider-nav-buttons {
    display: flex;
    gap: 0.5rem;
}

.slider-nav-btn {
    background: var(--card);
    border: 2px solid var(--border);
    color: var(--text);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.slider-nav-btn:hover:not(:disabled) {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
}

.slider-nav-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.category-slider-container {
    overflow: hidden;
    position: relative;
}

.category-slider-track {
    display: flex;
    gap: 1rem;
    transition: transform 0.3s ease;
    margin-right: 1rem; /* Add extra space for last card */
}

.category-slider-container {
    margin-right: -1rem; /* Compensate for the extra space */
}

/* Force LTR for sliders in both LTR and RTL modes */
[dir="rtl"] .category-slider-container {
    direction: ltr;
}

[dir="rtl"] .category-slider-header {
    direction: rtl;
}

[dir="rtl"] .category-slider-track {
    direction: ltr;
}

[dir="rtl"] .slider-game-card {
    direction: rtl;
}

/* Keep slider navigation consistent */
[dir="rtl"] .slider-nav-buttons {
    direction: rtl;
    flex-direction: row-reverse;
}

/* Force LTR for sliders */
.category-slider-track {
    direction: ltr;
}

.slider-game-card {
    flex: 0 0 calc((100% - 5rem) / 6); /* 6 cards per row on desktop */
}

/* Responsive slider card sizes */
@media (max-width: 1200px) {
    .slider-game-card {
        flex: 0 0 calc((100% - 4rem) / 5); /* 5 cards per row */
    }
}

@media (max-width: 992px) {
    .slider-game-card {
        flex: 0 0 calc((100% - 3rem) / 4); /* 4 cards per row */
    }
}

@media (max-width: 768px) {
    .slider-game-card {
        flex: 0 0 calc((100% - 2rem) / 3); /* 3 cards per row */
    }
}

@media (max-width: 576px) {
    .slider-game-card {
        flex: 0 0 calc((100% - 1rem) / 2); /* 2 cards per row */
    }
}




