/* ========================================
   PLAY BEST GAMES - APPLE-STYLE DESIGN SYSTEM
   Mobile-First Responsive CSS
   ======================================== */

/* ========================================
   CSS CUSTOM PROPERTIES (Design Tokens)
   ======================================== */
:root {
  /* Enhanced Color System - Primary Scales */
  --color-white: #ffffff;
  --color-black: #000000;

  /* Dark Professional Colors */
  --color-accent-blue: #3b82f6;
  --color-accent-gray: #6b7280;
  --color-accent-light: #9ca3af;

  /* Primary Cyberpunk Scale */
  --color-primary-50: #f0e6ff;
  --color-primary-100: #d4b3ff;
  --color-primary-200: #b880ff;
  --color-primary-300: #9c4dff;
  --color-primary-400: #8338ec;
  --color-primary-500: #7209b7;
  --color-primary-600: #560bad;
  --color-primary-700: #3c096c;
  --color-primary-800: #240046;
  --color-primary-900: #10002b;

  /* Dark Cyberpunk Gray Scale */
  --color-gray-50: #1a1a2e;
  --color-gray-100: #16213e;
  --color-gray-200: #0f3460;
  --color-gray-300: #1a1a2e;
  --color-gray-400: #2d2d44;
  --color-gray-500: #3f3f5c;
  --color-gray-600: #5c5c7c;
  --color-gray-700: #7a7a9f;
  --color-gray-800: #9999bb;
  --color-gray-900: #e0e1e5;

  /* Semantic Colors */
  --color-success: #34c759;
  --color-success-light: #d1f4e0;
  --color-warning: #ff9500;
  --color-warning-light: #fff4e6;
  --color-error: #ff3b30;
  --color-error-light: #ffe5e3;
  --color-info: #5ac8fa;
  --color-info-light: #e3f7fd;

  /* Dark Professional Theme */
  --color-background: #000000;
  --color-background-light: #0f0f0f;
  --color-background-card: #1a1a1a;
  --color-placeholder: #1a1a1a;
  --color-text-primary: #ffffff;
  --color-text-secondary: #a1a1a1;
  --color-text-tertiary: #666666;
  --color-accent: #ffffff;
  --color-accent-hover: #a1a1a1;
  --color-border: #1a1a1a;
  --color-shadow: rgba(0, 0, 0, 0.5);

  /* Neon Glow Effects */
  --glow-pink: 0 0 20px rgba(255, 0, 110, 0.8), 0 0 40px rgba(255, 0, 110, 0.4);
  --glow-cyan: 0 0 20px rgba(0, 245, 255, 0.8), 0 0 40px rgba(0, 245, 255, 0.4);
  --glow-purple: 0 0 20px rgba(131, 56, 236, 0.8), 0 0 40px rgba(131, 56, 236, 0.4);
  --glow-green: 0 0 20px rgba(6, 255, 165, 0.8), 0 0 40px rgba(6, 255, 165, 0.4);

  /* Compact Spacing System */
  --space-2xs: 2px;
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 12px;
  --space-lg: 16px;
  --space-xl: 24px;
  --space-2xl: 32px;
  --space-3xl: 48px;
  --space-4xl: 64px;
  --space-5xl: 96px;

  /* Border Radius */
  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-2xl: 24px;
  --radius-full: 9999px;

  /* Typography - Monospace First */
  --font-sans: 'SF Mono', 'JetBrains Mono', 'IBM Plex Mono', 'Fira Code', 'Consolas', 'Monaco', monospace;
  --font-mono: 'SF Mono', 'JetBrains Mono', 'IBM Plex Mono', 'Fira Code', 'Consolas', 'Monaco', monospace;

  /* Fluid Typography - Responsive Font Sizes */
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);     /* 12-14px */
  --text-sm: clamp(0.875rem, 0.85rem + 0.125vw, 1rem);       /* 14-16px */
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);      /* 16-18px */
  --text-lg: clamp(1.125rem, 1.05rem + 0.375vw, 1.25rem);    /* 18-20px */
  --text-xl: clamp(1.25rem, 1.15rem + 0.5vw, 1.5rem);        /* 20-24px */
  --text-2xl: clamp(1.5rem, 1.3rem + 1vw, 2rem);             /* 24-32px */
  --text-3xl: clamp(2rem, 1.7rem + 1.5vw, 2.5rem);           /* 32-40px */
  --text-4xl: clamp(2.5rem, 2rem + 2.5vw, 3.5rem);           /* 40-56px */
  --text-5xl: clamp(3rem, 2.5rem + 2.5vw, 4rem);             /* 48-64px */
  --text-6xl: clamp(3.5rem, 3rem + 2.5vw, 4.5rem);           /* 56-72px */

  /* Line Heights */
  --leading-tight: 1.2;
  --leading-snug: 1.375;
  --leading-normal: 1.5;
  --leading-relaxed: 1.75;
  --leading-loose: 2;

  /* Enhanced Shadows with Layering */
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
  --shadow-inner: inset 0 2px 4px 0 rgba(0, 0, 0, 0.06);

  /* Transitions - Improved Easing */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 350ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: 500ms cubic-bezier(0.68, -0.55, 0.265, 1.55);

  /* Container Widths */
  --container-sm: 640px;
  --container-md: 768px;
  --container-lg: 1024px;
  --container-xl: 1280px;
  --container-2xl: 1536px;

  /* Z-Index Scale */
  --z-base: 0;
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-fixed: 300;
  --z-modal-backdrop: 400;
  --z-modal: 500;
  --z-popover: 600;
  --z-tooltip: 700;
}

