* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Pretendard", Arial, sans-serif;
}

body {
    background: #f5f9ff;
    padding: 40px;
}

.container {
    max-width: 1100px;
    margin: auto;
    text-align: center;
}

.title {
    font-size: 28px;
    color: #2563eb;
    margin-bottom: 8px;
}

.subtitle {
    color: #6b7280;
    margin-bottom: 30px;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 18px;
}

/* 카드 공통 */
.card {
    text-decoration: none;
    background: #ffffff;
    border-radius: 14px;
    padding: 22px 10px;
    height: 110px;
    box-shadow: 0 6px 16px rgba(37,99,235,0.08);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.25s ease;
}

.card span {
    margin-top: 10px;
    font-size: 14px;
    color: #1f2937;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 28px rgba(37,99,235,0.18);
}

/* 상단 강조 카드 */
.card.highlight {
    background: #eaf2ff;
    color: #2563eb;
}

.card.highlight span {
    color: #2563eb;
    font-weight: 500;
}

/* 닫기 카드 */
.card.close {
    background: linear-gradient(135deg, #3b82f6, #60a5fa);
    color: white;
}

.card.close span {
    color: white;
    font-weight: bold;
}

/* 반응형 */
@media (max-width: 900px) {
    .card-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}


  /* Recommended Games Section Styles */
  .recommended-games-container {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 2px solid rgba(34, 211, 238, 0.2); /* 이전 섹션과의 구분 */
  }

  .recommended-title {
    text-align: center;
    margin-bottom: 20px;
  }

  .recommended-games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); /* 작은 화면에서 유연하게 조절 */
    gap: 15px; /* 이미지 간 간격 조절 */
    justify-content: center;
    padding: 20px 0;
  }

  .game-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #e0e7ff;
    background-color: rgba(2, 6, 23, 0.6); /* 더 어두운 배경으로 카드 강조 */
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.2s ease-in-out;
    position: relative;
    box-shadow: 0 0 15px rgba(30, 64, 175, 0.2); /* 은은한 네온 그림자 */
    border: 1px solid rgba(30, 64, 175, 0.3);
  }

  .game-card:hover {
    transform: translateY(-5px) scale(1.03);
    box-shadow: 0 0 25px rgba(34, 211, 238, 0.4); /* 호버 시 강한 네온 그림자 */
    border-color: rgba(34, 211, 238, 0.6);
  }

  .game-thumbnail {
    width: 100%;
    height: 100px; /* 썸네일 높이 고정 */
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
  }

  .game-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* 이미지가 썸네일 영역에 꽉 차도록 */
    display: block;
  }

  .game-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    text-align: center;
    padding: 10px 5px;
    color: #a5f3fc; /* 게임 타이틀도 네온색 */
    text-shadow: 0 0 5px rgba(34, 211, 238, 0.4);
    flex-grow: 1; /* 제목이 하단 공간을 채우도록 */
  }

  /* 'Top' 뱃지 스타일 */
  .top-badge {
    position: absolute;
    top: 5px;
    right: 5px;
    background-color: #facc15; /* 노란색 */
    color: #020617; /* 어두운 텍스트 */
    font-family: 'Orbitron', sans-serif;
    font-size: 0.7rem;
    font-weight: 900;
    padding: 3px 8px;
    border-radius: 5px;
    box-shadow: 0 0 8px rgba(250, 204, 21, 0.6);
    transform: rotate(5deg); /* 약간 기울여서 시선을 끎 */
    z-index: 10;
  }

  /* 반응형 조정 */
  @media (min-width: 768px) {
    .recommended-games-grid {
      grid-template-columns: repeat(4, 1fr); /* 큰 화면에서 4열로 */
      max-width: 800px; /* 그리드 최대 너비 설정 */
    }
  }

  @media (max-width: 767px) {
    .recommended-games-grid {
      grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); /* 중간 화면에서 더 유연하게 */
      gap: 10px;
    }
    .game-thumbnail {
      height: 80px;
    }
    .game-title {
      font-size: 0.8rem;
    }
  }

  @media (max-width: 480px) {
    .recommended-games-grid {
      grid-template-columns: repeat(2, 1fr); /* 작은 화면에서 2열로 */
      gap: 10px;
    }
    .game-thumbnail {
      height: 70px;
    }
    .game-title {
      font-size: 0.75rem;
      padding: 8px 3px;
    }
  }

