/* Capitalisation Games Website - Main Styles */

:root {
  --primary-color: #4f46e5;
  --secondary-color: #6b7280;
  --success-color: #10b981;
  --info-color: #06b6d4;
  --warning-color: #f59e0b;
  --danger-color: #ef4444;
  --light-color: #f8fafc;
  --dark-color: #1f2937;
  --purple-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --blue-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --green-gradient: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
  --orange-gradient: linear-gradient(135deg, #fc4a1a 0%, #f7b733 100%);
  --pink-gradient: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%);
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--dark-color);
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  background-attachment: fixed;
  min-height: 100vh;
}

/* Add floating elements for game atmosphere */
.floating-elements {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
}

.floating-star {
  position: absolute;
  color: rgba(255, 255, 255, 0.1);
  animation: float 6s ease-in-out infinite;
}

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

.floating-star:nth-child(1) { top: 10%; left: 10%; animation-delay: 0s; }
.floating-star:nth-child(2) { top: 20%; left: 80%; animation-delay: 1s; }
.floating-star:nth-child(3) { top: 60%; left: 20%; animation-delay: 2s; }
.floating-star:nth-child(4) { top: 80%; left: 90%; animation-delay: 3s; }
.floating-star:nth-child(5) { top: 40%; left: 70%; animation-delay: 4s; }

/* Navigation Styles */
.navbar {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
  box-shadow: 0 4px 20px rgba(102, 126, 234, 0.3);
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.navbar-brand {
  font-size: 1.6rem;
  font-weight: 800;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
  transition: transform 0.3s ease;
}

.navbar-brand:hover {
  transform: scale(1.05);
}

.navbar-nav .nav-link {
  font-weight: 600;
  margin: 0 0.8rem;
  transition: all 0.3s ease;
  position: relative;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 0.9rem;
}

.navbar-nav .nav-link::before {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 50%;
  width: 0;
  height: 2px;
  background: linear-gradient(45deg, #ffd700, #ffed4e);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.navbar-nav .nav-link:hover::before,
.navbar-nav .nav-link.active::before {
  width: 100%;
}

.navbar-nav .nav-link:hover {
  color: #ffd700 !important;
  transform: translateY(-2px);
}

.navbar-nav .nav-link.active {
  color: #ffd700 !important;
  font-weight: 700;
}

/* Mobile Navigation */
@media (max-width: 991.98px) {
  .navbar-collapse {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.95), rgba(118, 75, 162, 0.95));
    margin-top: 1rem;
    border-radius: 15px;
    padding: 1.5rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
  }
  
  .navbar-nav .nav-link {
    padding: 0.8rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    margin: 0;
  }
  
  .navbar-nav .nav-link:last-child {
    border-bottom: none;
  }
}

.hero-section {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 6rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 25% 25%, rgba(255,255,255,0.1) 0%, transparent 50%),
    radial-gradient(circle at 75% 75%, rgba(255,255,255,0.08) 0%, transparent 50%),
    url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><text x="10" y="20" font-size="8" fill="rgba(255,255,255,0.05)">⭐</text><text x="80" y="40" font-size="6" fill="rgba(255,255,255,0.05)">✨</text><text x="30" y="70" font-size="10" fill="rgba(255,255,255,0.05)">🎮</text><text x="70" y="90" font-size="7" fill="rgba(255,255,255,0.05)">🏆</text></svg>');
  opacity: 0.4;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-section h1 {
  font-size: 4rem;
  font-weight: 900;
  margin-bottom: 1.5rem;
  text-shadow: 0 4px 8px rgba(0,0,0,0.3);
  background: linear-gradient(45deg, #ffffff, #ffd700, #ffffff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
  0%, 100% { background-position: -200% center; }
  50% { background-position: 200% center; }
}

.hero-section .lead {
  font-size: 1.4rem;
  font-weight: 500;
  margin-bottom: 2.5rem;
  opacity: 0.95;
  text-shadow: 0 2px 4px rgba(0,0,0,0.2);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.hero-features {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 3rem;
  margin: 3rem 0;
}

.hero-feature {
  display: flex;
  align-items: center;
  font-size: 1.2rem;
  font-weight: 600;
  background: rgba(255,255,255,0.15);
  padding: 1rem 1.5rem;
  border-radius: 25px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.2);
  transition: all 0.3s ease;
}

.hero-feature:hover {
  background: rgba(255,255,255,0.25);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.hero-feature i {
  margin-right: 0.8rem;
  color: #ffd700;
  font-size: 1.4rem;
}

.hero-cta {
  margin-top: 3rem;
}

.btn-hero {
  background: linear-gradient(45deg, #ffd700, #ffed4e);
  border: 3px solid rgba(255,255,255,0.3);
  color: #1f2937;
  font-weight: 800;
  padding: 1.2rem 3rem;
  font-size: 1.3rem;
  border-radius: 50px;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  backdrop-filter: blur(10px);
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(255, 215, 0, 0.4);
}

.btn-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
  transition: left 0.6s;
}

.btn-hero:hover::before {
  left: 100%;
}

.btn-hero:hover {
  background: linear-gradient(45deg, #ffed4e, #ffd700);
  border-color: rgba(255,255,255,0.5);
  color: #1f2937;
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 15px 35px rgba(255, 215, 0, 0.6);
}

/* Games Grid Layout */
.games-section {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 3rem 2rem;
  margin: 2rem 0;
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
  margin-top: 3rem;
}

.game-card {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0,0,0,0.12);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 3px solid transparent;
  cursor: pointer;
  position: relative;
}

.game-card::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, #ff6b6b, #4ecdc4, #45b7d1, #96ceb4, #feca57);
  border-radius: 22px;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.game-card:hover::before {
  opacity: 1;
}

.game-card:hover {
  transform: translateY(-12px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

/* Professional Game Card Covers - Inspired by Wordwall and Education.com */
.game-card[data-category="sentence-caps"] .game-card-image {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  position: relative;
  overflow: hidden;
}

.game-card[data-category="sentence-caps"] .game-card-image::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 25% 25%, rgba(255,255,255,0.6) 0%, transparent 40%),
    radial-gradient(circle at 75% 75%, rgba(255,255,255,0.4) 0%, transparent 40%),
    linear-gradient(45deg, transparent 30%, rgba(255,255,255,0.3) 50%, transparent 70%),
    url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="30" r="3" fill="rgba(255,255,255,0.3)"/><circle cx="80" cy="20" r="2" fill="rgba(255,255,255,0.2)"/><circle cx="70" cy="80" r="4" fill="rgba(255,255,255,0.25)"/><circle cx="30" cy="70" r="2.5" fill="rgba(255,255,255,0.2)"/></svg>');
  z-index: 1;
}

.game-card[data-category="sentence-caps"] .game-card-image::after {
  content: 'A';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 10rem;
  font-weight: 900;
  color: rgba(255,255,255,0.3);
  z-index: 2;
  text-shadow: 0 0 40px rgba(255,255,255,0.6);
  font-family: 'Arial Black', sans-serif;
  animation: letterPulse 3s ease-in-out infinite;
}

@keyframes letterPulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.3; }
  50% { transform: translate(-50%, -50%) scale(1.1); opacity: 0.5; }
}

.game-card[data-category="proper-nouns"] .game-card-image {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  position: relative;
  overflow: hidden;
}

.game-card[data-category="proper-nouns"] .game-card-image::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 30% 30%, rgba(255,255,255,0.5) 0%, transparent 40%),
    radial-gradient(circle at 70% 70%, rgba(255,255,255,0.3) 0%, transparent 40%),
    linear-gradient(45deg, transparent 25%, rgba(255,255,255,0.2) 50%, transparent 75%),
    url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="25" cy="25" r="2" fill="rgba(255,255,255,0.4)"/><circle cx="75" cy="30" r="3" fill="rgba(255,255,255,0.3)"/><circle cx="60" cy="75" r="2.5" fill="rgba(255,255,255,0.35)"/><circle cx="20" cy="80" r="1.5" fill="rgba(255,255,255,0.25)"/></svg>');
  z-index: 1;
}