/* ========================================
   DARK MODE
   ======================================== */
[data-theme="dark"] {
  /* Dark Mode Colors */
  --color-white: #000000;
  --color-background: #1d1d1f;
  --color-background-light: #161617;
  --color-placeholder: #2d2d2f;
  --color-text-primary: #f5f5f7;
  --color-text-secondary: #a1a1a6;
  --color-text-tertiary: #86868b;
  --color-accent: #2997ff;
  --color-accent-hover: #409cff;
  --color-border: #424245;
  --color-shadow: rgba(0, 0, 0, 0.3);
}

/* Smooth color transitions for theme switching */
body,
.nav,
.hero,
.game-card,
.faq-item,
.faq-question,
.footer,
.about-image,
.game-image,
.btn-secondary {
  transition: background-color var(--transition-base), color var(--transition-base), border-color var(--transition-base);
}

/* ========================================
   RESET & BASE STYLES
   ======================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  color: var(--color-text-primary);
  background: #000000;
  line-height: var(--leading-normal);
  overflow-x: hidden;
  position: relative;
}

/* ========================================
   TYPOGRAPHY
   ======================================== */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: var(--leading-tight);
  letter-spacing: -0.02em;
  color: var(--color-text-primary);
}

h1 {
  font-size: var(--text-4xl);
  margin-bottom: var(--space-md);
}

h2 {
  font-size: var(--text-3xl);
  margin-bottom: var(--space-md);
}

h3 {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-sm);
}

p {
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-sm);
}

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-accent-hover);
}

/* ========================================
   LAYOUT UTILITIES
   ======================================== */
.container {
  width: 100%;
  max-width: var(--container-xl);
  margin: 0 auto;
  padding: 0 var(--space-sm);
}

.section {
  padding: var(--space-2xl) 0;
}

.section-large {
  padding: var(--space-3xl) 0;
}

/* ========================================
   NAVIGATION
   ======================================== */
.nav {
  position: sticky;
  top: 0;
  width: 100%;
  background-color: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid #1a1a1a;
  z-index: 1000;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-md) var(--space-lg);
  max-width: var(--container-xl);
  margin: 0 auto;
}

.nav-logo {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-text-primary);
}

.nav-links {
  display: flex;
  gap: var(--space-md);
  list-style: none;
}

.nav-links a {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  font-weight: 500;
  transition: color var(--transition-fast);
}

.nav-links a:hover {
  color: var(--color-text-primary);
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero {
  min-height: 50vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: transparent;
  padding: var(--space-2xl) var(--space-sm);
  position: relative;
}

.hero-content {
  max-width: 800px;
}

.hero-title {
  font-size: var(--text-4xl);
  font-weight: 700;
  margin-bottom: var(--space-md);
  color: var(--color-text-primary);
  letter-spacing: -0.02em;
}

.hero-subtitle {
  font-size: var(--text-lg);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-xl);
  line-height: var(--leading-relaxed);
  animation: slideUp 0.8s ease-out;
}

.hero-buttons {
  display: flex;
  gap: var(--space-sm);
  justify-content: center;
  flex-wrap: wrap;
  animation: slideUp 1s ease-out;
}

/* ========================================
   GAME CAROUSEL / FLIPPER
   ======================================== */
.game-carousel {
  position: relative;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: var(--space-3xl) var(--space-md);
  overflow: hidden;
}

.carousel-container {
  position: relative;
  width: 100%;
  height: 600px;
  perspective: 1000px;
}

.carousel-track {
  position: relative;
  width: 100%;
  height: 100%;
}

.carousel-slide {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
  transform: scale(0.8);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

.carousel-slide.active {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
  z-index: 2;
}

.carousel-slide-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
  height: 100%;
  background: linear-gradient(135deg, var(--color-background-card) 0%, rgba(131, 56, 236, 0.1) 100%);
  border-radius: var(--radius-2xl);
  padding: var(--space-3xl);
  box-shadow: var(--glow-purple), 0 20px 60px rgba(0, 0, 0, 0.8);
  border: 1px solid rgba(255, 0, 255, 0.3);
  backdrop-filter: blur(10px);
}

