/*
 * 메인 페이지 섹션 스타일.
 * wds-tokens.css 의 변수만 참조한다. 임의값을 쓰지 않는다.
 */

/*
 * 섹션 공통 — 각 섹션은 흰 카드다.
 * 페이지 배경(옅은 회색)과 대비되어 경계가 보인다.
 */
.gcp-section {
  background: var(--gcp-bg);
  border-radius: var(--gcp-radius-card);
  padding: var(--gcp-s6) var(--gcp-s6) var(--gcp-s8);
  margin-bottom: var(--gcp-s6);
}
/* 카드 경계가 이미 섹션을 나누므로 제목에 밑줄을 더하지 않는다 */
.gcp-section__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--gcp-s4);
  margin-bottom: var(--gcp-s5);
}
.gcp-section__title {
  margin: 0;
  font-size: var(--gcp-title1-size);
  line-height: var(--gcp-title1-lh);
}
.gcp-section__more {
  font-size: var(--gcp-body1-size);
  color: var(--gcp-label-neutral);
  white-space: nowrap;
}

/*
 * D-day 배지 — 쿠폰 카드와 히어로가 함께 쓴다.
 *
 * 평상시 색으로 --gcp-fill(#F4F4F5) 을 쓰지 않는다. 이 배지가 앉는 자리가
 * 티켓 카드(--gcp-bg-alt, #F7F7F8)이고 페이지 배경도 같은 색이라, 두 값의
 * 차이가 255 중 3 이다 — 대비 1.02:1 로 칩이 통째로 사라진다. '상시' 와
 * 'D-34' 가 맨 글자처럼 보이던 것이 이것이었다.
 *
 * --gcp-border(#E1E2E4) 로 올린다. 티켓 위에서도 흰 섹션 위에서도 보이고,
 * 어두운 히어로 위에서는 여전히 밝은 칩이다.
 */
.gcp-dday {
  display: inline-block;
  padding: var(--gcp-s1) var(--gcp-s3);
  border-radius: var(--gcp-radius-pill);
  font-size: var(--gcp-label1-size);
  line-height: var(--gcp-label1-lh);
  font-weight: 600;
  background: var(--gcp-border);
  color: var(--gcp-label-neutral);
}
.gcp-dday--danger { background: var(--gcp-negative); color: var(--gcp-bg); }
.gcp-dday--warn   { background: var(--gcp-cautionary); color: var(--gcp-bg); }
.gcp-dday--normal { background: var(--gcp-border); color: var(--gcp-label-neutral); }

/* 퀵 카테고리 */
.gcp-quicknav {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--gcp-s2);
  margin-bottom: var(--gcp-s8);
}
/* 페이지 배경이 옅은 회색이라 흰 카드로 띄운다 */
.gcp-quicknav__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--gcp-s1);
  padding: var(--gcp-s4) var(--gcp-s2);
  background: var(--gcp-bg);
  border-radius: var(--gcp-radius-card);
  color: var(--gcp-label-normal);
  text-align: center;
  transition: transform .18s ease, filter .18s ease;
}
.gcp-quicknav__item:hover {
  color: var(--gcp-label-strong);
  text-decoration: none;
  transform: translateY(-3px);
  filter: drop-shadow(0 6px 14px rgba(8, 10, 14, .12));
}

@media (prefers-reduced-motion: reduce) {
  .gcp-quicknav__item { transition: none; }
  .gcp-quicknav__item:hover { transform: none; }
}
/*
 * 아이콘은 파란색, 라벨은 검정이다.
 * 둘 다 검정으로 두면 한 덩어리로 읽히고,
 * 원형 바탕을 깔면 카드 안에 카드가 생겨 층이 과해진다.
 * 색으로만 나누는 편이 깔끔하다.
 */
.gcp-quicknav__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gcp-primary);
  transition: color .18s ease;
}
.gcp-quicknav__item:hover .gcp-quicknav__icon { color: var(--gcp-primary-strong); }
.gcp-icon { display: block; }
.gcp-quicknav__label {
  font-size: var(--gcp-text-size);
  line-height: var(--gcp-text-lh);
  font-weight: 700;
  color: var(--gcp-label-strong);
}

/* 탭 */
.gcp-tab__nav {
  display: flex;
  gap: var(--gcp-s2);
  margin-bottom: var(--gcp-s4);
}
.gcp-tab__btn {
  padding: var(--gcp-s2) var(--gcp-s4);
  border: 0;
  border-radius: var(--gcp-radius-pill);
  background: var(--gcp-fill);
  color: var(--gcp-label-neutral);
  font-family: var(--gcp-font);
  font-size: var(--gcp-body1-size);
  font-weight: 600;
  cursor: pointer;
}
.gcp-tab__btn.is-active {
  background: var(--gcp-label-normal);
  color: var(--gcp-bg);
}
.gcp-tab__panel { display: none; }
.gcp-tab__panel.is-active { display: block; }

.gcp-grid { display: grid; gap: var(--gcp-s4); }
.gcp-grid--4 { grid-template-columns: repeat(4, 1fr); }
.gcp-grid--3 { grid-template-columns: repeat(3, 1fr); }