.game-card[data-category="proper-nouns"] .game-card-image::after {
  content: '👤';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 6rem;
  opacity: 0.4;
  z-index: 2;
  filter: drop-shadow(0 0 20px rgba(255,255,255,0.5));
  animation: iconFloat 4s ease-in-out infinite;
}

@keyframes iconFloat {
  0%, 100% { transform: translate(-50%, -50%) scale(1) rotate(0deg); }
  50% { transform: translate(-50%, -50%) scale(1.1) rotate(5deg); }
}

.game-card[data-category="titles"] .game-card-image {
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  position: relative;
  overflow: hidden;
}

.game-card[data-category="titles"] .game-card-image::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 35% 35%, rgba(255,255,255,0.5) 0%, transparent 40%),
    radial-gradient(circle at 65% 65%, rgba(255,255,255,0.3) 0%, transparent 40%),
    linear-gradient(45deg, transparent 25%, rgba(255,255,255,0.2) 50%, transparent 75%),
    url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="15" cy="25" r="2.5" fill="rgba(255,255,255,0.4)"/><circle cx="85" cy="35" r="3.5" fill="rgba(255,255,255,0.3)"/><circle cx="65" cy="80" r="2" fill="rgba(255,255,255,0.35)"/><circle cx="25" cy="75" r="1.8" fill="rgba(255,255,255,0.25)"/></svg>');
  z-index: 1;
}

.game-card[data-category="titles"] .game-card-image::after {
  content: 'H';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 10rem;
  font-weight: 900;
  color: rgba(255,255,255,0.3);
  z-index: 2;
  text-shadow: 0 0 40px rgba(255,255,255,0.6);
  font-family: 'Arial Black', sans-serif;
  animation: letterPulse 3s ease-in-out infinite;
}

.game-card[data-category="quiz"] .game-card-image {
  background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
  position: relative;
  overflow: hidden;
}

.game-card[data-category="quiz"] .game-card-image::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 40% 40%, rgba(255,255,255,0.5) 0%, transparent 40%),
    radial-gradient(circle at 60% 60%, rgba(255,255,255,0.3) 0%, transparent 40%),
    linear-gradient(45deg, transparent 25%, rgba(255,255,255,0.2) 50%, transparent 75%),
    url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2.5" fill="rgba(255,255,255,0.4)"/><circle cx="80" cy="25" r="3" fill="rgba(255,255,255,0.3)"/><circle cx="70" cy="85" r="2" fill="rgba(255,255,255,0.35)"/><circle cx="30" cy="80" r="1.8" fill="rgba(255,255,255,0.25)"/></svg>');
  z-index: 1;
}