.carousel-game-info h2 {
  font-size: var(--text-4xl);
  font-weight: 700;
  margin-bottom: var(--space-md);
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, var(--color-neon-cyan), var(--color-neon-pink));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.carousel-game-tagline {
  font-size: var(--text-xl);
  color: var(--color-neon-green);
  margin-bottom: var(--space-lg);
}

.carousel-game-description {
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-xl);
}

.carousel-game-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-xl);
}

.carousel-game-icon {
  width: 100%;
  max-width: 350px;
  aspect-ratio: 1;
  object-fit: contain;
  border-radius: var(--radius-2xl);
  transition: all 0.3s ease;
  filter: drop-shadow(0 0 20px rgba(131, 56, 236, 0.5));
}

.carousel-game-icon:hover {
  transform: scale(1.05);
  filter: drop-shadow(0 0 30px rgba(255, 0, 255, 0.6));
}

.carousel-controls {
  display: flex;
  gap: var(--space-sm);
  justify-content: center;
  margin-top: var(--space-xl);
}

.carousel-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--color-gray-300);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.carousel-dot.active {
  background: var(--color-accent);
  transform: scale(1.3);
}

.carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: var(--color-white);
  border: 2px solid var(--color-border);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s ease;
  font-size: var(--text-xl);
  font-weight: 700;
}

.carousel-nav:hover {
  background: var(--color-accent);
  color: var(--color-white);
  border-color: var(--color-accent);
  transform: translateY(-50%) scale(1.1);
}

.carousel-nav.prev {
  left: var(--space-md);
}

.carousel-nav.next {
  right: var(--space-md);
}

/* ========================================
   THUMBNAIL GALLERY (Game Pages)
   ======================================== */
.thumbnail-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: var(--space-sm);
  margin: var(--space-lg) 0;
}

.thumbnail {
  position: relative;
  aspect-ratio: 9/16;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.thumbnail:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.95);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: var(--space-lg);
}

.lightbox.active {
  display: flex;
}

.lightbox-content {
  max-width: 90%;
  max-height: 90vh;
  border-radius: var(--radius-lg);
}

.lightbox-close {
  position: absolute;
  top: var(--space-lg);
  right: var(--space-lg);
  background: var(--color-white);
  color: var(--color-black);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  font-size: var(--text-xl);
  font-weight: 700;
}

.game-video-compact {
  width: 100%;
  max-width: 400px;
  border-radius: var(--radius-md);
  margin-bottom: var(--space-lg);
}

/* ========================================
   BUTTONS
   ======================================== */
.btn {
  display: inline-block;
  padding: var(--space-sm) var(--space-lg);
  font-size: var(--text-base);
  font-weight: 600;
  border-radius: var(--radius-xl);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: #ffffff;
  color: #000000;
  border: 1px solid #ffffff;
  padding: var(--space-sm) var(--space-lg);
  font-size: var(--text-sm);
}

.btn-primary:hover {
  background: #e5e5e5;
  transform: none;
  box-shadow: none;
}

.btn-secondary {
  background-color: transparent;
  color: #ffffff;
  border: 1px solid #333333;
  padding: var(--space-sm) var(--space-lg);
  font-size: var(--text-sm);
}

.btn-secondary:hover {
  background-color: #0f0f0f;
  border-color: #666666;
  transform: none;
}

/* ========================================
   ABOUT SECTION
   ======================================== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
  align-items: center;
}

.about-content h2 {
  margin-bottom: var(--space-md);
}

.about-content p {
  font-size: var(--text-lg);
  line-height: var(--leading-relaxed);
}

.about-image {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  background-color: var(--color-placeholder);
  aspect-ratio: 16 / 10;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-tertiary);
  font-size: var(--text-sm);
}

/* ========================================
   GAMES GRID
   ======================================== */
.games-header {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.games-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}

.game-card {
  background-color: var(--color-white);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
  border: 1px solid var(--color-border);
}

.game-card:hover {
  /* Hover effect removed to prevent overlap */
}

.game-image {
  width: 100%;
  height: 200px;
  background-color: var(--color-placeholder);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-tertiary);
}

.game-badge {
  display: inline-block;
  padding: var(--space-xs) var(--space-sm);
  background-color: var(--color-background);
  border-radius: var(--radius-sm);
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-secondary);
  margin-bottom: var(--space-sm);
}

.game-title {
  font-size: var(--text-xl);
  margin-bottom: var(--space-sm);
  color: var(--color-text-primary);
}

