/* 홈 전용. 틀은 deck.css에 있고, 여기는 게임 슬라이드, Follow 칸 내용, 카드 글자, 새 소식만 둔다 */

/* 게임: 끝에서 끝까지 차는 화면이 자동으로 넘어간다 */
.hm-show, .hm-show .splide__track, .hm-show .splide__list, .hm-show .splide__slide { position: absolute; inset: 0; height: 100%; }
.hm-show .splide__slide img { width: 100%; height: 100%; object-fit: cover; }
.hm-show::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgba(9, 9, 11, .9), rgba(9, 9, 11, .55) 36%, transparent 64%); }
.hm-intro { position: relative; z-index: 2; color: #fff; }
.hm-logo { width: clamp(280px, 30vw, 960px); height: auto; margin: 0 0 16px -8px; }
.hm-desc { max-width: 28em; margin: 0 0 12px; font-size: clamp(17px, 1.1vw, 35px); line-height: 1.6; }
.hm-facts { display: flex; flex-wrap: wrap; gap: 4px 20px; margin: 0 0 24px; font-family: var(--display); font-weight: 600; font-size: clamp(17px, .9vw, 28px); color: #e6e1d8; }
.hm-ctrl { position: absolute; z-index: 2; right: var(--gutter); bottom: calc(var(--cut) + 16px); display: flex; align-items: center; }
.hm-show .splide__pagination { display: flex; margin: 0; padding: 0; }
.splide__pagination__page, .splide__toggle { display: grid; place-items: center; width: 36px; height: 48px; padding: 0; border: 0; background: none; cursor: pointer; }
.splide__pagination__page::before { content: ""; width: 12px; height: 12px; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgba(10, 15, 35, .7); opacity: .7; transition: opacity .2s, transform .2s; }
.splide__pagination__page.is-active::before { opacity: 1; transform: scale(1.4); }
.splide__toggle span { display: none; }
.splide__toggle:not(.is-active) .splide__toggle__play, .splide__toggle.is-active .splide__toggle__pause { display: block; }
.splide__toggle__pause { width: 12px; height: 14px; border-inline: 4px solid #fff; }
.splide__toggle__play { width: 0; height: 0; border-block: 8px solid transparent; border-inline-start: 13px solid #fff; }

/* Follow 칸 내용 */
.hm-sns svg { width: clamp(38px, 3.6vw, 114px); height: clamp(38px, 3.6vw, 114px); margin-bottom: 6px; }
.hm-sns strong { font-family: var(--display); font-weight: 800; font-size: clamp(24px, 2.5vw, 80px); line-height: 1.05; }
.hm-in > span { font-size: clamp(14px, 1vw, 32px); overflow-wrap: anywhere; }

/* 카드 글자 */
.hm-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(rgba(9, 9, 11, .62), rgba(9, 9, 11, .24) 34%, transparent 58%); }
.hm-card strong { position: absolute; z-index: 1; top: clamp(16px, 2vw, 40px); left: clamp(16px, 2vw, 40px); font-family: var(--display); font-weight: 800; font-size: clamp(21px, 1.8vw, 40px); line-height: 1.15; filter: url(#hm-outline); }

/* 새 소식 */
.hm-news { min-width: 0; padding: var(--cut) var(--gutter) 0 clamp(16px, 2vw, 40px); transform: skewY(var(--rise)); }
.hm-news h2 { margin: 0 0 24px; font-family: var(--display); font-weight: 800; font-size: var(--big); line-height: 1.05; text-wrap: balance; }
.hm-news .gs-news-list a, .hm-item { display: grid; grid-template-columns: minmax(0, 1fr) 24px; gap: 8px 16px; align-items: center; padding: 24px 6px; }
.hm-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; grid-column: 1; }
.hm-news .gs-news-list strong { grid-column: 1; font-size: clamp(21px, 1.1vw, 35px); }
.hm-news .gs-news-list .arrow { grid-column: 2; grid-row: 1 / span 2; }
.hm-news .gs-news-list time, .hm-news .gs-news-list .tag { font-size: clamp(13px, .78vw, 24px); }

/* 문의 */
.hm-end p { margin: 0; }
.hm-end a.hm-mail { display: inline-block; padding-block: 12px; color: #fff; }

@media (max-width: 960px) {
  .hm-news { padding: 16px var(--gutter) 0; }
}
@media (max-width: 720px) {
  .hm-show::after { background: linear-gradient(rgba(9, 9, 11, 0) 28%, rgba(9, 9, 11, .92) 70%); }
  .hm-logo { width: 62%; }
  .hm-desc { font-size: 16px; }
  .hm-facts { font-size: 15px; margin-bottom: 16px; }
  .hm-intro .btn.big { font-size: 16px; padding-inline: 18px; }
  .hm-ctrl { top: 8px; bottom: auto; right: 8px; }
  .hm-follow { height: 88px; }
  .hm-in > strong, .hm-in > span { display: none; }
  .hm-sns svg { margin-bottom: 0; }
}
@media (max-height: 500px) and (min-width: 721px) {
  .hm-logo { width: 200px; }
}