.game-card[data-category="quiz"] .game-card-image::after {
  content: '?';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 10rem;
  font-weight: 900;
  color: rgba(255,255,255,0.3);
  z-index: 2;
  text-shadow: 0 0 40px rgba(255,255,255,0.6);
  font-family: 'Arial Black', sans-serif;
  animation: letterPulse 3s ease-in-out infinite;
}

.game-card[data-category="drag-drop"] .game-card-image {
  background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
  position: relative;
  overflow: hidden;
}

.game-card[data-category="drag-drop"] .game-card-image::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 45% 45%, rgba(255,255,255,0.5) 0%, transparent 40%),
    radial-gradient(circle at 55% 55%, rgba(255,255,255,0.3) 0%, transparent 40%),
    linear-gradient(45deg, transparent 25%, rgba(255,255,255,0.2) 50%, transparent 75%),
    url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="25" cy="20" r="2.5" fill="rgba(255,255,255,0.4)"/><circle cx="75" cy="25" r="3" fill="rgba(255,255,255,0.3)"/><circle cx="65" cy="85" r="2" fill="rgba(255,255,255,0.35)"/><circle cx="35" cy="80" r="1.8" fill="rgba(255,255,255,0.25)"/></svg>');
  z-index: 1;
}

.game-card[data-category="drag-drop"] .game-card-image::after {
  content: '↔️';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 5rem;
  opacity: 0.4;
  z-index: 2;
  filter: drop-shadow(0 0 20px rgba(255,255,255,0.5));
  animation: iconFloat 4s ease-in-out infinite;
}

.game-card[data-category="advanced"] .game-card-image {
  background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
  position: relative;
}

.game-card[data-category="advanced"] .game-card-image::before {
  content: '🏆';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 4rem;
  opacity: 0.4;
  z-index: 1;
}

.game-card[data-category="story"] .game-card-image {
  background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%);
  position: relative;
}

.game-card[data-category="story"] .game-card-image::before {
  content: '📖';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 4rem;
  opacity: 0.4;
  z-index: 1;
}