.gcp-card {
  border: 1px solid var(--gcp-border);
  border-radius: var(--gcp-radius-card);
  background: var(--gcp-bg);
  overflow: hidden;
  transition: transform .18s ease, filter .18s ease;
}
.gcp-card__link {
  display: block;
  padding: var(--gcp-s4);
  color: var(--gcp-label-normal);
}
.gcp-card__link:hover { color: var(--gcp-label-normal); text-decoration: none; }

/*
 * hover 는 색이 아니라 움직임으로 알린다.
 * 티켓 노치는 카드 바깥에 그려진 별도의 원이라 테두리 색 변경이 닿지 않는다.
 * 카드 전체를 띄우면 노치까지 함께 움직여 어긋나 보이지 않는다.
 */
/*
 * 그림자는 box-shadow 가 아니라 drop-shadow 로 준다.
 * box-shadow 는 요소의 사각형 박스를 따르므로 mask 로 파낸 노치를 무시하고
 * 그 자리에 그림자를 깔아 원이 도드라져 보인다.
 * drop-shadow 는 알파 채널을 따라가 노치 모양 그대로 그림자가 진다.
 */
.gcp-card:hover {
  transform: translateY(-4px) scale(1.02);
  filter: drop-shadow(0 8px 18px rgba(8, 10, 14, .16));
  z-index: 2;
}

@media (prefers-reduced-motion: reduce) {
  .gcp-card { transition: none; }
  .gcp-card:hover { transform: none; }
}

.gcp-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--gcp-s2);
  margin-bottom: var(--gcp-s3);
}
.gcp-card__count {
  font-size: var(--gcp-label1-size);
  color: var(--gcp-label-neutral);
  white-space: nowrap;
}
/*
 * 티켓 모양 쿠폰 카드.
 * 좌측 스텁(로고) · 점선 절취선 · 우측 본체 구조이며
 * 절취선 위아래의 반원 노치는 배경 원으로 파낸다.
 */
/*
 * 절취선 노치는 카드 위에 원을 얹는 대신 카드에서 파낸다.
 *
 * 얹는 방식은 그림자가 생기는 순간 원의 윤곽이 드러난다.
 * 원이 카드와 별개 요소라 그림자 위에 떠 보이기 때문이다.
 * mask 로 파내면 카드 자체가 그 모양이 되고,
 * drop-shadow 는 알파 채널을 따르므로 그림자도 노치를 따라간다.
 */
.gcp-ticket {
  position: relative;
  overflow: hidden;
  /*
   * 티켓은 옅은 회색, 섹션 카드는 흰색이다.
   * mask 로 파낸 노치는 뒤 배경이 비치므로 둘이 같은 색이면 노치가 안 보인다.
   */
  background: var(--gcp-bg-alt);
  border-color: var(--gcp-border-soft);

  /* 로고 56 + 좌우 패딩(12×2) = 80. 절취선과 노치가 이 값에서 나온다 */
  --gcp-stub-w: 80px;
  --gcp-notch-r: 8px;

  -webkit-mask-image:
    radial-gradient(circle var(--gcp-notch-r) at var(--gcp-stub-w) 0,
      transparent calc(var(--gcp-notch-r) - 0.5px), #000 var(--gcp-notch-r)),
    radial-gradient(circle var(--gcp-notch-r) at var(--gcp-stub-w) 100%,
      transparent calc(var(--gcp-notch-r) - 0.5px), #000 var(--gcp-notch-r));
  -webkit-mask-composite: source-in;
  mask-image:
    radial-gradient(circle var(--gcp-notch-r) at var(--gcp-stub-w) 0,
      transparent calc(var(--gcp-notch-r) - 0.5px), #000 var(--gcp-notch-r)),
    radial-gradient(circle var(--gcp-notch-r) at var(--gcp-stub-w) 100%,
      transparent calc(var(--gcp-notch-r) - 0.5px), #000 var(--gcp-notch-r));
  mask-composite: intersect;
}
.gcp-ticket__link {
  display: flex;
  align-items: stretch;
  color: var(--gcp-label-normal);
}
.gcp-ticket__link:hover { color: var(--gcp-label-normal); text-decoration: none; }

.gcp-ticket__stub {
  flex-shrink: 0;
  width: var(--gcp-stub-w);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--gcp-s4) var(--gcp-s3);
  border-right: 2px dashed var(--gcp-border);
}
.gcp-ticket__logo {
  width: 56px;
  height: 56px;
  border-radius: var(--gcp-radius-btn-s);
  object-fit: cover;
  display: block;
  background: var(--gcp-fill);
}
.gcp-ticket__logo--empty { display: block; }

/* 노치는 위 mask 가 그린다. 별도 요소를 얹지 않는다. */

.gcp-ticket__body {
  flex: 1;
  min-width: 0;
  padding: var(--gcp-s4);
}
.gcp-ticket__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--gcp-s2);
  margin-bottom: var(--gcp-s2);
}

.gcp-card__title {
  margin: 0;
  font-size: var(--gcp-headline1-size);
  line-height: var(--gcp-headline1-lh);
  font-weight: 700;
  min-width: 0;
  overflow-wrap: anywhere;
}
/* 보상은 무조건 한 줄. 넘치면 말줄임하고 나머지는 칩이 대신 알린다 */
.gcp-card__reward {
  margin: var(--gcp-s2) 0 0;
  display: flex;
  align-items: center;
  gap: var(--gcp-s2);
  font-size: var(--gcp-label1-size);
  line-height: var(--gcp-label1-lh);
  color: var(--gcp-label-neutral);
  min-width: 0;
}
.gcp-card__reward-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}
/*
 * '외 6건' 칩. D-day 배지와 같은 이유로 --gcp-fill 을 쓰지 않는다 —
 * 이 칩도 티켓 카드 위에 앉는다.
 */