.game-description {
  font-size: var(--text-base);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-md);
  line-height: var(--leading-relaxed);
}

.game-buttons {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

.btn-small {
  padding: var(--space-xs) var(--space-md);
  font-size: var(--text-sm);
}

/* ========================================
   FAQ PAGE
   ======================================== */
.faq-header {
  text-align: center;
  margin-bottom: var(--space-2xl);
  padding: var(--space-xl) var(--space-sm);
}

.faq-header h1 {
  font-size: var(--text-4xl);
  margin-bottom: var(--space-md);
}

.faq-header p {
  font-size: var(--text-lg);
  color: var(--color-text-secondary);
}

.faq-category {
  margin-bottom: var(--space-2xl);
}

.faq-category-title {
  font-size: var(--text-2xl);
  font-weight: 700;
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-sm);
  border-bottom: 2px solid var(--color-border);
}

.faq-item {
  margin-bottom: var(--space-md);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  background-color: var(--color-white);
}

.faq-question {
  width: 100%;
  text-align: left;
  padding: var(--space-md);
  background-color: var(--color-background);
  border: none;
  font-size: var(--text-lg);
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background-color var(--transition-fast);
  color: var(--color-text-primary);
}

.faq-question:hover {
  background-color: var(--color-placeholder);
}

.faq-icon {
  font-size: var(--text-xl);
  transition: transform var(--transition-base);
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-slow);
  padding: 0 var(--space-md);
}

.faq-item.active .faq-answer {
  max-height: 500px;
  padding: var(--space-md);
}

.faq-answer p {
  color: var(--color-text-secondary);
  line-height: var(--leading-relaxed);
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
  background-color: var(--color-background);
  padding: var(--space-xl) var(--space-sm);
  text-align: center;
  border-top: 1px solid var(--color-border);
}

.footer-content {
  max-width: var(--container-lg);
  margin: 0 auto;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: var(--space-lg);
  list-style: none;
  margin-bottom: var(--space-md);
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--color-text-secondary);
  font-size: var(--text-sm);
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--color-text-primary);
}

.footer-copyright {
  color: var(--color-text-tertiary);
  font-size: var(--text-sm);
}

/* ========================================
   ANIMATIONS
   ======================================== */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0) translateX(-50%);
  }
  40% {
    transform: translateY(-10px) translateX(-50%);
  }
  60% {
    transform: translateY(-5px) translateX(-50%);
  }
}

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-20px);
  }
}

/* ========================================
   RESPONSIVE BREAKPOINTS
   ======================================== */

/* Tablets and Small Desktops (600px+) */
@media (min-width: 600px) {
  h1 {
    font-size: var(--text-5xl);
  }

  h2 {
    font-size: var(--text-4xl);
  }

  .hero-title {
    font-size: var(--text-5xl);
  }

  .games-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-grid {
    grid-template-columns: 1fr 1fr;
  }

  .container {
    padding: 0 var(--space-lg);
  }
}

/* Medium Desktops (900px+) */
@media (min-width: 900px) {
  h1 {
    font-size: var(--text-6xl);
  }

  .hero-title {
    font-size: var(--text-6xl);
  }

  .hero-subtitle {
    font-size: var(--text-xl);
  }

  .games-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .section {
    padding: var(--space-3xl) 0;
  }
}

/* Large Desktops (1200px+) */
@media (min-width: 1200px) {
  .container {
    padding: 0 var(--space-xl);
  }

  .section-large {
    padding: 120px 0;
  }
}

/* ========================================
   UTILITY CLASSES
   ======================================== */
.text-center {
  text-align: center;
}

.mb-lg {
  margin-bottom: var(--space-lg);
}

.mb-xl {
  margin-bottom: var(--space-xl);
}

.mt-lg {
  margin-top: var(--space-lg);
}

.mt-xl {
  margin-top: var(--space-xl);
}

/* Accessibility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Focus Styles for Accessibility */
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

/* ========================================
   DARK MODE TOGGLE
   ======================================== */
.theme-toggle {
  background: none;
  border: none;
  font-size: var(--text-xl);
  cursor: pointer;
  padding: var(--space-xs);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition-fast);
  color: var(--color-text-primary);
}

.theme-toggle:hover {
  transform: scale(1.1);
}

.theme-toggle .icon-sun,
.theme-toggle .icon-moon {
  transition: opacity var(--transition-fast);
}

[data-theme="dark"] .theme-toggle .icon-sun {
  display: none;
}

[data-theme="dark"] .theme-toggle .icon-moon {
  display: inline;
}

[data-theme="light"] .theme-toggle .icon-sun {
  display: inline;
}

[data-theme="light"] .theme-toggle .icon-moon {
  display: none;
}

