/* Responsive Styles */

@media screen and (max-width: 1200px) {
  .games-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    padding: 0 1rem;
  }
  
  .hero h1 {
    font-size: 3.5rem;
  }
}

@media screen and (max-width: 992px) {
  .hero h1 {
    font-size: 3rem;
  }
  
  .hero p {
    font-size: 1.1rem;
  }
  
  .games-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
  }
  
  .leaderboard-header, .leaderboard-row {
    padding: 1rem;
  }
}

@media screen and (max-width: 768px) {
  header {
    padding: 1rem;
  }
  
  nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    height: 100vh;
    background-color: var(--color-deep-navy);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: right 0.3s ease-in-out;
    z-index: 999;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.3);
  }
  
  nav.active {
    right: 0;
  }
  
  nav ul {
    flex-direction: column;
    align-items: center;
    gap: 2rem;
  }
  
  nav ul li a {
    font-size: 1.2rem;
  }
  
  .menu-toggle {
    display: flex;
    z-index: 1000;
  }
  
  .hero {
    height: 90vh;
  }
  
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .hero p {
    font-size: 1rem;
  }
  
  .btn-explore {
    padding: 0.8rem 2rem;
    font-size: 1rem;
  }
  
  .games-section, .missions-section, .leaderboard-section {
    padding: 4rem 1rem;
  }
  
  .games-section h2, .missions-section h2, .leaderboard-section h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
  }
  
  .games-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
  
  .leaderboard-header {
    grid-template-columns: 0.5fr 1.5fr 1fr;
    font-size: 0.9rem;
  }
  
  .leaderboard-row {
    grid-template-columns: 0.5fr 1.5fr 1fr;
    font-size: 0.9rem;
  }
  
  .footer-content {
    gap: 1rem;
  }
  
  .footer-links {
    gap: 1.5rem;
  }
}

@media screen and (max-width: 576px) {
  .logo a {
    font-size: 1.5rem;
  }
  
  .hero h1 {
    font-size: 2rem;
  }
  
  .hero p {
    font-size: 0.9rem;
  }
  
  .btn-explore {
    padding: 0.7rem 1.5rem;
    font-size: 0.9rem;
  }
  
  .games-section h2, .missions-section h2, .leaderboard-section h2 {
    font-size: 1.8rem;
  }
  
  .games-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .game-image {
    height: 160px;
  }
  
  .missions-carousel {
    gap: 1rem;
  }
  
  .mission-card {
    min-width: 220px;
    padding: 1.5rem 1rem;
  }
  
  .leaderboard {
    font-size: 0.8rem;
  }
  
  .leaderboard-header, .leaderboard-row {
    padding: 0.8rem;
    grid-template-columns: 0.5fr 1.5fr 1fr;
  }
  
  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
  }
}

@media screen and (max-width: 400px) {
  .hero h1 {
    font-size: 1.8rem;
  }
  
  .btn-play {
    padding: 0.6rem 1.2rem;
    font-size: 0.8rem;
  }
  
  .btn-explore {
    padding: 0.6rem 1.3rem;
    font-size: 0.8rem;
  }
  
  .game-info h3 {
    font-size: 1.1rem;
  }
  
  .btn-play-game {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
  }
  
  .mission-card {
    min-width: 200px;
    padding: 1.2rem 0.8rem;
  }
  
  .leaderboard-header, .leaderboard-row {
    grid-template-columns: 0.5fr 1.2fr 1fr;
    font-size: 0.75rem;
  }
  
  .avatar {
    width: 25px;
    height: 25px;
    font-size: 1rem;
  }
}