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

:root {
  --gold: #c9a84c;
  --gold-light: #e8c96a;
  --gold-dark: #a07830;
  --black: #0a0a0a;
  --dark: #111111;
  --dark-mid: #1a1a1a;
  --dark-card: #161616;
  --text-white: #ffffff;
  --text-gray: #aaaaaa;
  --live-badge: #c0392b;
  --slot-badge: #1a6fa8;
  --header-h: 88px;
  --transition: 0.3s ease;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Apple SD Gothic Neo', 'Noto Sans KR', 'Malgun Gothic', sans-serif;
  background-color: var(--black);
  color: var(--text-white);
  min-height: 100vh;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

ul {
  list-style: none;
}

/* =============================================
   BODY 배경
============================================= */
body {
  background-image: url('../images/background-01.png');
  background-size: cover;
  background-attachment: fixed;
  background-position: center top;
  background-repeat: no-repeat;
}

/* =============================================
   HEADER
============================================= */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-h);
  z-index: 1000;
  /* 반투명 글래스모피즘 */
  background: rgba(8, 6, 4, 0.45);
  backdrop-filter: blur(24px) saturate(1.5);
  -webkit-backdrop-filter: blur(24px) saturate(1.5);
  border-bottom: 1px solid rgba(201, 168, 76, 0.18);
  transition: background 0.4s ease, box-shadow 0.4s ease;
}


.header.scrolled {
  background: rgba(6, 4, 2, 0.82);
  box-shadow:
    0 2px 0 rgba(201, 168, 76, 0.1),
    0 8px 30px rgba(0, 0, 0, 0.6);
}

.header__inner {
  max-width: 1280px;
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
}

/* 로고 */
.header__logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.header__logo img {
  height: 68px;
  width: auto;
  object-fit: contain;
  filter: none;
  transition: transform 0.3s ease;
}

.header__logo:hover img {
  filter: none;
  transform: scale(1.04);
}

/* 네비게이션 */
.header__nav-list {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header__nav-link {
  display: block;
  padding: 8px 20px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-gray);
  letter-spacing: 0.05em;
  border-radius: 4px;
  transition: color var(--transition), background var(--transition);
  position: relative;
}

.header__nav-link::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
  transition: width var(--transition);
}

.header__nav-link:hover,
.header__nav-link.active {
  color: var(--gold-light);
}

.header__nav-link:hover::after,
.header__nav-link.active::after {
  width: calc(100% - 40px);
}

/* 햄버거 (모바일) */
.header__hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.header__hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
  transition: all var(--transition);
}

.header__hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.header__hamburger.open span:nth-child(2) {
  opacity: 0;
}
.header__hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* =============================================
   HERO 배너
============================================= */
.hero {
  position: relative;
  width: 100%;
  margin-top: var(--header-h);
  overflow: visible;
  line-height: 0;
}

.hero__bg {
  width: 100%;
}

.hero__img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.05) 60%,
    rgba(10, 10, 10, 0.85) 100%
  );
  pointer-events: none;
}

/* 배너 안 CTA 버튼 */
.hero__cta-btn {
  position: absolute;
  bottom: 40px;
  right: 60px;
  z-index: 10;
  display: inline-block;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.hero__cta-btn img {
  display: block;
  height: 200px;
  width: auto;
  filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.6));
}

.hero__cta-btn:hover {
  transform: scale(1.05);
  filter: brightness(1.12);
}

.hero__cta-btn:hover img {
  filter: drop-shadow(0 12px 32px rgba(0, 0, 0, 0.7));
}

.hero__cta-btn:active {
  transform: scale(0.98);
}

/* =============================================
   게임 섹션
============================================= */
.games-section {
  padding: 36px 0 24px;
}

.games-section__inner {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── 카테고리 컨테이너 ── */
.game-category {
  margin-bottom: 52px;
  position: relative;
  background: rgba(255, 255, 255, 0.018);
  border: 1px solid rgba(255, 255, 255, 0.055);
  border-radius: 16px;
  padding: 28px 24px 28px;
}

/* 라이브 카테고리 상단 강조선 */
.game-category:first-child::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #e74c3c, transparent);
  border-radius: 16px 16px 0 0;
}