/* ========================================
   MOBILE MENU
   ======================================== */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: var(--text-2xl);
  cursor: pointer;
  padding: var(--space-xs);
  color: var(--color-text-primary);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

@media (max-width: 600px) {
  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: fixed;
    top: 57px;
    right: -100%;
    width: 70%;
    max-width: 300px;
    height: calc(100vh - 57px);
    background-color: var(--color-white);
    border-left: 1px solid var(--color-border);
    flex-direction: column;
    padding: var(--space-lg);
    gap: var(--space-lg);
    transition: right var(--transition-base);
    box-shadow: var(--shadow-lg);
    z-index: 999;
  }

  .nav-links.active {
    right: 0;
  }

  .nav-links a {
    font-size: var(--text-lg);
    padding: var(--space-sm) 0;
    width: 100%;
  }
}

/* ========================================
   SEARCH BAR
   ======================================== */
.search-container {
  position: relative;
  width: 100%;
  max-width: 600px;
  margin: 0 auto var(--space-xl);
}

.search-input {
  width: 100%;
  padding: var(--space-md) var(--space-lg);
  padding-left: 48px;
  font-size: var(--text-base);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-xl);
  background-color: var(--color-background);
  color: var(--color-text-primary);
  transition: all var(--transition-fast);
  font-family: var(--font-sans);
}

.search-input:focus {
  background-color: var(--color-white);
  border-color: var(--color-accent);
}

.search-icon {
  position: absolute;
  left: var(--space-md);
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-text-tertiary);
  font-size: var(--text-lg);
}

.filter-buttons {
  display: flex;
  gap: var(--space-sm);
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: var(--space-xl);
}

.filter-btn {
  padding: var(--space-xs) var(--space-md);
  font-size: var(--text-sm);
  border: 2px solid var(--color-border);
  background-color: var(--color-background);
  color: var(--color-text-secondary);
  border-radius: var(--radius-xl);
  cursor: pointer;
  transition: all var(--transition-fast);
  font-weight: 600;
}

.filter-btn:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.filter-btn.active {
  background-color: var(--color-accent);
  border-color: var(--color-accent);
  color: var(--color-white);
}

/* ========================================
   FORMS
   ======================================== */
.form-group {
  margin-bottom: var(--space-md);
}

.form-label {
  display: block;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text-primary);
  margin-bottom: var(--space-xs);
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: var(--space-md);
  font-size: var(--text-base);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-md);
  background-color: var(--color-background);
  color: var(--color-text-primary);
  font-family: var(--font-sans);
  transition: all var(--transition-fast);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  background-color: var(--color-white);
  border-color: var(--color-accent);
  outline: none;
}

.form-textarea {
  min-height: 150px;
  resize: vertical;
}

.form-error {
  color: #ff3b30;
  font-size: var(--text-sm);
  margin-top: var(--space-xs);
  display: none;
}

.form-error.visible {
  display: block;
}

.form-success {
  background-color: #d1f4e0;
  color: #00854d;
  padding: var(--space-md);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-md);
  display: none;
}

[data-theme="dark"] .form-success {
  background-color: #1a4d2e;
  color: #4ade80;
}

.form-success.visible {
  display: block;
}

/* ========================================
   NEWSLETTER SECTION
   ======================================== */
.newsletter-section {
  background: linear-gradient(135deg, var(--color-accent) 0%, #5856d6 100%);
  padding: var(--space-2xl) var(--space-sm);
  text-align: center;
  color: white;
}

.newsletter-content {
  max-width: 600px;
  margin: 0 auto;
}

.newsletter-section h2 {
  color: white;
  margin-bottom: var(--space-sm);
}

.newsletter-section p {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: var(--space-lg);
}

.newsletter-form {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

.newsletter-input {
  flex: 1;
  min-width: 200px;
  padding: var(--space-md) var(--space-lg);
  font-size: var(--text-base);
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius-xl);
  background-color: rgba(255, 255, 255, 0.1);
  color: white;
  transition: all var(--transition-fast);
}

.newsletter-input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.newsletter-input:focus {
  background-color: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.5);
  outline: none;
}

.newsletter-button {
  padding: var(--space-md) var(--space-lg);
  font-size: var(--text-base);
  font-weight: 600;
  background-color: white;
  color: var(--color-accent);
  border: none;
  border-radius: var(--radius-xl);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.newsletter-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

/* ========================================
   BLOG SECTION
   ======================================== */
.blog-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
  margin-bottom: var(--space-xl);
}

