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

:root {
  /* cool platinum accent (v2) */
  --gold: #9bb8c9;
  --gold-light: #c5d9e4;
  --gold-dark: #6a8fa3;
  --black: #07090c;
  --dark: #0d1116;
  --dark-mid: #151b22;
  --dark-card: #121820;
  --text-white: #f2f6f8;
  --text-gray: #9aa8b3;
  --live-badge: #c0392b;
  --slot-badge: #2a7a9b;
  --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-02.png');
  background-size: cover;
  background-attachment: fixed;
  background-position: center top;
  background-repeat: no-repeat;
}

/* =============================================
   HEADER (v2 - 3단 레이아웃)
============================================= */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-h);
  z-index: 1000;
  background: linear-gradient(180deg, rgba(7, 12, 18, 0.92) 0%, rgba(7, 12, 18, 0.72) 100%);
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  border-bottom: none;
  transition: background 0.4s ease, box-shadow 0.4s ease;
}

/* 상단 얇은 액센트 라인 */
.header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent 5%, var(--gold) 35%, var(--gold-light) 50%, var(--gold) 65%, transparent 95%);
  opacity: 0.85;
}

.header.scrolled {
  background: rgba(5, 9, 14, 0.94);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.55);
}

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

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

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

.header__logo:hover img {
  filter: drop-shadow(0 0 10px rgba(155, 184, 201, 0.35));
  transform: scale(1.03);
}

/* 네비게이션 - 캡슐 */
.header__nav {
  margin-left: auto;
}

.header__nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 5px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(155, 184, 201, 0.16);
  border-radius: 999px;
}

.header__nav-link {
  display: block;
  padding: 9px 18px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-gray);
  letter-spacing: 0.08em;
  border-radius: 999px;
  transition: color var(--transition), background var(--transition), box-shadow var(--transition);
  position: relative;
}

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

.header__nav-link:hover {
  color: var(--text-white);
  background: rgba(155, 184, 201, 0.1);
}

.header__nav-link.active {
  color: #0a1016;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  box-shadow: 0 4px 16px rgba(155, 184, 201, 0.28);
}

/* 햄버거 (모바일) */
.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;
}

/* ── 카테고리 헤더 (v2) ── */
.game-category__header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
  padding: 0 0 0 14px;
  border-bottom: none;
  border-left: 3px solid var(--gold);
}

/* 타이틀 + 태그 묶음 */
.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: 22px;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* 제공사 수 뱃지 */
.game-category__count {
  font-size: 11px;
  font-weight: 600;
  color: rgba(155, 184, 201, 0.85);
  background: transparent;
  border: 1px dashed rgba(155, 184, 201, 0.35);
  padding: 4px 12px;
  border-radius: 4px;
  letter-spacing: 0.05em;
  flex-shrink: 0;
}

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

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

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

/* 라이브: 왼쪽 레드 액센트 + 둥근 모서리 */
.game-card--live {
  background-image: url('../images/g-back-01.png');
  border-radius: 14px;
  box-shadow: inset 3px 0 0 0 rgba(192, 57, 43, 0.85);
}
.game-card--live:hover { background-image: url('../images/g-back-02.png'); }

/* 슬롯: 각진 모서리 + 상단 라인 */
.game-card--slot {
  background-image: url('../images/g-back-03.png');
  border-radius: 4px;
  box-shadow: inset 0 2px 0 0 rgba(155, 184, 201, 0.55);
}
.game-card--slot:hover { background-image: url('../images/g-back-04.png'); }

/* 어두운 오버레이 */
.game-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    rgba(0, 0, 0, 0.15) 0%,
    rgba(0, 0, 0, 0.4) 55%,
    rgba(0, 0, 0, 0.78) 100%
  );
  transition: background 0.3s ease;
  z-index: 1;
}

.game-card:hover::before {
  background: linear-gradient(
    160deg,
    rgba(0, 0, 0, 0.02) 0%,
    rgba(0, 0, 0, 0.18) 45%,
    rgba(0, 0, 0, 0.65) 100%
  );
}

/* 호버 시 우측 세로 바로가기 */
.game-card::after {
  content: 'PLAY';
  position: absolute;
  top: 0;
  right: -42px;
  width: 42px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  writing-mode: vertical-rl;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.28em;
  color: #0a1016;
  background: linear-gradient(180deg, var(--gold-light), var(--gold));
  transition: right 0.28s ease;
  z-index: 6;
}

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