/* 슬롯 카테고리 상단 강조선 */
.game-category:last-child::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #2980b9, transparent);
  border-radius: 16px 16px 0 0;
}

/* ── 카테고리 헤더 ── */
.game-category__header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

/* 타이틀 + 태그 묶음 */
.game-category__title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

/* LIVE / SLOT 태그 */
.game-category__tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.18em;
  padding: 5px 11px;
  border-radius: 4px;
  line-height: 1;
}

.game-category__tag--live {
  color: #fff;
  background: linear-gradient(135deg, #e74c3c, #a93226);
  box-shadow: 0 0 12px rgba(231, 76, 60, 0.55);
  animation: tagLiveGlow 2s ease-in-out infinite;
}

.game-category__tag--slot {
  color: #fff;
  background: linear-gradient(135deg, #2980b9, #1a5276);
  box-shadow: 0 0 12px rgba(41, 128, 185, 0.5);
}

@keyframes tagLiveGlow {
  0%, 100% { box-shadow: 0 0 10px rgba(231, 76, 60, 0.45); }
  50%       { box-shadow: 0 0 24px rgba(231, 76, 60, 0.95), 0 0 40px rgba(231, 76, 60, 0.3); }
}

/* 카테고리 타이틀 */
.game-category__title {
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.03em;
}

/* 제공사 수 뱃지 */
.game-category__count {
  font-size: 11px;
  font-weight: 600;
  color: rgba(201, 168, 76, 0.75);
  background: rgba(201, 168, 76, 0.07);
  border: 1px solid rgba(201, 168, 76, 0.2);
  padding: 4px 12px;
  border-radius: 20px;
  letter-spacing: 0.05em;
  flex-shrink: 0;
}

/* 헤더 오른쪽 라인 */
.game-category__line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.08), transparent);
}

/* ── 게임 그리드 ── */
.game-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
}

/* =============================================
   게임 카드
============================================= */
.game-card {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 3 / 2;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.07);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* 라이브 카드 배경 */
.game-card--live { background-image: url('../images/g-back-01.png'); }
.game-card--live:hover { background-image: url('../images/g-back-02.png'); }

/* 슬롯 카드 배경 */
.game-card--slot { background-image: url('../images/g-back-03.png'); }
.game-card--slot:hover { background-image: url('../images/g-back-04.png'); }

/* 어두운 오버레이 */
.game-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.25) 0%,
    rgba(0, 0, 0, 0.45) 60%,
    rgba(0, 0, 0, 0.7) 100%
  );
  transition: background 0.3s ease;
  z-index: 1;
}

/* 호버 시 오버레이 살짝 밝게 */
.game-card:hover::before {
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.05) 0%,
    rgba(0, 0, 0, 0.2) 50%,
    rgba(0, 0, 0, 0.6) 100%
  );
}

/* 호버 "바로가기" 슬라이드업 패널 */
.game-card::after {
  content: '▶ 바로가기';
  position: absolute;
  bottom: -38px;
  left: 0;
  width: 100%;
  padding: 9px 0;
  font-size: 10px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.2em;
  text-align: center;
  background: rgba(201, 168, 76, 0.3);
  backdrop-filter: blur(6px);
  border-top: 1px solid rgba(201, 168, 76, 0.35);
  transition: bottom 0.3s ease;
  z-index: 6;
}

.game-card:hover::after {
  bottom: 0;
}

/* 카드 호버 효과 */
.game-card:hover {
  transform: translateY(-6px) scale(1.03);
  box-shadow:
    0 20px 44px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(201, 168, 76, 0.4),
    0 0 28px rgba(201, 168, 76, 0.12);
  border-color: rgba(201, 168, 76, 0.45);
  z-index: 2;
}

/* =============================================
   게임 카드 뱃지 (이미지형)
============================================= */
.game-card__badge {
  position: absolute;
  top: 7px;
  left: 7px;
  z-index: 10;
  display: block;
  line-height: 0;
}

.game-card__badge img {
  display: block;
  width: auto;
  height: 34px;
  object-fit: contain;
  transform-origin: center;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.5));
}