.game-card[data-category="memory"] .game-card-image {
  background: linear-gradient(135deg, #e91e63 0%, #f48fb1 100%);
  position: relative;
}

.game-card[data-category="memory"] .game-card-image::before {
  content: '🧠';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 4rem;
  opacity: 0.4;
  z-index: 1;
}

.game-card[data-category="combo"] .game-card-image {
  background: linear-gradient(135deg, #9c27b0 0%, #ba68c8 100%);
  position: relative;
}

.game-card[data-category="combo"] .game-card-image::before {
  content: '⚡';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 4rem;
  opacity: 0.4;
  z-index: 1;
}

.game-card[data-category="racing"] .game-card-image {
  background: linear-gradient(135deg, #ff5722 0%, #ff8a65 100%);
  position: relative;
}

.game-card[data-category="racing"] .game-card-image::before {
  content: '🏎️';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 4rem;
  opacity: 0.4;
  z-index: 1;
}

.game-card[data-category="holidays"] .game-card-image {
  background: linear-gradient(135deg, #4caf50 0%, #81c784 100%);
  position: relative;
}

.game-card[data-category="holidays"] .game-card-image::before {
  content: '🎄';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 4rem;
  opacity: 0.4;
  z-index: 1;
}

.game-card[data-category="geography"] .game-card-image {
  background: linear-gradient(135deg, #00bcd4 0%, #4dd0e1 100%);
  position: relative;
}

.game-card[data-category="geography"] .game-card-image::before {
  content: '🌍';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 4rem;
  opacity: 0.4;
  z-index: 1;
}

.game-card[data-category="builder"] .game-card-image {
  background: linear-gradient(135deg, #795548 0%, #a1887f 100%);
  position: relative;
}

.game-card[data-category="builder"] .game-card-image::before {
  content: '🔨';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 4rem;
  opacity: 0.4;
  z-index: 1;
}

.game-card[data-category="mystery"] .game-card-image {
  background: linear-gradient(135deg, #607d8b 0%, #90a4ae 100%);
  position: relative;
}

.game-card[data-category="mystery"] .game-card-image::before {
  content: '🔍';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 4rem;
  opacity: 0.4;
  z-index: 1;
}

.game-card[data-category="space"] .game-card-image {
  background: linear-gradient(135deg, #3f51b5 0%, #7986cb 100%);
  position: relative;
}

.game-card[data-category="space"] .game-card-image::before {
  content: '🚀';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 4rem;
  opacity: 0.4;
  z-index: 1;
}

.game-card-image {
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  border-radius: 15px 15px 0 0;
  background-size: cover;
  background-position: center;
}

/* Game Preview Styles - Simulating actual game interfaces */
.game-preview {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  color: white;
  font-size: 0.8rem;
  z-index: 3;
}

.preview-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  background: rgba(0,0,0,0.3);
  backdrop-filter: blur(5px);
}

.preview-title {
  font-weight: bold;
  font-size: 0.9rem;
}

.preview-score {
  font-size: 0.8rem;
  background: rgba(255,255,255,0.2);
  padding: 2px 6px;
  border-radius: 10px;
}

.preview-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 8px;
  text-align: center;
}

.preview-progress {
  height: 4px;
  background: rgba(255,255,255,0.3);
  margin: 8px;
  border-radius: 2px;
  overflow: hidden;
}

.preview-progress-bar {
  height: 100%;
  background: rgba(255,255,255,0.8);
  border-radius: 2px;
  transition: width 0.3s ease;
}

/* Sentence Game Preview */
.sentence-game-preview {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.preview-sentence {
  font-size: 0.7rem;
  margin-bottom: 8px;
  opacity: 0.9;
}

.preview-words {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  justify-content: center;
}

.preview-word {
  background: rgba(255,255,255,0.2);
  padding: 3px 6px;
  border-radius: 4px;
  font-size: 0.7rem;
  border: 1px solid rgba(255,255,255,0.3);
  transition: all 0.3s ease;
}

.preview-word.active {
  background: #ffc107;
  color: #333;
}

.preview-word.correct {
  background: #28a745;
}

/* Proper Nouns Game Preview */
.proper-nouns-preview {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.preview-question {
  font-size: 0.7rem;
  margin-bottom: 4px;
  font-weight: bold;
}

.preview-text {
  font-size: 0.7rem;
  font-style: italic;
  margin-bottom: 6px;
  opacity: 0.9;
}

.preview-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  width: 100%;
}

.preview-option {
  background: rgba(255,255,255,0.2);
  padding: 4px 6px;
  border-radius: 4px;
  font-size: 0.6rem;
  text-align: center;
  border: 1px solid rgba(255,255,255,0.3);
}

.preview-option.selected {
  background: #ffc107;
  color: #333;
}

/* Title Game Preview */
.title-game-preview {
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.preview-title-input {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  justify-content: center;
  margin-top: 6px;
}

.preview-input {
  background: rgba(255,255,255,0.9);
  border: 1px solid rgba(255,255,255,0.5);
  padding: 2px 4px;
  border-radius: 3px;
  font-size: 0.6rem;
  color: #333;
  min-width: 25px;
  text-align: center;
}

.preview-input.correct {
  background: #d4edda;
  border-color: #28a745;
}

.preview-input.editing {
  background: #fff3cd;
  border-color: #ffc107;
}

/* Default Preview */
.default-preview {
  background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
}

.preview-difficulty {
  font-size: 0.7rem;
  background: rgba(255,255,255,0.2);
  padding: 2px 6px;
  border-radius: 8px;
}

.preview-description {
  font-size: 0.8rem;
  line-height: 1.3;
  margin-bottom: 8px;
  opacity: 0.9;
}

.preview-category {
  font-size: 0.7rem;
  background: rgba(255,255,255,0.2);
  padding: 3px 8px;
  border-radius: 10px;
  font-weight: bold;
}

.preview-footer {
  padding: 8px;
  text-align: center;
}

.preview-time {
  font-size: 0.7rem;
  background: rgba(255,255,255,0.2);
  padding: 3px 8px;
  border-radius: 10px;
  display: inline-block;
}

/* Quiz Game Preview */
.quiz-preview {
  background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

/* Rating and Social Features Styles */
.rating-section .stars-display {
  font-size: 1.5rem;
  cursor: pointer;
  user-select: none;
}

.rating-section .star {
  transition: all 0.2s ease;
  margin-right: 0.2rem;
}

.rating-section .star:hover,
.rating-section .star.active {
  transform: scale(1.2);
  filter: brightness(1.2);
}

.rating-section .star.filled {
  color: #ffd700;
}

.rating-info {
  font-size: 0.9rem;
  color: #666;
}

.like-section .like-btn {
  transition: all 0.3s ease;
  border-width: 2px;
}

.like-section .like-btn:hover {
  transform: scale(1.05);
}

.like-section .like-btn.liked {
  background-color: #dc3545;
  border-color: #dc3545;
  color: white;
}

.like-count {
  font-size: 0.9rem;
  color: #666;
}

.social-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.btn-social {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 25px;
  font-weight: 600;
  transition: all 0.3s ease;
  text-decoration: none;
  border: none;
}

.btn-social:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.btn-twitter {
  background-color: #1da1f2;
  color: white;
}

.btn-twitter:hover {
  background-color: #0d8bd9;
  color: white;
}

.btn-facebook {
  background-color: #4267b2;
  color: white;
}

.btn-facebook:hover {
  background-color: #365899;
  color: white;
}

.btn-reddit {
  background-color: #ff4500;
  color: white;
}

.btn-reddit:hover {
  background-color: #e03d00;
  color: white;
}

.btn-whatsapp {
  background-color: #25d366;
  color: white;
}

.btn-whatsapp:hover {
  background-color: #1ebe57;
  color: white;
}

.btn-copy {
  background-color: #6c757d;
  color: white;
}

.btn-copy:hover {
  background-color: #545b62;
  color: white;
}

.comments-section .comment-item {
  border-bottom: 1px solid #eee;
  padding: 1rem 0;
}

.comments-section .comment-item:last-child {
  border-bottom: none;
}

.comment-author {
  font-weight: bold;
  color: #333;
  margin-bottom: 0.25rem;
}

.comment-date {
  font-size: 0.8rem;
  color: #666;
  margin-bottom: 0.5rem;
}

.comment-text {
  color: #444;
  line-height: 1.5;
}

.add-comment-form textarea {
  resize: vertical;
  min-height: 80px;
}

@media (max-width: 768px) {
  .social-buttons {
    justify-content: center;
  }
  
  .btn-social {
    flex: 1;
    min-width: 120px;
    justify-content: center;
  }
  
  .rating-section .col-md-6 {
    text-align: center;
    margin-bottom: 1rem;
  }
}

/* Punctuation Games Preview Styles */
.period-preview {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.comma-preview {
  background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
}

.question-preview {
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.exclamation-preview {
  background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%);
}

.quote-preview {
  background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
}

.apostrophe-preview {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.semicolon-preview {
  background: linear-gradient(135deg, #8360c3 0%, #2ebf91 100%);
}

.mixed-preview {
  background: linear-gradient(135deg, #ff6b6b 0%, #4facfe 100%);
}

.colon-preview {
  background: linear-gradient(135deg, #20bf6b 0%, #01a3a4 100%);
}

.dash-preview {
  background: linear-gradient(135deg, #fd79a8 0%, #fdcb6e 100%);
}

.parentheses-preview {
  background: linear-gradient(135deg, #6c5ce7 0%, #a29bfe 100%);
}

.brackets-preview {
  background: linear-gradient(135deg, #fd79a8 0%, #e84393 100%);
}

.ellipsis-preview {
  background: linear-gradient(135deg, #00b894 0%, #00cec9 100%);
}

.speed-preview {
  background: linear-gradient(135deg, #fdcb6e 0%, #e17055 100%);
}

/* Drag Drop Game Preview */
.drag-drop-preview {
  background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

.preview-drag-area {
  display: flex;
  gap: 4px;
  margin: 6px 0;
  justify-content: center;
}

.preview-drag-item {
  background: rgba(255,255,255,0.2);
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.7rem;
  border: 1px solid rgba(255,255,255,0.3);
  cursor: move;
}

.preview-drag-item.active {
  background: #ffc107;
  color: #333;
  transform: translateY(-2px);
}

.preview-drop-zone {
  background: rgba(255,255,255,0.1);
  border: 2px dashed rgba(255,255,255,0.4);
  padding: 8px;
  border-radius: 6px;
  font-size: 0.7rem;
  margin-top: 4px;
}

/* Advanced Game Preview */
.advanced-preview {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.preview-difficulty-indicator {
  display: flex;
  gap: 2px;
  justify-content: center;
  margin-top: 6px;
}

.preview-difficulty-indicator .star {
  font-size: 0.8rem;
  color: #ffd700;
  text-shadow: 0 0 3px rgba(255,215,0,0.8);
}

.preview-difficulty-indicator .star.filled {
  animation: starGlow 2s ease-in-out infinite;
}

@keyframes starGlow {
  0%, 100% { opacity: 0.8; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.1); }
}

/* Game card top decorative stars */
.game-card-stars {
  position: absolute;
  top: 15px;
  right: 15px;
  display: flex;
  gap: 5px;
  z-index: 10;
}

.game-card-stars .star {
  font-size: 1.2rem;
  animation: twinkle 2s infinite;
  animation-delay: var(--delay, 0s);
  filter: drop-shadow(0 0 5px rgba(255,255,255,0.8));
}

.game-card-stars .star:nth-child(1) { --delay: 0s; }
.game-card-stars .star:nth-child(2) { --delay: 0.5s; }
.game-card-stars .star:nth-child(3) { --delay: 1s; }

@keyframes twinkle {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.2); }
}

/* Game card icon styling */
.game-card-icon {
  font-size: 4rem;
  color: white;
  z-index: 5;
  position: relative;
  text-shadow: 0 4px 8px rgba(0,0,0,0.3);
  animation: bounce 2s infinite;
  filter: drop-shadow(0 0 10px rgba(255,255,255,0.5));
}

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

.game-card-icon {
  font-size: 3.5rem;
  color: white;
  z-index: 2;
  position: relative;
  text-shadow: 0 4px 8px rgba(0,0,0,0.3);
  animation: bounce 2s infinite;
}

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

.game-card-stars {
  position: absolute;
  top: 15px;
  right: 15px;
  display: flex;
  gap: 5px;
}

.game-card-stars .star {
  font-size: 1.2rem;
  animation: twinkle 2s infinite;
  animation-delay: var(--delay, 0s);
}

.game-card-stars .star:nth-child(1) { --delay: 0s; }
.game-card-stars .star:nth-child(2) { --delay: 0.5s; }
.game-card-stars .star:nth-child(3) { --delay: 1s; }

@keyframes twinkle {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.2); }
}

.game-card-body {
  padding: 1.8rem;
  background: linear-gradient(180deg, rgba(255,255,255,1) 0%, rgba(248,250,252,1) 100%);
}

.game-card-category {
  display: inline-block;
  background: linear-gradient(45deg, #667eea, #764ba2);
  color: white;
  padding: 0.3rem 0.8rem;
  border-radius: 15px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.8rem;
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.game-card-title {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--dark-color);
  margin-bottom: 0.8rem;
  line-height: 1.3;
  background: linear-gradient(45deg, #667eea, #764ba2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.game-card-description {
  color: #64748b;
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1.2rem;
}

.game-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.2rem;
  padding: 0.8rem;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,0.05);
}

.game-difficulty {
  padding: 0.4rem 1rem;
  border-radius: 25px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.difficulty-beginner {
  background: linear-gradient(45deg, #10b981, #34d399);
  color: white;
}

.difficulty-intermediate {
  background: linear-gradient(45deg, #f59e0b, #fbbf24);
  color: white;
}

.difficulty-advanced {
  background: linear-gradient(45deg, #ef4444, #f87171);
  color: white;
}

.game-time {
  color: #64748b;
  font-size: 0.85rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.game-card-footer {
  padding: 0 1.8rem 1.8rem;
}

.btn-play-game {
  width: 100%;
  background: linear-gradient(45deg, #667eea 0%, #764ba2 100%);
  border: none;
  color: white;
  font-weight: 700;
  padding: 1rem 1.5rem;
  border-radius: 15px;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  position: relative;
  overflow: hidden;
}

.btn-play-game::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: left 0.5s;
}

.btn-play-game:hover::before {
  left: 100%;
}

.btn-play-game:hover {
  background: linear-gradient(45deg, #764ba2 0%, #667eea 100%);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.6);
  color: white;
}

.btn-play-game:active {
  transform: translateY(-1px);
}

.game-high-score {
  background: linear-gradient(45deg, #ffd700, #ffed4e);
  color: #1f2937;
  padding: 0.3rem 0.8rem;
  border-radius: 15px;
  font-size: 0.75rem;
  font-weight: 700;
  text-align: center;
  margin-top: 0.8rem;
  box-shadow: 0 2px 8px rgba(255, 215, 0, 0.3);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.game-high-score i {
  margin-right: 0.3rem;
}

.game-iframe-container {
  position: relative;
  width: 100%;
  height: 600px;
  border-radius: 10px;
  overflow: hidden;
}

.game-iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.loading-spinner {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

@media (max-width: 768px) {
  .hero-section {
    padding: 3rem 0;
  }
  
  .hero-section h1 {
    font-size: 2.5rem;
  }
  
  .hero-section .lead {
    font-size: 1.1rem;
  }
  
  .hero-features {
    flex-direction: column;
    gap: 1rem;
  }
  
  .hero-feature {
    justify-content: center;
  }
  
  .btn-hero {
    padding: 0.8rem 1.5rem;
    font-size: 1.1rem;
  }
  
  /* Games Grid Mobile Styles */
  .games-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 2rem;
  }
  
  .game-card-image {
    height: 150px;
  }
  
  .game-card-icon {
    font-size: 3rem;
  }
  
  .game-card-body {
    padding: 1.2rem;
  }
  
  .game-card-title {
    font-size: 1.2rem;
  }
  
  .game-iframe-container {
    height: 400px;
  }
}

@media (max-width: 576px) {
  .games-grid {
    margin-top: 1.5rem;
  }
  
  .game-card-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
}

/* Game Page Specific Styles */
.breadcrumb {
  background: transparent;
  padding: 0;
}

.breadcrumb-item + .breadcrumb-item::before {
  content: "›";
  color: var(--secondary-color);
}

.game-header-content {
  text-align: center;
}

.game-header-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--dark-color);
  margin-bottom: 0.5rem;
}

.game-header-description {
  color: var(--secondary-color);
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.game-header-meta {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.game-meta-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--secondary-color);
}

.game-meta-item i {
  color: var(--primary-color);
}

.game-iframe-container {
  position: relative;
  width: 100%;
  height: 600px;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  background: #f8f9fa;
}

.game-iframe {
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 15px;
}

.game-iframe.fullscreen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 9999;
  border-radius: 0;
}

.loading-spinner {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}

.error-message {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  max-width: 400px;
}

.error-message i {
  font-size: 3rem;
  color: var(--warning-color);
  margin-bottom: 1rem;
}

.game-info-card {
  background: white;
  border-radius: 15px;
  padding: 2rem;
  box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.game-info-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--dark-color);
  margin-bottom: 1rem;
}

.game-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.game-tag {
  background: var(--light-color);
  color: var(--dark-color);
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
}

.recommended-game-card {
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
  cursor: pointer;
  margin-bottom: 1rem;
}

.recommended-game-card:hover {
  transform: translateY(-3px);
}

.recommended-game-image {
  height: 120px;
  background: linear-gradient(135deg, var(--primary-color), var(--info-color));
  display: flex;
  align-items: center;
  justify-content: center;
}

.recommended-game-image i {
  font-size: 2rem;
  color: white;
}

.recommended-game-body {
  padding: 1rem;
}

.recommended-game-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.recommended-game-difficulty {
  font-size: 0.8rem;
  padding: 0.2rem 0.6rem;
  border-radius: 15px;
  font-weight: 500;
}

/* Game Page Mobile Styles */
@media (max-width: 768px) {
  .game-header-title {
    font-size: 1.5rem;
  }
  
  .game-header-meta {
    gap: 1rem;
  }
  
  .game-iframe-container {
    height: 400px;
  }
  
  .game-info-card {
    padding: 1.5rem;
  }
  
  .recommended-game-image {
    height: 100px;
  }
}
/*
 About Section Styles */
.about-section {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 3rem 2rem;
  margin: 2rem 0;
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.feature-card {
  background: white;
  border-radius: 20px;
  padding: 2rem 1.5rem;
  height: 100%;
  box-shadow: 0 8px 25px rgba(0,0,0,0.08);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.05), rgba(118, 75, 162, 0.05));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(102, 126, 234, 0.2);
  border-color: rgba(102, 126, 234, 0.3);
}

.feature-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(45deg, #667eea, #764ba2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
  transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 12px 30px rgba(102, 126, 234, 0.4);
}

.feature-icon i {
  font-size: 2rem;
  color: white;
}

.feature-card h4 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #1f2937;
}

.feature-card p {
  color: #64748b;
  line-height: 1.6;
  margin-bottom: 0;
}

/* Stats Section */
.stats-section {
  background: linear-gradient(135deg, #667eea, #764ba2);
  border-radius: 20px;
  padding: 2.5rem 1.5rem;
  color: white;
  position: relative;
  overflow: hidden;
}

.stats-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 20%, rgba(255,255,255,0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(255,255,255,0.08) 0%, transparent 50%);
}

.stat-item {
  text-align: center;
  position: relative;
  z-index: 2;
}

.stat-number {
  font-size: 3rem;
  font-weight: 900;
  color: #ffd700;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
  margin-bottom: 0.5rem;
  animation: countUp 2s ease-out;
}

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

.stat-label {
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  opacity: 0.9;
}

/* Floating elements animation */
.floating-elements {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
}

.floating-star {
  position: absolute;
  color: rgba(255, 255, 255, 0.1);
  animation: float 6s ease-in-out infinite;
}

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

.floating-star:nth-child(1) { top: 10%; left: 10%; animation-delay: 0s; }
.floating-star:nth-child(2) { top: 20%; left: 80%; animation-delay: 1s; }
.floating-star:nth-child(3) { top: 60%; left: 20%; animation-delay: 2s; }
.floating-star:nth-child(4) { top: 80%; left: 90%; animation-delay: 3s; }
.floating-star:nth-child(5) { top: 40%; left: 70%; animation-delay: 4s; }

/* Footer Enhancement */
footer {
  background: linear-gradient(135deg, #1f2937, #374151) !important;
  border-top: 3px solid #667eea;
  position: relative;
}

footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #667eea, #764ba2, #667eea);
}

/* Enhanced Mobile Responsiveness */
@media (max-width: 768px) {
  .hero-section {
    padding: 4rem 0;
  }
  
  .hero-section h1 {
    font-size: 2.8rem;
  }
  
  .hero-section .lead {
    font-size: 1.1rem;
  }
  
  .hero-features {
    flex-direction: column;
    gap: 1.5rem;
  }
  
  .hero-feature {
    justify-content: center;
    padding: 0.8rem 1.2rem;
  }
  
  .btn-hero {
    padding: 1rem 2rem;
    font-size: 1.1rem;
  }
  
  .games-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 2rem;
  }
  
  .game-card-image {
    height: 150px;
  }
  
  .game-card-icon {
    font-size: 3rem;
  }
  
  .game-card-body {
    padding: 1.5rem;
  }
  
  .game-card-title {
    font-size: 1.2rem;
  }
  
  .feature-card {
    margin-bottom: 2rem;
  }
  
  .stat-number {
    font-size: 2.5rem;
  }
}

@media (max-width: 576px) {
  .games-grid {
    margin-top: 1.5rem;
  }
  
  .game-card-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.8rem;
  }
  
  .hero-features {
    gap: 1rem;
  }
  
  .hero-feature {
    font-size: 1rem;
    padding: 0.6rem 1rem;
  }
}
/* 
Game controls - Enhanced visibility */
#game-controls {
  margin-top: 1rem;
  padding: 20px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  backdrop-filter: blur(10px);
}

#game-controls .btn {
  margin: 0.5rem;
  padding: 12px 24px;
  font-weight: 600;
  border-radius: 25px;
  transition: all 0.3s ease;
  border-width: 2px;
  font-size: 1rem;
}

#game-controls .btn-outline-primary {
  background: linear-gradient(45deg, #667eea, #764ba2);
  border: 2px solid transparent;
  color: white;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

#game-controls .btn-outline-primary:hover {
  background: linear-gradient(45deg, #764ba2, #667eea);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.5);
  color: white;
  border-color: transparent;
}

#game-controls .btn-outline-secondary {
  background: linear-gradient(45deg, #6c757d, #495057);
  border: 2px solid transparent;
  color: white;
  box-shadow: 0 4px 15px rgba(108, 117, 125, 0.3);
}

#game-controls .btn-outline-secondary:hover {
  background: linear-gradient(45deg, #495057, #6c757d);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(108, 117, 125, 0.5);
  color: white;
  border-color: transparent;
}

#game-controls .btn-primary {
  background: linear-gradient(45deg, #ffd700, #ffed4e);
  border: 2px solid transparent;
  color: #1f2937;
  font-weight: 700;
  box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
}

#game-controls .btn-primary:hover {
  background: linear-gradient(45deg, #ffed4e, #ffd700);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 215, 0, 0.6);
  color: #1f2937;
  border-color: transparent;
}

#game-controls i {
  margin-right: 8px;
}/*
 Additional Game Preview Styles */

/* Story Game Preview */
.story-preview {
  background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%);
}

.preview-story-choices {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 8px;
}

.preview-choice {
  background: rgba(255,255,255,0.2);
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.7rem;
  border: 1px solid rgba(255,255,255,0.3);
}

.preview-choice.selected {
  background: #ffd700;
  color: #333;
}

/* Memory Game Preview */
.memory-preview {
  background: linear-gradient(135deg, #e91e63 0%, #f48fb1 100%);
}

.preview-memory-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  margin-top: 8px;
  width: 80%;
}

.preview-card {
  background: rgba(255,255,255,0.2);
  padding: 8px;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: bold;
  border: 1px solid rgba(255,255,255,0.3);
  text-align: center;
}

.preview-card.flipped {
  background: #ffd700;
  color: #333;
}

/* Combo Game Preview */
.combo-preview {
  background: linear-gradient(135deg, #9c27b0 0%, #ba68c8 100%);
}

.preview-combo-indicators {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 8px;
}

.combo-icon {
  font-size: 1.2rem;
  animation: bounce 1s infinite;
}

.combo-icon:nth-child(2) {
  animation-delay: 0.2s;
}

/* Racing Game Preview */
.racing-preview {
  background: linear-gradient(135deg, #ff5722 0%, #ff8a65 100%);
}

.preview-speedometer {
  position: relative;
  width: 60px;
  height: 30px;
  border: 2px solid rgba(255,255,255,0.3);
  border-radius: 30px 30px 0 0;
  margin: 8px auto;
}

.speed-needle {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 2px;
  height: 20px;
  background: #ffd700;
  transform-origin: bottom;
  transform: translateX(-50%) rotate(45deg);
  animation: speedNeedle 2s ease-in-out infinite;
}

.speed-text {
  font-size: 0.6rem;
  font-weight: bold;
  color: #ffd700;
  margin-top: 4px;
}

@keyframes speedNeedle {
  0%, 100% { transform: translateX(-50%) rotate(30deg); }
  50% { transform: translateX(-50%) rotate(60deg); }
}

.racing-bar {
  background: linear-gradient(45deg, #ff5722, #ffd700);
}

/* Holiday Game Preview */
.holiday-preview {
  background: linear-gradient(135deg, #4caf50 0%, #81c784 100%);
}

.preview-holiday-icons {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 8px;
}

.preview-holiday-icons span {
  font-size: 1.2rem;
  animation: twinkle 2s infinite;
}

.preview-holiday-icons span:nth-child(2) {
  animation-delay: 0.5s;
}

.preview-holiday-icons span:nth-child(3) {
  animation-delay: 1s;
}

/* Geography Game Preview */
.geography-preview {
  background: linear-gradient(135deg, #00bcd4 0%, #4dd0e1 100%);
}

.preview-world-map {
  font-size: 2rem;
  margin-top: 8px;
  animation: rotate 4s linear infinite;
}

@keyframes rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}/* Bu
ilder Game Preview */
.builder-preview {
  background: linear-gradient(135deg, #795548 0%, #a1887f 100%);
}

.preview-construction {
  display: flex;
  gap: 4px;
  margin: 8px 0;
  justify-content: center;
}

.preview-word-block {
  background: rgba(255,255,255,0.2);
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.7rem;
  border: 1px solid rgba(255,255,255,0.3);
}

.preview-word-block.active {
  background: #ffc107;
  color: #333;
  transform: translateY(-2px);
}

.preview-drop-zone {
  background: rgba(255,255,255,0.1);
  border: 2px dashed rgba(255,255,255,0.4);
  padding: 6px;
  border-radius: 4px;
  font-size: 0.7rem;
  margin-top: 4px;
}

/* Mystery Game Preview */
.mystery-preview {
  background: linear-gradient(135deg, #607d8b 0%, #90a4ae 100%);
}

.preview-magnifying {
  font-size: 2rem;
  margin-top: 8px;
  animation: magnify 2s ease-in-out infinite;
}

@keyframes magnify {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

/* Space Game Preview */
.space-preview {
  background: linear-gradient(135deg, #3f51b5 0%, #7986cb 100%);
}

.preview-planets {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 8px;
}

.preview-planets span {
  font-size: 1.2rem;
  animation: orbit 3s linear infinite;
}

.preview-planets span:nth-child(2) {
  animation-delay: 1s;
}

.preview-planets span:nth-child(3) {
  animation-delay: 2s;
}

@keyframes orbit {
  0% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-3px) scale(1.1); }
  100% { transform: translateY(0) scale(1); }
}/* Ga
me iframe container and iframe styles */
.game-iframe-container {
  position: relative;
  width: 100%;
  height: 600px;
  border-radius: 15px;
  overflow: hidden;
  background: #f8f9fa;
  border: 2px solid #e9ecef;
}

.game-iframe {
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 15px;
  background: white;
  /* 防止意外的样式变化 */
  max-width: 100%;
  max-height: 600px;
  position: relative;
}

/* 暂时禁用全屏功能以防止bug */
.game-iframe.fullscreen {
  /* 保持正常尺寸而不是全屏 */
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 15px;
  background: white;
  max-width: 100%;
  max-height: 600px;
  position: relative;
}

.loading-spinner {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
}

/* Error message styles */
.error-message {
  text-align: center;
  padding: 40px 20px;
  color: #6c757d;
}

.error-message i {
  font-size: 3rem;
  color: #ffc107;
  margin-bottom: 20px;
}

.error-message h4 {
  color: #495057;
  margin-bottom: 15px;
}

.error-message ul {
  text-align: left;
  max-width: 400px;
  margin: 0 auto 20px;
}

.error-message .btn {
  margin: 5px;
}