/* 카드 호버 효과 */
.game-card:hover {
  transform: translateY(-4px);
  box-shadow:
    0 16px 36px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(155, 184, 201, 0.35);
  border-color: rgba(155, 184, 201, 0.4);
  z-index: 2;
}

.game-card--live:hover {
  box-shadow:
    0 16px 36px rgba(0, 0, 0, 0.55),
    inset 3px 0 0 0 rgba(231, 76, 60, 1),
    0 0 24px rgba(192, 57, 43, 0.18);
}

.game-card--slot:hover {
  box-shadow:
    0 16px 36px rgba(0, 0, 0, 0.55),
    inset 0 2px 0 0 rgba(197, 217, 228, 0.9),
    0 0 24px rgba(155, 184, 201, 0.16);
}

/* =============================================
   게임 카드 뱃지 (이미지형) - 좌측 상단 유지
============================================= */
.game-card__badge {
  position: absolute;
  top: 7px;
  left: 7px;
  right: auto;
  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: badgePop 0.35s ease forwards;
}

@keyframes badgePop {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.18); }
  100% { transform: 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: 78%;
  padding-bottom: 22px;
  transition: transform 0.3s ease;
}

.game-card__logo img {
  max-width: 88%;
  max-height: 62px;
  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 14px rgba(155, 184, 201, 0.35));
  transform: scale(1.06);
}

/* ── 카드 이름 (좌측 정렬 + 액센트) ── */
.game-card__name {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  font-size: 11px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.92);
  text-align: left;
  padding: 8px 12px 10px;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.35));
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  z-index: 5;
  letter-spacing: 0.04em;
  transition: opacity 0.25s ease, padding-right 0.28s ease;
}

.game-card--live .game-card__name {
  border-left: 2px solid rgba(231, 76, 60, 0.9);
}

.game-card--slot .game-card__name {
  border-left: 2px solid rgba(155, 184, 201, 0.85);
}

/* 호버시 PLAY 패널 공간 확보 */
.game-card:hover .game-card__name {
  opacity: 1;
  padding-right: 48px;
}

/* =============================================
   이벤트 & 프로모션 섹션
============================================= */
.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(155, 184, 201, 0.3);
  border-color: rgba(155, 184, 201, 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(155, 184, 201, 0.3);
}