/* 호버시 뱃지 스핀 */
.game-card--live:hover .game-card__badge img,
.game-card--slot:hover .game-card__badge--slot img {
  animation: badgeSpin 0.5s cubic-bezier(0.36, 0.07, 0.19, 0.97) forwards;
}

@keyframes badgeSpin {
  0%   { transform: rotateY(0deg)   scale(1);    }
  30%  { transform: rotateY(90deg)  scale(0.85); }
  60%  { transform: rotateY(270deg) scale(0.85); }
  85%  { transform: rotateY(340deg) scale(1.08); }
  100% { transform: rotateY(360deg) scale(1);    }
}

.game-card__badge--slot { animation: none; }

/* ── 로고 영역 ── */
.game-card__logo {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 82%;
  padding-bottom: 26px;
  transition: transform 0.3s ease;
}

.game-card__logo img {
  max-width: 90%;
  max-height: 68px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.7));
  transition: filter 0.3s ease, transform 0.3s ease;
}

.game-card:hover .game-card__logo img {
  filter: drop-shadow(0 4px 16px rgba(255, 255, 255, 0.3));
  transform: scale(1.08) translateY(-2px);
}

/* ── 카드 이름 ── */
.game-card__name {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  font-size: 11px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.9);
  text-align: center;
  padding: 6px 6px 8px;
  background: rgba(0, 0, 0, 0.55);
  z-index: 5;
  letter-spacing: 0.06em;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

/* 호버시 이름 살짝 위로 올라가며 숨김 (바로가기 패널이 대신) */
.game-card:hover .game-card__name {
  opacity: 0;
  transform: translateY(-4px);
}

/* =============================================
   이벤트 & 프로모션 섹션
============================================= */
.promo-section {
  padding: 0px 0 80px;
}

.promo-section__inner {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 24px;
}

/* 섹션 헤더 */
.promo-section__header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.promo-section__title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.promo-section__tag-img {
  height: 24px;
  width: auto;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
}

.promo-section__title {
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.03em;
}

.promo-section__line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.08), transparent);
}

/* ── 이벤트 그리드 ── */
.promo-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  max-width: 900px;
  margin: 0 auto;
}

/* ── 카드 공통 ── */
.promo-card {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.07);
  aspect-ratio: 5 / 6;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  cursor: pointer;
}

.promo-card:hover {
  transform: translateY(-4px);
  box-shadow:
    0 16px 40px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(201, 168, 76, 0.3);
  border-color: rgba(201, 168, 76, 0.35);
}

.promo-card__inner {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* ── 텍스트형 카드 ── */
.promo-card--text {
  background: rgba(22, 20, 16, 0.85);
  backdrop-filter: blur(8px);
}

.promo-card--text:hover {
  background: rgba(28, 25, 18, 0.92);
}

.promo-card__text-body {
  padding: 32px 30px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  height: 100%;
  justify-content: space-between;
}

/* 카드 제목 */
.promo-card__title {
  font-size: 21px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.01em;
  line-height: 1.35;
  margin-bottom: 4px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* 설명 텍스트 */
.promo-card__desc {
  font-size: 16px;
  font-weight: 500;
  color: rgba(220, 220, 220, 0.95);
  line-height: 1.85;
}

/* 강조 설명 (퍼센트 등) */
.promo-card__desc--highlight {
  font-size: 18px;
  font-weight: 800;
  color: #f2d97a;
  line-height: 1.95;
  text-shadow: 0 0 12px rgba(201, 168, 76, 0.3);
}

/* 구분선 */
.promo-card__divider {
  height: 2px;
  background: linear-gradient(90deg, 
    transparent,
    rgba(201, 168, 76, 0.3) 20%,
    rgba(201, 168, 76, 0.3) 80%,
    transparent
  );
  margin: 8px 0;
}

/* 주의사항 (빨간 강조) */
.promo-card__notice {
  font-size: 16px;
  font-weight: 900;
  color: #ff6b6b;
  letter-spacing: 0.08em;
  margin-top: 4px;
  margin-bottom: 2px;
  text-shadow: 0 0 8px rgba(255, 76, 76, 0.4);
}

/* 리스트 */
.promo-card__list {
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding-left: 2px;
}

.promo-card__list li {
  font-size: 15px;
  color: rgba(210, 210, 210, 0.92);
  line-height: 1.75;
  padding-left: 16px;
  position: relative;
}

.promo-card__list li::before {
  content: '▪';
  position: absolute;
  left: 0;
  color: rgba(201, 168, 76, 0.7);
  font-weight: 900;
  font-size: 14px;
}

/* ── 이미지형 카드 ── */
.promo-card--image {
  background: rgba(30, 24, 14, 0.7);
  position: relative;
  overflow: hidden;
}

/* 배너 이미지 */
.promo-card__banner {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* 이미지 카드 안쪽 대각선 패턴 (placeholder 느낌) */
.promo-card--image::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    -45deg,
    rgba(255, 255, 255, 0.015) 0px,
    rgba(255, 255, 255, 0.015) 1px,
    transparent 1px,
    transparent 14px
  );
  pointer-events: none;
}

.promo-card__img-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  height: 100%;
  padding: 30px;
  position: relative;
  z-index: 1;
}