.blog-card {
  background-color: var(--color-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
  border: 1px solid var(--color-border);
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.blog-image {
  width: 100%;
  height: 250px;
  background-color: var(--color-placeholder);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-tertiary);
}

.blog-content {
  padding: var(--space-lg);
}

.blog-meta {
  display: flex;
  gap: var(--space-md);
  align-items: center;
  margin-bottom: var(--space-sm);
  font-size: var(--text-sm);
  color: var(--color-text-tertiary);
}

.blog-category {
  display: inline-block;
  padding: 4px var(--space-sm);
  background-color: var(--color-accent);
  color: white;
  border-radius: var(--radius-sm);
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.blog-title {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-sm);
  color: var(--color-text-primary);
}

.blog-title a {
  color: var(--color-text-primary);
  text-decoration: none;
}

.blog-title a:hover {
  color: var(--color-accent);
}

.blog-excerpt {
  color: var(--color-text-secondary);
  margin-bottom: var(--space-md);
  line-height: var(--leading-relaxed);
}

.read-more {
  color: var(--color-accent);
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  transition: gap var(--transition-fast);
}

.read-more:hover {
  gap: var(--space-sm);
}

/* ========================================
   CONTACT PAGE
   ======================================== */
.contact-section {
  max-width: 800px;
  margin: 0 auto;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
  margin-top: var(--space-xl);
}

.contact-info {
  background-color: var(--color-background);
  padding: var(--space-lg);
  border-radius: var(--radius-lg);
}

.contact-info h3 {
  margin-bottom: var(--space-md);
}

.contact-item {
  display: flex;
  align-items: start;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
}

.contact-icon {
  font-size: var(--text-xl);
  color: var(--color-accent);
}

.contact-details h4 {
  font-size: var(--text-base);
  margin-bottom: var(--space-xs);
  color: var(--color-text-primary);
}

.contact-details p {
  margin: 0;
}

/* ========================================
   GAME DETAIL PAGE
   ======================================== */
.game-detail-hero {
  padding: var(--space-3xl) var(--space-sm) var(--space-xl);
  background: linear-gradient(135deg, var(--color-background-light) 0%, var(--color-background) 100%);
  text-align: center;
}

.game-detail-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
  margin-bottom: var(--space-xl);
}

.game-screenshots {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
}

.screenshot {
  width: 100%;
  height: 300px;
  background-color: var(--color-placeholder);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-tertiary);
}

.game-info-box {
  background-color: var(--color-background);
  padding: var(--space-lg);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-lg);
}

.info-row {
  display: flex;
  justify-content: space-between;
  padding: var(--space-sm) 0;
  border-bottom: 1px solid var(--color-border);
}

.info-row:last-child {
  border-bottom: none;
}

.info-label {
  font-weight: 600;
  color: var(--color-text-secondary);
}

.info-value {
  color: var(--color-text-primary);
}

.features-list {
  list-style: none;
  padding: 0;
}

.features-list li {
  padding: var(--space-sm) 0;
  padding-left: var(--space-lg);
  position: relative;
  color: var(--color-text-secondary);
}

.features-list li:before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--color-accent);
  font-weight: 700;
}

/* ========================================
   BACK TO TOP BUTTON
   ======================================== */
.back-to-top {
  position: fixed;
  bottom: var(--space-lg);
  right: var(--space-lg);
  width: 48px;
  height: 48px;
  background-color: var(--color-accent);
  color: white;
  border: none;
  border-radius: 50%;
  font-size: var(--text-xl);
  cursor: pointer;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-base);
  z-index: 1000;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  transform: translateY(-4px);
  background-color: var(--color-accent-hover);
}

/* ========================================
   RESPONSIVE - BLOG & CONTACT
   ======================================== */
@media (min-width: 600px) {
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-grid {
    grid-template-columns: 1fr 1fr;
  }

  .game-screenshots {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .game-detail-grid {
    grid-template-columns: 2fr 1fr;
  }

  .game-screenshots {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ========================================
   PERFORMANCE & UX ENHANCEMENTS
   ======================================== */

/* Better Paragraph Readability */
p {
  max-width: 65ch; /* Optimal line length for reading */
}

/* Glass-morphism Navigation */
.nav {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.03);
}

[data-theme="dark"] .nav {
  background: rgba(29, 29, 31, 0.8);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.03);
}

/* Enhanced Button Micro-Interactions */
.btn {
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn:active::before {
  width: 300px;
  height: 300px;
}

/* Enhanced Card Hover Effects */
.game-card,
.blog-card {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.game-card:hover,
.blog-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: var(--shadow-xl);
}

/* Skeleton Loading States */
.skeleton {
  background: linear-gradient(
    90deg,
    var(--color-placeholder) 0%,
    var(--color-background) 50%,
    var(--color-placeholder) 100%
  );
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite;
  border-radius: var(--radius-md);
}

@keyframes skeleton-loading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.skeleton-text {
  height: 1em;
  margin-bottom: 0.5em;
}

.skeleton-title {
  height: 2em;
  width: 70%;
  margin-bottom: 1em;
}

.skeleton-image {
  width: 100%;
  height: 200px;
}

/* Empty State Component */
.empty-state {
  text-align: center;
  padding: var(--space-4xl) var(--space-lg);
}

.empty-state-icon {
  font-size: 4rem;
  opacity: 0.3;
  margin-bottom: var(--space-lg);
}

.empty-state h3 {
  color: var(--color-text-primary);
  margin-bottom: var(--space-sm);
}

.empty-state p {
  color: var(--color-text-secondary);
  margin: 0 auto var(--space-lg);
}

/* Floating Label Forms */
.form-group-floating {
  position: relative;
  margin-bottom: var(--space-lg);
}

.form-input-floating {
  width: 100%;
  padding: var(--space-md) var(--space-sm);
  padding-top: calc(var(--space-md) + 8px);
  font-size: var(--text-base);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-md);
  background-color: var(--color-white);
  color: var(--color-text-primary);
  transition: all var(--transition-fast);
}

.form-input-floating:focus {
  border-color: var(--color-accent);
  outline: none;
}

.form-label-floating {
  position: absolute;
  left: var(--space-sm);
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-text-tertiary);
  font-size: var(--text-base);
  pointer-events: none;
  transition: all var(--transition-fast);
}