/* 구분선 */
.promo-card__divider {
  height: 2px;
  background: linear-gradient(90deg, 
    transparent,
    rgba(155, 184, 201, 0.3) 20%,
    rgba(155, 184, 201, 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(155, 184, 201, 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(155, 184, 201, 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(155, 184, 201, 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(155, 184, 201, 0.35), transparent);
  margin: 32px 0 36px;
}

/* =============================================
   ABOUT HERO (소개 텍스트)
============================================= */
.about-hero {
  position: relative;
  padding: 72px 0 96px;
}

.about-hero__inner {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 28px;
}

.about-hero__title {
  font-size: clamp(28px, 4.2vw, 44px);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--text-white);
  margin-bottom: 36px;
  background: linear-gradient(135deg, var(--text-white) 0%, var(--gold-light) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.about-hero__lead {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 56px;
}

.about-hero__lead p,
.about-hero__block p {
  font-size: 16px;
  line-height: 1.85;
  color: var(--text-gray);
  word-break: keep-all;
}

.about-hero__blocks {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid rgba(155, 184, 201, 0.2);
}

.about-hero__block {
  padding: 36px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.about-hero__block:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.about-hero__block-title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 20px;
  font-weight: 700;
  color: var(--text-white);
  letter-spacing: -0.01em;
  margin-bottom: 14px;
}

.about-hero__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 28px;
  padding: 0 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--black);
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  border-radius: 6px;
  letter-spacing: 0;
}

/* =============================================
   FOOTER (v2 - split layout)
============================================= */
.footer {
  position: relative;
  padding: 0;
  background-image: url('../images/background-03.png');
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  overflow: hidden;
  border-top: 1px solid rgba(155, 184, 201, 0.18);
}

.footer::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(7, 10, 14, 0.88) 0%, rgba(5, 8, 12, 0.94) 100%),
    radial-gradient(ellipse at 20% 0%, rgba(155, 184, 201, 0.12), transparent 55%);
}

.footer__inner {
  position: relative;
  z-index: 1;
  max-width: 1180px;
  margin: 0 auto;
  padding: 56px 28px 28px;
  display: flex;
  flex-direction: column;
  gap: 28px;
  text-align: left;
}

.footer__top {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr;
  gap: 36px;
  align-items: end;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer__brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}

.footer__logo img {
  height: 48px;
  width: auto;
  object-fit: contain;
  margin: 0;
  filter: drop-shadow(0 0 14px rgba(155, 184, 201, 0.28));
}

.footer__slogan {
  font-size: 13px;
  color: var(--gold-light);
  letter-spacing: 0.1em;
  font-weight: 600;
}

.footer__desc {
  font-size: 13px;
  color: rgba(170, 180, 190, 0.72);
  max-width: 420px;
  line-height: 1.75;
}

.footer__aside {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 18px;
}

.footer__cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 22px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: #0a1016;
  border-radius: 10px;
  background: linear-gradient(135deg, #e8f2f7 0%, var(--gold-light) 50%, var(--gold) 100%);
  box-shadow: 0 8px 22px rgba(155, 184, 201, 0.25);
  transition: transform var(--transition), box-shadow var(--transition), filter var(--transition);
}

.footer__cta i {
  font-style: normal;
  transition: transform 0.25s ease;
}

.footer__cta:hover {
  transform: translateY(-2px);
  filter: brightness(1.04);
  box-shadow: 0 12px 28px rgba(155, 184, 201, 0.35);
}

.footer__cta:hover i {
  transform: translateX(3px);
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 16px;
}

.footer__links a {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: rgba(180, 190, 200, 0.7);
  transition: color var(--transition);
}

.footer__links a:hover {
  color: var(--gold-light);
}

.footer__badges {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.footer__badge {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(155, 184, 201, 0.16);
  border-radius: 12px;
  transition: border-color var(--transition), background var(--transition), transform var(--transition);
}

.footer__badge strong {
  font-size: 18px;
  font-weight: 800;
  color: var(--gold-light);
  letter-spacing: 0.04em;
}

.footer__badge span {
  font-size: 12px;
  font-weight: 500;
  color: rgba(170, 180, 190, 0.75);
  letter-spacing: 0.04em;
}

.footer__badge:hover {
  background: rgba(155, 184, 201, 0.08);
  border-color: rgba(155, 184, 201, 0.4);
  transform: translateY(-2px);
}

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 6px;
}

.footer__copy {
  font-size: 12px;
  color: rgba(130, 140, 150, 0.75);
  letter-spacing: 0.04em;
}

.footer__note {
  font-size: 11px;
  font-weight: 600;
  color: rgba(155, 184, 201, 0.55);
  letter-spacing: 0.08em;
  padding: 5px 10px;
  border: 1px solid rgba(155, 184, 201, 0.2);
  border-radius: 999px;
}

@media (max-width: 768px) {
  .footer__inner {
    padding: 44px 18px 24px;
  }

  .footer__top {
    grid-template-columns: 1fr;
    gap: 24px;
    align-items: start;
  }

  .footer__aside {
    align-items: flex-start;
  }

  .footer__links {
    justify-content: flex-start;
  }

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

  .footer__bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* =============================================
   SCROLL TOP 버튼
============================================= */
.scroll-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 44px;
  height: 44px;
  background: rgba(155, 184, 201, 0.15);
  border: 1px solid rgba(155, 184, 201, 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(155, 184, 201, 0.3);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(155, 184, 201, 0.2);
}

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

  .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, 9, 14, 0.98);
    border-bottom: 1px solid rgba(155, 184, 201, 0.2);
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.35s ease;
    justify-self: stretch;
  }

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

  .header__nav-list {
    flex-direction: column;
    gap: 0;
    align-items: stretch;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 0;
  }

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

  .header__nav-link.active {
    color: var(--gold-light);
    background: rgba(155, 184, 201, 0.1);
    box-shadow: none;
  }

  .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(2, 1fr);
    gap: 10px;
  }

  .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;
  }

  .about-hero {
    padding: 48px 0 72px;
  }

  .about-hero__inner {
    padding: 0 18px;
  }

  .about-hero__title {
    margin-bottom: 28px;
  }

  .about-hero__lead {
    gap: 16px;
    margin-bottom: 40px;
  }

  .about-hero__lead p,
  .about-hero__block p {
    font-size: 15px;
    line-height: 1.8;
  }

  .about-hero__block {
    padding: 28px 0;
  }

  .about-hero__block-title {
    font-size: 18px;
    margin-bottom: 12px;
  }
}

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

  .game-card {
    aspect-ratio: 1 / 1;
  }

  .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;
  }

  .about-hero {
    padding: 40px 0 56px;
  }

  .about-hero__inner {
    padding: 0 16px;
  }

  .about-hero__lead p,
  .about-hero__block p {
    font-size: 14px;
  }

  .about-hero__block-title {
    font-size: 17px;
  }

  .about-hero__num {
    min-width: 24px;
    height: 24px;
    font-size: 12px;
  }
}