/* 테두리 코너 장식 */
.promo-card__img-placeholder::before,
.promo-card__img-placeholder::after {
  content: '';
  position: absolute;
  width: 22px;
  height: 22px;
  border-color: rgba(201, 168, 76, 0.35);
  border-style: solid;
}

.promo-card__img-placeholder::before {
  top: 16px;
  left: 16px;
  border-width: 2px 0 0 2px;
  border-radius: 3px 0 0 0;
}

.promo-card__img-placeholder::after {
  bottom: 16px;
  right: 16px;
  border-width: 0 2px 2px 0;
  border-radius: 0 0 3px 0;
}

.promo-card__img-icon {
  font-size: 40px;
  opacity: 0.35;
  line-height: 1;
}

.promo-card__img-label {
  font-size: 12px;
  font-weight: 600;
  color: rgba(201, 168, 76, 0.45);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* 반응형 */
@media (max-width: 768px) {
  .promo-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .promo-section {
    padding: 28px 0 60px;
  }

  .promo-section__inner {
    padding: 0 12px;
  }

  .promo-card {
    aspect-ratio: 3 / 4;
  }

  .promo-card__text-body {
    padding: 12px 10px;
    gap: 4px;
  }

  .promo-card__title {
    font-size: 11px;
    line-height: 1.3;
    margin-bottom: 1px;
  }

  .promo-card__desc {
    font-size: 8.5px;
    line-height: 1.55;
  }

  .promo-card__desc--highlight {
    font-size: 9.5px;
    line-height: 1.6;
  }

  .promo-card__notice {
    font-size: 8.5px;
    margin-top: 1px;
    margin-bottom: 0px;
  }

  .promo-card__divider {
    margin: 2px 0;
    height: 1px;
  }

  .promo-card__list {
    gap: 3px;
  }

  .promo-card__list li {
    font-size: 8px;
    line-height: 1.5;
    padding-left: 9px;
  }

  .promo-card__list li::before {
    font-size: 7px;
  }

  .promo-card__img-icon {
    font-size: 28px;
  }

  .promo-card__img-label {
    font-size: 8px;
  }
}

/* =============================================
   섹션 구분선
============================================= */
.section-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201, 168, 76, 0.35), transparent);
  margin: 32px 0 36px;
}

/* =============================================
   FOOTER
============================================= */
.footer {
  position: relative;
  padding: 0 0 0;
  background-image: url('../images/background-02.png');
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  overflow: hidden;
}

/* 배경 어둡게 오버레이 */
.footer::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.82);
}

/* 내부 레이아웃 */
.footer__inner {
  position: relative;
  z-index: 1;
  max-width: 1000px;
  margin: 0 auto;
  padding: 52px 24px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  text-align: center;
}

/* 로고 + 슬로건 */
.footer__brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.footer__logo img {
  height: 52px;
  width: auto;
  object-fit: contain;
  margin: 0 auto;
  filter: drop-shadow(0 0 12px rgba(201, 168, 76, 0.3));
}

.footer__slogan {
  font-size: 13px;
  color: rgba(201, 168, 76, 0.7);
  letter-spacing: 0.12em;
  font-weight: 500;
}