.form-input-floating:focus + .form-label-floating,
.form-input-floating:not(:placeholder-shown) + .form-label-floating {
  top: 8px;
  transform: translateY(0);
  font-size: var(--text-xs);
  color: var(--color-accent);
}

/* Skip to Main Content (Accessibility) */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--color-accent);
  color: white;
  padding: var(--space-sm);
  text-decoration: none;
  z-index: var(--z-tooltip);
  transition: top var(--transition-fast);
}

.skip-link:focus {
  top: 0;
}

/* Better Focus Indicators */
*:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 2px;
  border-radius: var(--radius-xs);
}

/* Breadcrumb Navigation */
.breadcrumb {
  padding: var(--space-md) 0;
}

.breadcrumb ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-xs);
  padding: 0;
  margin: 0;
}

.breadcrumb li {
  display: flex;
  align-items: center;
  color: var(--color-text-secondary);
  font-size: var(--text-sm);
}

.breadcrumb li:not(:last-child)::after {
  content: '›';
  margin-left: var(--space-xs);
  color: var(--color-text-tertiary);
}

.breadcrumb a {
  color: var(--color-accent);
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.breadcrumb [aria-current="page"] {
  color: var(--color-text-primary);
  font-weight: 600;
}

/* Enhanced Gradient Hero */
.hero {
  background:
    radial-gradient(circle at 20% 50%, rgba(0, 113, 227, 0.08), transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(102, 126, 234, 0.08), transparent 50%),
    radial-gradient(circle at 40% 60%, rgba(118, 75, 162, 0.08), transparent 50%),
    var(--color-white);
}

[data-theme="dark"] .hero {
  background:
    radial-gradient(circle at 20% 50%, rgba(41, 151, 255, 0.1), transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(102, 126, 234, 0.1), transparent 50%),
    radial-gradient(circle at 40% 60%, rgba(118, 75, 162, 0.1), transparent 50%),
    var(--color-white);
}

/* Animated Newsletter Gradient */
.newsletter-section {
  background: linear-gradient(
    135deg,
    #667eea 0%,
    #764ba2 25%,
    #f093fb 50%,
    #4facfe 75%,
    #667eea 100%
  );
  background-size: 400% 400%;
  animation: gradient-shift 15s ease infinite;
}

@keyframes gradient-shift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* Auto-fit Responsive Grid */
.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: var(--space-xl);
}

/* Improved Search Container */
.search-container {
  position: relative;
  width: 100%;
  max-width: 600px;
  margin: 0 auto var(--space-xl);
}

.search-input {
  width: 100%;
  padding-left: 48px;
  background-color: var(--color-white);
  border: 2px solid var(--color-border);
  box-shadow: var(--shadow-sm);
}

.search-input:focus {
  box-shadow: var(--shadow-md);
  border-color: var(--color-accent);
}

/* Autocomplete Dropdown */
.autocomplete-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--color-white);
  border: 2px solid var(--color-border);
  border-top: none;
  border-radius: 0 0 var(--radius-xl) var(--radius-xl);
  box-shadow: var(--shadow-lg);
  max-height: 300px;
  overflow-y: auto;
  z-index: var(--z-dropdown);
  display: none;
}

.autocomplete-dropdown.active {
  display: block;
}

.autocomplete-item {
  padding: var(--space-md);
  cursor: pointer;
  transition: background-color var(--transition-fast);
  border-bottom: 1px solid var(--color-border);
}