/* =============================================
   애니메이션 - 페이드인
============================================= */
@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; }

/* =============================================
   이벤트 페이지 (/event)
============================================= */
.event-page {
  padding: calc(var(--header-h) + 36px) 0 80px;
}

.event-page__inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.event-page__header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 36px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.event-page__tag {
  height: 24px;
  width: auto;
  display: block;
}

.event-page__title {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.event-row {
  margin-bottom: 48px;
  padding: 28px 28px 32px;
  background: rgba(16, 14, 10, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 16px;
  animation: fadeInUp 0.45s ease both;
}

.event-row:nth-of-type(1) { animation-delay: 0.05s; }
.event-row:nth-of-type(2) { animation-delay: 0.1s; }
.event-row:nth-of-type(3) { animation-delay: 0.15s; }
.event-row:nth-of-type(4) { animation-delay: 0.2s; }
.event-row:nth-of-type(5) { animation-delay: 0.25s; }

.event-row__heading {
  display: block;
  width: 100%;
  font-size: 32px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
  line-height: 1.3;
  margin: 0 0 24px;
  padding: 0 0 16px;
  border-bottom: 1px solid rgba(155, 184, 201, 0.35);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}

.event-row__content {
  display: grid;
  grid-template-columns: minmax(0, 380px) minmax(0, 1fr);
  gap: 40px;
  align-items: center;
}

.event-row--reverse .event-row__content {
  grid-template-columns: minmax(0, 1fr) minmax(0, 380px);
}

.event-row--reverse .event-row__media {
  order: 2;
}

.event-row--reverse .event-row__body {
  order: 1;
}

.event-row__media {
  min-width: 0;
  max-width: 380px;
  width: 100%;
  justify-self: center;
}

.event-row__media img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  display: block;
}

.event-row__body {
  min-width: 0;
}

.event-row__subheading {
  font-size: 19px;
  font-weight: 800;
  color: var(--gold-light);
  margin: 22px 0 12px;
}

.event-row__subheading:first-of-type {
  margin-top: 0;
}

.event-row__list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.event-row__list li {
  position: relative;
  padding-left: 18px;
  font-size: 17px;
  line-height: 1.75;
  color: rgba(230, 230, 230, 0.96);
}

.event-row__list li::before {
  content: '*';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--gold);
  font-weight: 800;
}

/* 1, 2, 5번 — 이미지·폰트 확대 */
.event-row--lg .event-row__heading {
  font-size: 36px;
}

.event-row--lg .event-row__content {
  grid-template-columns: minmax(0, 460px) minmax(0, 1fr);
  gap: 44px;
}

.event-row--lg.event-row--reverse .event-row__content {
  grid-template-columns: minmax(0, 1fr) minmax(0, 460px);
}

.event-row--lg .event-row__media {
  max-width: 460px;
}

.event-row--lg .event-row__list li {
  font-size: 19px;
  line-height: 1.8;
}

.event-row--lg .event-row__list {
  gap: 14px;
}

@media (max-width: 900px) {
  .event-row {
    padding: 20px;
    margin-bottom: 28px;
  }

  .event-row__heading {
    font-size: 24px;
    margin-bottom: 16px;
    padding-bottom: 12px;
  }

  .event-row--lg .event-row__heading {
    font-size: 26px;
  }

  .event-row__content,
  .event-row--reverse .event-row__content {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .event-row__media {
    max-width: 320px;
  }

  .event-row--lg .event-row__media {
    max-width: 360px;
  }

  .event-row--reverse .event-row__media,
  .event-row--reverse .event-row__body {
    order: initial;
  }

  .event-row--reverse .event-row__media {
    order: -1;
  }

  .event-row__subheading {
    font-size: 17px;
  }

  .event-row__list li {
    font-size: 15px;
  }

  .event-row--lg .event-row__list li {
    font-size: 16px;
  }
}

@media (max-width: 600px) {
  .event-page {
    padding: calc(var(--header-h) + 20px) 0 60px;
  }

  .event-page__inner {
    padding: 0 14px;
  }

  .event-page__title {
    font-size: 18px;
  }

  .event-row {
    padding: 14px;
    border-radius: 12px;
  }
}