/* 구분선 */
.footer__divider {
  width: 60px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

/* 정보 영역 */
.footer__info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

/* 뱃지 그룹 */
.footer__badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.footer__badge {
  font-size: 12px;
  font-weight: 600;
  color: rgba(201, 168, 76, 0.85);
  background: rgba(201, 168, 76, 0.08);
  border: 1px solid rgba(201, 168, 76, 0.22);
  padding: 6px 14px;
  border-radius: 20px;
  letter-spacing: 0.04em;
  transition: background var(--transition), border-color var(--transition);
}

.footer__badge:hover {
  background: rgba(201, 168, 76, 0.16);
  border-color: rgba(201, 168, 76, 0.45);
}

.footer__desc {
  font-size: 12px;
  color: rgba(160, 160, 160, 0.65);
  max-width: 480px;
  line-height: 1.8;
}

.footer__copy {
  font-size: 12px;
  color: rgba(120, 120, 120, 0.7);
  letter-spacing: 0.04em;
}

/* =============================================
   SCROLL TOP 버튼
============================================= */
.scroll-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 44px;
  height: 44px;
  background: rgba(201, 168, 76, 0.15);
  border: 1px solid rgba(201, 168, 76, 0.5);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
  color: var(--gold);
}

.scroll-top.visible {
  opacity: 1;
  visibility: visible;
}

.scroll-top:hover {
  background: rgba(201, 168, 76, 0.3);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(201, 168, 76, 0.2);
}

/* =============================================
   반응형 - 태블릿
============================================= */
@media (max-width: 1024px) {
  .game-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 9px;
  }

  .game-category {
    padding: 22px 18px 22px;
  }
}

@media (max-width: 768px) {
  :root {
    --header-h: 66px;
  }

  .header__hamburger {
    display: flex;
  }

  .header__nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    width: 100%;
    background: rgba(5, 5, 5, 0.98);
    border-bottom: 1px solid rgba(201, 168, 76, 0.2);
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.35s ease;
  }

  .header__nav.open {
    max-height: 300px;
    padding: 12px 0;
  }

  .header__nav-list {
    flex-direction: column;
    gap: 0;
    align-items: stretch;
  }

  .header__nav-link {
    padding: 14px 24px;
    font-size: 15px;
    border-radius: 0;
  }

  .header__nav-link::after {
    display: none;
  }

  .hero__cta-btn {
    bottom: 20px;
    right: 30px;
  }

  .hero__cta-btn img {
    height: 140px;
  }

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

  .game-category {
    padding: 18px 14px 18px;
    margin-bottom: 32px;
  }

  .game-category__title {
    font-size: 16px;
  }

  .game-category__count {
    display: none;
  }

  .games-section__inner {
    padding: 0 14px;
  }

  .games-section {
    padding: 24px 0 60px;
  }
}

@media (max-width: 480px) {
  .game-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 7px;
  }

  .game-category {
    padding: 14px 12px 14px;
    margin-bottom: 24px;
    border-radius: 12px;
  }

  .game-card__badge img {
    height: 26px;
  }

  .hero__cta-btn {
    bottom: 16px;
    right: 20px;
  }

  .hero__cta-btn img {
    height: 90px;
  }
}

/* =============================================
   애니메이션 - 페이드인
============================================= */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.game-card {
  animation: fadeInUp 0.4s ease both;
}

.game-card:nth-child(1)  { animation-delay: 0.04s; }
.game-card:nth-child(2)  { animation-delay: 0.08s; }
.game-card:nth-child(3)  { animation-delay: 0.12s; }
.game-card:nth-child(4)  { animation-delay: 0.16s; }
.game-card:nth-child(5)  { animation-delay: 0.20s; }
.game-card:nth-child(6)  { animation-delay: 0.24s; }
.game-card:nth-child(7)  { animation-delay: 0.28s; }
.game-card:nth-child(8)  { animation-delay: 0.32s; }
.game-card:nth-child(9)  { animation-delay: 0.36s; }
.game-card:nth-child(10) { animation-delay: 0.40s; }
.game-card:nth-child(11) { animation-delay: 0.44s; }
.game-card:nth-child(12) { animation-delay: 0.48s; }