.gcp-chip {
  flex-shrink: 0;
  padding: 0 var(--gcp-s2);
  border-radius: var(--gcp-radius-pill);
  background: var(--gcp-border);
  color: var(--gcp-label-neutral);
  font-size: var(--gcp-caption1-size);
  line-height: calc(var(--gcp-label1-lh) - 2px);
  font-weight: 600;
  white-space: nowrap;
}

/* 게임 순위 */
.gcp-rank { list-style: none; margin: 0; padding: 0; }
.gcp-rank__item + .gcp-rank__item { border-top: 1px solid var(--gcp-border); }
.gcp-rank__link {
  display: flex;
  align-items: center;
  gap: var(--gcp-s4);
  padding: var(--gcp-s3) var(--gcp-s2);
  color: var(--gcp-label-normal);
}
a.gcp-rank__link:hover {
  color: var(--gcp-label-normal);
  text-decoration: none;
  background: var(--gcp-bg-alt);
  border-radius: var(--gcp-radius-btn-s);
}
/* 순위 숫자도 링크가 아니므로 검정 계열로 둔다 */
.gcp-rank__no {
  flex-shrink: 0;
  width: 32px;
  font-size: var(--gcp-text-size);
  font-weight: 800;
  color: var(--gcp-label-strong);
  font-variant-numeric: tabular-nums;
}
.gcp-rank__icon {
  width: 40px;
  height: 40px;
  border-radius: var(--gcp-radius-btn-s);
  object-fit: cover;
  flex-shrink: 0;
  background: var(--gcp-fill);
}
.gcp-rank__name {
  flex: 1;
  min-width: 0;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.gcp-delta {
  flex-shrink: 0;
  min-width: 44px;
  text-align: right;
  font-size: var(--gcp-label1-size);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.gcp-delta--up { color: var(--gcp-positive); }
.gcp-delta--down { color: var(--gcp-negative); }
.gcp-delta--flat { color: var(--gcp-label-neutral); }
.gcp-delta--new { color: var(--gcp-primary); }

/*
 * 신작 · 사전예약 — 가로형 목록.
 * 스토어 배너가 가로로 긴 비율이라 세로 카드에 넣으면 여백만 남는다.
 * 배너를 왼쪽에 크게 두고 오른쪽에 게임명·장르·개발사를 넣는다.
 */
.gcp-newgames { list-style: none; margin: 0; padding: 0; }
/* 배너가 커서 12px 로는 항목이 붙어 보인다. hover 로 3px 떠오르는 것도 감안한다 */
.gcp-newgame + .gcp-newgame { margin-top: var(--gcp-s6); }

/*
 * 줄 전체는 링크가 아니다. 스토어가 여러 곳이 될 수 있어
 * 링크 안에 링크를 넣을 수 없기 때문이다.
 * 줄에는 움직임만 주고, 클릭은 스토어 버튼이 받는다.
 */
/*
 * align-items 는 center 여야 한다.
 * stretch 로 두면 배너가 텍스트 높이만큼 늘어나고 object-fit: cover 가
 * 좌우를 잘라낸다. 텍스트가 길수록 더 잘려서 배너가 정사각형처럼 보인다.
 */
.gcp-newgame {
  display: flex;
  align-items: center;
  gap: var(--gcp-s5);
  /* 배너가 카드 가장자리에 붙지 않게 사방으로 여백을 준다 */
  padding: var(--gcp-s4);
  border: 1px solid var(--gcp-border);
  border-radius: var(--gcp-radius-card);
  overflow: hidden;
  transition: transform .18s ease, filter .18s ease;
}
.gcp-newgame:hover {
  transform: translateY(-3px);
  filter: drop-shadow(0 8px 18px rgba(8, 10, 14, .14));
}
/* 실측한 배너는 1280x720 · 1620x900 · 1920x1080 로 모두 16:9 다 */
.gcp-newgame__art {
  width: 280px;
  height: 158px;
  flex-shrink: 0;
  align-self: center;
  object-fit: cover;
  display: block;
  border-radius: var(--gcp-radius-btn-s);
  background: var(--gcp-fill);
  /* 배너를 끌어도 이미지 드래그가 시작되지 않게 한다 */
  pointer-events: none;
}
/*
 * 그림은 무엇이 오든 280×158 틀을 지킨다.
 *
 * 폭을 달리해 봤더니(세로 140px, 아이콘 120px) 줄마다 본문 시작선이
 * 어긋나 목록이 흐트러졌다. 틀을 고정하고 채우는 방식만 바꾼다.
 *
 * 세로 스크린샷은 9:16 이라 틀에 온전히 넣으면 폭이 89px 로 쪼그라든다.
 * 잘라서 채운다. 위쪽 40% 지점을 기준으로 두는데, 게임 스크린샷은
 * 대개 화면 중앙~상단에 캐릭터와 전투 장면이 있고 아래쪽은 UI 버튼과
 * 홍보 문구다.
 */
.gcp-newgame__art--portrait {
  object-position: center 40%;
}
/* 배너도 스크린샷도 없어 아이콘으로 대체한 경우 — 자르지 않고 가운데 둔다 */
.gcp-newgame__art--icon {
  object-fit: contain;
  padding: var(--gcp-s5);
}
/* 그림을 하나도 못 구한 경우 — 자리만 지킨다 */
.gcp-newgame__art--empty {
  background: var(--gcp-fill);
}
.gcp-newgame__body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.gcp-newgame__title {
  margin: 0;
  font-size: var(--gcp-title3-size);
  line-height: var(--gcp-title3-lh);
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
/*
 * 무엇 때문에 목록에 올랐는지 알려주는 문구.
 * 파란색은 링크로 오해되므로 검정 계열을 쓴다.
 * 게임명과는 크기와 굵기로 구분한다.
 */
.gcp-newgame__headline {
  margin: var(--gcp-s2) 0 0;
  font-size: var(--gcp-body1-size);
  line-height: var(--gcp-body1-lh);
  color: var(--gcp-label-normal);
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.gcp-newgame__meta {
  margin: var(--gcp-s1) 0 0;
  font-size: var(--gcp-label1-size);
  color: var(--gcp-label-neutral);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
/*
 * 스토어 버튼. 줄에 마우스를 올렸다고 버튼이 활성화되면 안 된다.
 * 클릭 대상이 아닌데 눌리는 것처럼 보이기 때문이다.
 * 색이 바뀌는 건 버튼 자체에 올렸을 때뿐이다.
 */
.gcp-newgame__stores {
  display: flex;
  flex-wrap: wrap;
  gap: var(--gcp-s2);
  margin-top: var(--gcp-s4);
}
.gcp-storebtn {
  display: inline-flex;
  align-items: center;
  gap: var(--gcp-s2);
  padding: var(--gcp-s2) var(--gcp-s4) var(--gcp-s2) var(--gcp-s3);
  border: 1px solid var(--gcp-border);
  border-radius: var(--gcp-radius-btn);
  background: var(--gcp-bg);
  color: var(--gcp-label-normal);
  font-size: var(--gcp-body1-size);
  font-weight: 700;
}
.gcp-storebtn:hover {
  background: var(--gcp-label-normal);
  border-color: var(--gcp-label-normal);
  color: var(--gcp-bg);
  text-decoration: none;
}
.gcp-storeicon { display: block; flex-shrink: 0; width: 24px; height: 24px; }

@media (prefers-reduced-motion: reduce) {
  .gcp-newgame { transition: none; }
  .gcp-newgame:hover { transform: none; }
}

/* 오늘의 업데이트 */
.gcp-update { list-style: none; margin: 0; padding: 0; }
.gcp-update__item + .gcp-update__item { border-top: 1px solid var(--gcp-border); }
/*
 * 아이콘과 텍스트는 위쪽 기준으로 맞춘다.
 * center 로 두면 제목+요약 높이가 아이콘(64px)과 비슷해 제목이
 * 아이콘보다 살짝 위로 올라가 어긋나 보인다.
 */
.gcp-update__link {
  display: flex;
  align-items: flex-start;
  gap: var(--gcp-s4);
  padding: var(--gcp-s4) var(--gcp-s2);
  color: var(--gcp-label-normal);
}
/* 한 줄 높이(제목 + 요약)에 맞춰 아이콘을 키운다 */
.gcp-update__logo {
  width: 64px;
  height: 64px;
  border-radius: var(--gcp-s3);
  object-fit: cover;
  flex-shrink: 0;
  background: var(--gcp-fill);
  display: block;
  pointer-events: none;
}
/* 제목 첫 줄이 아이콘 상단과 눈높이가 맞도록 살짝 내린다 */
.gcp-update__body { flex: 1; min-width: 0; padding-top: var(--gcp-s1); }
a.gcp-update__link:hover {
  color: var(--gcp-label-normal);
  text-decoration: none;
  background: var(--gcp-bg-alt);
  border-radius: var(--gcp-radius-btn-s);
}
/* 제목과 요약이 아이콘(64px) 높이 안에 들어오도록 행간을 조인다 */
.gcp-update__head {
  display: flex;
  align-items: baseline;
  gap: var(--gcp-s3);
  flex-wrap: wrap;
  line-height: var(--gcp-headline1-lh);
}
.gcp-update__name { font-weight: 700; }
.gcp-update__ver {
  padding: 0 var(--gcp-s2);
  border-radius: var(--gcp-radius-pill);
  background: var(--gcp-fill);
  color: var(--gcp-label-neutral);
  font-size: var(--gcp-caption1-size);
  font-weight: 600;
}
.gcp-update__date {
  margin-left: auto;
  font-size: var(--gcp-label1-size);
  color: var(--gcp-label-neutral);
}
.gcp-update__desc {
  margin: var(--gcp-s1) 0 0;
  font-size: var(--gcp-body1-size);
  line-height: var(--gcp-body1-lh);
  color: var(--gcp-label-neutral);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* 리뷰 카드 */
.gcp-card--review .gcp-card__link { padding: 0; }
.gcp-card__cover {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  background: var(--gcp-fill);
}
.gcp-card--review .gcp-card__title {
  padding: var(--gcp-s4);
  font-size: var(--gcp-body1-size);
  line-height: var(--gcp-body1-lh);
}
.gcp-card__title--clip {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 히어로 슬라이더 */
.gcp-hero {
  position: relative;
  border-radius: var(--gcp-radius-card);
  background: linear-gradient(100deg, var(--gcp-primary), var(--gcp-primary-heavy));
  color: var(--gcp-bg);
  overflow: hidden;
  margin-bottom: var(--gcp-s8);
}
/*
 * 슬라이드를 옆으로 늘어놓고 이 레일을 통째로 민다.
 *
 * 전에는 한 장만 display:block 으로 두고 나머지를 감췄다. 그 방식으로는
 * 손가락을 따라 움직일 수가 없다 — 끄는 도중에는 두 장이 동시에 보여야
 * 하기 때문이다.
 *
 * JS 가 꺼져 있어도 첫 장은 보인다. 레일이 다섯 배 폭으로 뻗지만 .gcp-hero
 * 가 overflow: hidden 이라 첫 칸만 창에 남는다.
 *
 * touch-action: pan-y 는 "세로 스크롤은 브라우저가, 가로는 우리가" 라는
 * 선언이다. 이것이 없으면 슬라이드 위에서 세로로 훑을 때 페이지가 안 내려
 * 가거나, 반대로 가로 제스처를 브라우저가 먼저 가져간다.
 */
.gcp-hero__track {
  position: relative;
  display: flex;
  transition: transform .32s ease;
  touch-action: pan-y;
}
/* 끄는 동안에는 손가락이 곧 위치다. 전환을 켜 두면 한 박자 늦게 따라온다 */
.gcp-hero__track.is-dragging { transition: none; }

.gcp-hero__slide {
  flex: 0 0 100%;
  min-width: 0;
  position: relative;
  overflow: hidden;
}

/*
 * 게임 로고를 크게 흐리게 깔아 슬라이드마다 색감이 달라지게 한다.
 * 단색 그라데이션만 쓰면 게임이 바뀌어도 같은 화면으로 보인다.
 */
.gcp-hero__slide.has-art::before {
  content: '';
  position: absolute;
  inset: -25%;
  background-image: var(--gcp-hero-art);
  background-size: cover;
  background-position: center;
  filter: blur(56px) saturate(2.4) brightness(1.05);
  opacity: 1;
  z-index: 0;
}

/*
 * 오버레이는 중립 어두운색이어야 한다.
 * 파란색으로 덮으면 어떤 게임이든 같은 파란 화면이 되어
 * 슬라이드가 넘어가도 바뀐 티가 나지 않는다.
 * 색조는 게임 로고에서 나오게 두고, 여기서는 텍스트 대비만 확보한다.
 */
.gcp-hero__slide.has-art::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg,
    rgba(8, 10, 14, .86) 0%,
    rgba(8, 10, 14, .62) 42%,
    rgba(8, 10, 14, .18) 100%);
  z-index: 0;
}

.gcp-hero__link { display: block; color: var(--gcp-bg); }
.gcp-hero__link:hover { color: var(--gcp-bg); text-decoration: none; }

.gcp-hero__inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--gcp-s6);
  padding: var(--gcp-s10) var(--gcp-s8) var(--gcp-s12);
}
.gcp-hero__body { min-width: 0; }

.gcp-hero__eyebrow {
  display: inline-block;
  padding: var(--gcp-s1) var(--gcp-s3);
  border-radius: var(--gcp-radius-pill);
  background: rgba(255, 255, 255, .18);
  font-size: var(--gcp-label1-size);
  line-height: var(--gcp-label1-lh);
  font-weight: 600;
  margin-bottom: var(--gcp-s3);
}
.gcp-hero__logo {
  width: 160px;
  height: 160px;
  border-radius: var(--gcp-s6);
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 12px 32px rgba(0, 0, 0, .28);
}
.gcp-hero__title {
  margin: 0;
  color: var(--gcp-bg);
  font-size: var(--gcp-display1-size);
  line-height: var(--gcp-display1-lh);
  font-weight: 800;
  letter-spacing: -0.02em;
  min-width: 0;
  overflow-wrap: anywhere;
  text-shadow: 0 2px 12px rgba(0, 0, 0, .22);
}
.gcp-hero__meta {
  margin: var(--gcp-s4) 0 0;
  display: flex;
  align-items: center;
  gap: var(--gcp-s3);
  flex-wrap: wrap;
  font-size: var(--gcp-headline1-size);
  line-height: var(--gcp-headline1-lh);
  font-weight: 600;
}
.gcp-hero__count, .gcp-hero__reward { opacity: .95; }

/*
 * 쿠폰 받기 — 누르는 곳이 아니라 표시다. 슬라이드 전체가 링크이고
 * (gcp-hero__link) 이것은 그 안의 span 이라, 손가락 크기를 지키느라
 * 키울 이유가 없다.
 *
 * **line-height 를 반드시 준다.** 없으면 body 의 32px 를 물려받아
 * 글자 크기를 아무리 줄여도 버튼이 56px 로 선다. 실제로 그 상태였다 —
 * 좁은 화면에서 글자만 16px 로 줄였는데 높이가 48px 그대로였다.
 */
.gcp-hero__cta {
  display: inline-block;
  margin-top: var(--gcp-s4);
  padding: var(--gcp-s2) var(--gcp-s5);
  border-radius: var(--gcp-radius-btn);
  background: var(--gcp-bg);
  color: var(--gcp-label-strong);
  font-size: var(--gcp-headline1-size);
  line-height: var(--gcp-body1-lh);
  font-weight: 700;
}
.gcp-hero__slide:hover .gcp-hero__cta { background: var(--gcp-fill); }

/* 어두운 오버레이 위에서 흰 텍스트 대비를 확실히 확보한다 */
.gcp-hero__eyebrow { background: rgba(255, 255, 255, .22); }
.gcp-hero__title { text-shadow: 0 2px 16px rgba(0, 0, 0, .45); }
.gcp-hero__meta { text-shadow: 0 1px 8px rgba(0, 0, 0, .4); }

.gcp-hero__nav {
  position: absolute;
  left: var(--gcp-s8);
  bottom: var(--gcp-s6);
  z-index: 2;
  display: flex;
  gap: var(--gcp-s2);
}
.gcp-hero__dot {
  width: var(--gcp-s2);
  height: var(--gcp-s2);
  padding: 0;
  border: 0;
  border-radius: var(--gcp-radius-pill);
  background: var(--gcp-bg);
  opacity: .45;
  cursor: pointer;
}
.gcp-hero__dot.is-active { opacity: 1; }

/*
 * 좌우 컨트롤. 점 묶음과 마주 보게 오른쪽 아래에 둔다.
 *
 * 슬라이드 양옆 가운데에 얹는 흔한 배치를 쓰지 않았다. 이 히어로는 왼쪽에
 * 로고와 게임명이 있어 좁은 화면에서 왼쪽 화살표가 그 위에 올라앉는다.
 */
.gcp-hero__ctrl {
  position: absolute;
  right: var(--gcp-s8);
  bottom: var(--gcp-s6);
  z-index: 2;
  display: flex;
  gap: var(--gcp-s2);
}
.gcp-hero__arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: var(--gcp-radius-pill);
  /* 슬라이드 배경색이 게임마다 달라 고정색을 쓸 수 없다. 흰색을 옅게 깐다 */
  background: rgba(255, 255, 255, .18);
  color: var(--gcp-bg);
  cursor: pointer;
  transition: background .18s ease;
}
.gcp-hero__arrow:hover { background: rgba(255, 255, 255, .32); }
/*
 * 초점 테두리를 지우지 않는다. 이 버튼은 키보드로도 눌러야 하고, 배경이
 * 어두워 기본 테두리가 잘 안 보이므로 흰색으로 다시 그린다.
 */
.gcp-hero__arrow:focus-visible { outline: 2px solid var(--gcp-bg); outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
  /*
   * 미끄러지는 전환을 끈다. 자리는 그대로 바뀌므로 넘기는 기능은 살아
   * 있고, 움직임에 민감한 사람에게 화면이 흐르지 않는다.
   */
  .gcp-hero__track { transition: none; }
  .gcp-hero__arrow { transition: none; }
}

@media (max-width: 782px) {
  /*
   * 섹션 안쪽 여백을 줄인다. 24px 씩 두면 360px 화면에서 좌우로 48px 이
   * 나가는데, 컨테이너 패딩 32px 까지 더하면 화면의 22% 가 여백이다.
   * 카드가 좁아지는 만큼 글자가 갈 곳이 없어진다.
   */
  .gcp-section { padding: var(--gcp-s5) var(--gcp-s4) var(--gcp-s6); }

  /*
   * 로고를 칩·게임명 옆에 세운다.
   *
   * 전에는 세로로 쌓아 로고 96px 아래에 칩·이름·정보·버튼이 차례로 섰다.
   * 로고가 가로 폭을 다 쓰지도 않으면서 세로만 먹었다.
   *
   * body 에 display: contents 를 준다. 그러면 그 아래 세 덩어리(머리·정보·
   * 버튼)가 바깥 그리드의 칸을 직접 차지해, 로고와 머리는 나란히 두고
   * 정보와 버튼은 전체 폭을 쓰게 할 수 있다. 마크업을 한 겹 더 파지 않고
   * 배치만 바꾸는 길이 이것이다.
   *
   * body 는 뜻이 없는 div 라 접근성 트리에서 빠져도 잃는 것이 없다.
   */
  .gcp-hero__inner {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    column-gap: var(--gcp-s4);
    row-gap: var(--gcp-s3);
    /*
     * 아래 여백이 점(gcp-hero__nav)이 앉을 자리다. 점은 카드 바닥에서
     * 띄워 놓은 절대 위치라 이 여백이 곧 버튼과 점 사이 간격이 된다.
     *
     *   간격 = 아래 여백 − 점 위치 − 점 높이
     *
     * 40 − 24 − 8 = 8px 이라 버튼과 점이 붙어 보였다. 여백을 48 로 올리고
     * 점을 20 으로 내려 20px 을 만든다. 카드는 8px 만 커진다.
     */
    padding: var(--gcp-s6) var(--gcp-s4) var(--gcp-s12);
  }
  .gcp-hero__body { display: contents; }

  .gcp-hero__logo {
    grid-column: 1;
    grid-row: 1;
    width: 72px;
    height: 72px;
    border-radius: var(--gcp-s4);
  }
  .gcp-hero__head { grid-column: 2; grid-row: 1; min-width: 0; }
  /*
   * 로고가 없는 슬라이드는 머리가 두 칸을 다 쓴다. 안 그러면 왼쪽에
   * 빈 16px 이 남아 글이 이유 없이 들여쓰기된다. has-art 는 로고가 있을
   * 때만 붙는다(hero-slider.php).
   */
  .gcp-hero__slide:not(.has-art) .gcp-hero__head { grid-column: 1 / -1; }

  .gcp-hero__meta { grid-column: 1 / -1; grid-row: 2; margin-top: 0; }
  .gcp-hero__cta  { grid-column: 1 / -1; grid-row: 3; justify-self: start; }

  /*
   * 이름은 로고 옆 208px 안에 들어가야 한다(360px 화면 기준: 안쪽 폭 296
   * − 로고 72 − 간격 16). 32px 글자로는 여섯 자에서 끊기므로 28px 로
   * 내린다 — 일곱 자가 한 줄에 선다.
   *
   * 두 줄까지만 보여준다. 이름 길이가 제각각이라 그대로 두면 슬라이드마다
   * 키가 달라져 넘길 때 아래 내용이 들썩인다.
   */
  .gcp-hero__title {
    font-size: var(--gcp-title2-size);
    line-height: var(--gcp-title2-lh);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .gcp-hero__meta { font-size: var(--gcp-body1-size); line-height: var(--gcp-body1-lh); }
  /*
   * 버튼을 낮춘다. 좁은 화면에서는 버튼보다 게임 이름과 쿠폰 개수가 먼저
   * 읽혀야 한다. 8 + 20 + 8 = 36px 이다(전 48px).
   *
   * margin-top 은 0 이다. 그리드의 row-gap 이 간격을 맡는다 — 둘 다 주면
   * 버튼 위만 두 배로 벌어진다.
   */
  .gcp-hero__cta {
    margin-top: 0;
    padding: var(--gcp-s2) var(--gcp-s4);
    font-size: var(--gcp-body1-size);
    line-height: var(--gcp-label1-lh);
  }
  .gcp-section__title { font-size: var(--gcp-title3-size); line-height: var(--gcp-title3-lh); }
  .gcp-hero__nav { left: var(--gcp-s4); bottom: var(--gcp-s5); }
  /* 점과 같은 높이에 마주 보게 둔다 */
  .gcp-hero__ctrl { right: var(--gcp-s4); bottom: var(--gcp-s4); }
  .gcp-hero__arrow { width: 32px; height: 32px; }

  /* 데스크톱 4열 → 모바일 2열 */
  .gcp-grid--4 { grid-template-columns: repeat(2, 1fr); }

  /*
   * 리뷰 카드는 한 줄에 하나, 가로 배치로 둔다.
   *
   * 2열로 두면 제목에 한 줄 여덟 자쯤이 남아 '킹샷 교환코드 모음 & 기프트
   * 코드 입력 방법 (2026년 7월)' 같은 제목이 어디서 끊겼는지도 알기
   * 어려웠다. 리뷰·공략 제목은 길다 — 그것이 이 글들의 성격이다.
   *
   * 세로 카드를 그대로 한 줄에 하나로 두면 16:9 표지가 화면 폭을 다 먹어
   * 여섯 장에 1100px 이 넘는다. 그림을 왼쪽에 작게 놓고 제목을 옆에 둔다.
   * 보관함 목록(archive.php)과 같은 모양이라 사이트 안에서 일관된다.
   *
   * 360px 화면에서 제목에 158px 이 남는다 — 16px 글자로 아홉 자, 세 줄이면
   * 스물일곱 자쯤이라 대부분의 제목이 다 들어간다.
   */
  .gcp-grid--3 { grid-template-columns: 1fr; }
  .gcp-card--review .gcp-card__link {
    display: flex;
    align-items: center;
    gap: var(--gcp-s4);
    padding: var(--gcp-s3);
  }
  .gcp-card--review .gcp-card__cover {
    width: 96px;
    flex-shrink: 0;
    border-radius: var(--gcp-radius-btn-s);
  }
  .gcp-card--review .gcp-card__title {
    padding: 0;
    /* flex 자식은 기본값이 auto 라 내용만큼 벌어져 그림을 밀어낸다 */
    min-width: 0;
  }
  .gcp-card--review .gcp-card__title--clip { -webkit-line-clamp: 3; }

  /*
   * 퀵 카테고리 다섯 개를 한 화면에 세운다.
   *
   * 전에는 최소 72px 로 잡고 가로 스크롤을 뒀는데, 5×72 에 간격 8×4 를
   * 더하면 392px 라 360px 화면에서 다섯 번째가 잘린 채 섰다. 스크롤이
   * 있다는 표시가 없어 잘린 것이 고장으로 읽힌다. 다섯 개뿐이니 다 보이는
   * 편이 낫다.
   *
   * 간격과 좌우 여백을 줄여 글자 자리를 만든다. 360px 화면에서 한 칸이
   * 62px, 글자에 54px 이 남아 12px 글자로 네 자가 들어간다 —
   * '게임순위' 와 '업데이트' 가 한 줄에 선다.
   */
  .gcp-quicknav {
    grid-template-columns: repeat(5, 1fr);
    gap: var(--gcp-s1);
  }
  .gcp-quicknav__item { padding: var(--gcp-s3) var(--gcp-s1); }
  .gcp-quicknav__label {
    font-size: var(--gcp-caption1-size);
    line-height: var(--gcp-caption1-lh);
    /*
     * 한국어는 낱말 안에서 끊지 않는다. keep-all 이 없으면 '주목할 게임'
     * 이 '주목할 게 / 임' 처럼 갈린다.
     */
    word-break: keep-all;
    /*
     * 두 줄 자리를 미리 잡는다. 다섯 중 '주목할 게임' 만 두 줄이라
     * 그대로 두면 그 칸만 키가 커져 아이콘 줄이 어긋난다.
     */
    min-height: calc(var(--gcp-caption1-lh) * 2);
  }

  .gcp-card__logo { width: 32px; height: 32px; }
  .gcp-update__logo { width: 48px; height: 48px; }
  .gcp-icon { width: 36px; height: 36px; }

  /* 좁은 화면에서는 배너를 위, 정보를 아래로 */
  .gcp-newgame { flex-direction: column; align-items: stretch; gap: var(--gcp-s4); }
  /* 좁은 화면에서도 그림 틀은 하나로 유지한다 */
  .gcp-newgame__art { width: 100%; height: auto; aspect-ratio: 16 / 9; }
  .gcp-newgame__art--icon { padding: var(--gcp-s6); }
  .gcp-newgame__title { font-size: var(--gcp-title3-size); line-height: var(--gcp-title3-lh); }
}

/*
 * 티켓 카드는 좁은 화면에서 그리드가 스스로 접는다.
 *
 * 이 카드만 가로 배치다 — 스텁(로고) 80px 이 고정이고 그 오른쪽이 본문이다.
 * 다른 카드처럼 2열로 두면 360px 화면에서 본문에 이만큼밖에 안 남는다.
 *
 *   컨테이너 328  (360 − 좌우 패딩 16×2)
 *   섹션     280  (328 − 섹션 패딩 24×2)
 *   카드     132  ((280 − 간격 16) / 2)
 *   본문      18  (132 − 테두리 2 − 스텁 80 − 패딩 16×2)
 *
 * 18px 글자로 한 자다. 실제로 게임명이 '탑/히/어/로/즈' 처럼 한 글자씩
 * 세로로 쌓였고 보상 줄에는 '신...' 만 남았다.
 *
 * 분기점을 손으로 잡지 않는다. 카드 최소 폭을 260px 로 정해 두면 그리드가
 * 몇 열이 들어가는지 스스로 센다 — 782px 화면에서 2열, 그보다 좁으면 1열이
 * 된다. 260 은 데스크톱 4열일 때의 카드 폭(276px)보다 작아, 넓은 화면의
 * 배치는 건드리지 않는다.
 *
 * 아래 섹션 패딩 축소와 함께 360px 화면에서 본문이 182px 가 된다.
 * 카드가 낮아져 네 장이 차지하는 세로 길이는 오히려 줄어든다.
 */
@media (max-width: 782px) {
  .gcp-grid--ticket { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }

  /*
   * 게임명은 두 줄까지. 이름 길이가 제각각이라 그대로 두면 카드 높이가
   * 줄마다 달라진다. 잘린 이름은 쿠폰 페이지에 전부 적혀 있다.
   */
  .gcp-ticket .gcp-card__title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
}