.autocomplete-item:last-child {
  border-bottom: none;
}

.autocomplete-item:hover,
.autocomplete-item.highlighted {
  background-color: var(--color-background);
}

.autocomplete-item strong {
  color: var(--color-accent);
}

/* Loading Spinner */
.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid var(--color-border);
  border-top-color: var(--color-accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: var(--z-modal);
}

/* Toast Notifications */
.toast {
  position: fixed;
  bottom: var(--space-lg);
  right: var(--space-lg);
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-md) var(--space-lg);
  box-shadow: var(--shadow-xl);
  min-width: 300px;
  z-index: var(--z-tooltip);
  animation: slideInRight 0.3s ease-out;
}

@keyframes slideInRight {
  from {
    transform: translateX(400px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.toast-success {
  border-left: 4px solid var(--color-success);
}

.toast-error {
  border-left: 4px solid var(--color-error);
}

.toast-warning {
  border-left: 4px solid var(--color-warning);
}

.toast-info {
  border-left: 4px solid var(--color-info);
}

/* ========================================
   ACCESSIBILITY ENHANCEMENTS
   ======================================== */

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .skeleton {
    animation: none;
    background: var(--color-placeholder);
  }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
  .btn {
    border: 2px solid currentColor;
  }

  .game-card,
  .blog-card {
    border: 2px solid var(--color-border);
  }
}

/* Screen Reader Only */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* ARIA Live Region for Announcements */
.aria-live-region {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ========================================
   MOBILE-FIRST RESPONSIVE DESIGN
   ======================================== */

/* Mobile Base Styles (320px - 767px) */
@media (max-width: 767px) {
  /* Hero Section - Stack Columns */
  .hero-content > div:first-child {
    grid-template-columns: 1fr !important;
    gap: var(--space-xl) !important;
  }

  /* Hero - Center phone mockup */
  .hero-content > div:first-child > div:last-child {
    justify-content: center;
    order: -1; /* Show phone first on mobile */
  }

  /* Game Cards - Stack Layout */
  .game-card {
    grid-template-columns: 1fr !important;
    gap: var(--space-xl) !important;
    direction: ltr !important;
  }

  /* Reset RTL for Game 2 on mobile */
  .game-card[style*="direction: rtl"] > div {
    direction: ltr !important;
  }

  /* Testimonials - Stack Cards */
  section > .container > div[style*="grid-template-columns: repeat(3, 1fr)"] {
    grid-template-columns: 1fr !important;
    gap: var(--space-lg) !important;
  }

  /* Why Choose - 1 Column */
  section div[style*="grid-template-columns: repeat(3, 1fr)"] {
    grid-template-columns: 1fr !important;
    gap: var(--space-lg) !important;
  }

  /* Reduce sprite sizes on mobile */
  img[style*="width: 120px"] {
    width: 80px !important;
  }

  img[style*="width: 64px"] {
    width: 48px !important;
  }

  img[style*="width: 40px"] {
    width: 32px !important;
  }

  /* Phone mockup smaller on mobile */
  .hero-content div[style*="max-width: 280px"] {
    max-width: 220px !important;
  }

  /* Smaller screenshots on mobile */
  div[style*="max-width: 220px"][style*="aspect-ratio: 9/16"] {
    max-width: 180px !important;
  }

  /* Thumbnails - Ensure visibility */
  div[style*="display: flex; gap: var(--space-xs); justify-content: center"] img {
    width: 45px !important;
  }

  /* Button adjustments */
  .btn {
    font-size: var(--text-xs) !important;
    padding: var(--space-xs) var(--space-md) !important;
  }

  /* Stats grid */
  div[style*="display: flex; gap: var(--space-xl)"] {
    gap: var(--space-md) !important;
  }
}

/* Small Tablets (768px - 899px) */
@media (min-width: 768px) and (max-width: 899px) {
  /* Testimonials - 2 Columns */
  section > .container > div[style*="grid-template-columns: repeat(3, 1fr)"] {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  /* Why Choose - 2 Columns */
  section div[style*="grid-template-columns: repeat(3, 1fr)"] {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

/* Tablets and Up (600px+) - Ensure grids stay intact */
@media (min-width: 768px) {
  /* Game cards maintain 2-column layout */
  .game-card {
    grid-template-columns: 1fr 1fr;
  }
}

/* ========================================
   PRINT STYLES
   ======================================== */
@media print {
  .nav,
  .newsletter-section,
  .footer,
  .back-to-top,
  .search-container,
  .filter-buttons {
    display: none;
  }

  body {
    font-size: 12pt;
    line-height: 1.5;
    color: black;
  }

  a {
    text-decoration: underline;
    color: black;
  }

  .game-card,
  .blog-card {
    page-break-inside: avoid;
  }
}
