/* 메인 (시안 5 포털형) 전용 */

.home { padding-top: 0; }
.home__wrap { display: flex; flex-direction: column; } /* 왼쪽 빠른 메뉴는 공통 레이아웃(.site-shell)에서 */
.home__body { display: flex; flex-direction: column; gap: var(--sp-10); min-width: 0; padding-top: var(--sp-8); }
/* 공지 띠 (index.html, 폰 · 태블릿만): 맨 위 한 줄, 누르면 그 공지 글. PC 는 왼쪽 메뉴 '공지' 칸이 대신함 */
.home-notice { display: none; order: -1; align-items: center; gap: var(--sp-2); min-height: 44px; padding: 0 var(--sp-4); color: var(--text); text-decoration: none;
  background: rgba(224, 176, 74, .08); border: 1px solid rgba(224, 176, 74, .45); border-radius: var(--radius); }
.home-notice svg { flex: none; color: #e0b04a; }
.home-notice b { flex: none; font-size: var(--fs-sm); color: #e0b04a; }
.home-notice span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: var(--fs-sm); }
.home-notice i { flex: none; font-style: normal; color: var(--muted); }
@media (max-width: 1180px) { .home-notice { display: flex; } }



/* ---------- 히어로 (home-v2): 왼쪽 글·검색, 오른쪽 캐릭터 기둥 6개 + 숫자 카드 2개 ----------
   비율 규칙: 기둥은 원화 6칸을 칸당 1:3, 표지는 4:3(대표는 2×2), 순위·리뷰 썸네일 1:1
   이미지는 object-fit: cover + 보이는 부분(object-position)만 바꿔서 어떤 크기가 올라와도 틀은 그대로 */
.hv-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(24px, 4vw, 56px); align-items: center; padding-top: var(--sp-3); }
.home-hero__text { display: flex; flex-direction: column; gap: 18px; max-width: 560px; }
.home-hero__title { margin: 0; font-size: var(--fs-hero); font-weight: var(--fw-black); letter-spacing: var(--ls-display); line-height: var(--lh-display); }
.home-hero__desc { font-size: var(--fs-base); color: var(--text-sub); line-height: var(--lh-loose); }
.home-search { display: flex; align-items: center; gap: 10px; height: 52px; padding: 0 var(--sp-3) 0 var(--sp-4); background: var(--surface); border: 1px solid var(--glass-border); border-radius: 14px; color: var(--muted); transition: border-color .2s, box-shadow .2s; }
.home-search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(var(--focus-rgb), .18); }
.home-search input { flex: 1; min-width: 0; height: 100%; background: transparent; border: 0; outline: none; font-size: var(--fs-base); color: var(--text); }
.home-search input::placeholder { color: var(--placeholder); opacity: 1; }
.home-search kbd { display: grid; place-items: center; min-width: 24px; height: 24px; font: var(--fw-semibold) var(--fs-xs) var(--font); color: var(--muted); border: 1px solid var(--line); border-radius: 6px; }
.home-hero__tags { display: flex; align-items: flex-start; gap: var(--sp-2); }
.home-hero__tags-h { flex: none; line-height: 26px; } /* 첫 줄 알약 높이에 맞춰 가운데 */
.home-hero__tag-list { flex: 1; min-width: 0; display: flex; flex-wrap: wrap; gap: var(--sp-2); max-height: 26px; overflow: hidden; } /* 한 줄만, 넘친 건 [더보기] */
.home-hero__tag-list.is-open { max-height: none; }
.home-hero__tags .chip { height: 26px; }
.home-hero__more { flex: none; cursor: pointer; background: none; font: inherit; font-size: var(--fs-xs); }
.home-hero__tags .chip { background: rgba(var(--focus-rgb), 0.08); }
.home-hero__tags .chip:hover { color: var(--text-strong); border-color: var(--accent); }
.hv-hero__cta { gap: 10px; }

.hv-hero__art { position: relative; padding-bottom: 64px; }
/* 원화 출처 (Morry): 그림 아래 끝, 드워프 · 엘프 사이(오른쪽에서 1/6쯤) 밑에 작게 */
.hv-credit { position: absolute; right: 17%; bottom: calc(100% + 6px); transform: translateX(50%); white-space: nowrap; font-size: 11px; letter-spacing: .02em; color: var(--muted); }
.hv-credit:hover { color: var(--text-strong); text-decoration: underline; }
.hv-slices {
  display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); align-items: start; margin: 0 -1.5%;
  -webkit-mask-image: linear-gradient(180deg, #000 62%, transparent 96%); mask-image: linear-gradient(180deg, #000 62%, transparent 96%);
}
.hv-slice {
  position: relative; display: block; aspect-ratio: 301 / 793; margin-right: -10%; /* 비율 = 잘라낸 원화 한 칸 (양옆이 잘리지 않게) */
  /* 그림은 캐릭터마다 --slice(주소)·--pos(보일 부분)
     흰 바탕을 모래(양피지) 톤으로: 곱하기(multiply)로 겹쳐서 흰 곳만 모래색이 되고 캐릭터 색은 거의 그대로
       1) 고운 입자 (SVG 잡음, 반복)  2) 가운데 밝고 가장자리 어두운 모래색 명암  3) 캐릭터 그림 */
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .40 0 0 0 0 .37 0 0 0 0 .33 0 0 0 .45 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"),
    radial-gradient(ellipse 90% 70% at 50% 30%, var(--sand-light) 0%, var(--sand) 55%, var(--sand-dark) 100%),
    var(--slice);
  background-size: 180px 180px, 100% 100%, cover;
  background-position: 0 0, 0 0, var(--pos, 50% 0);
  background-repeat: repeat, no-repeat, no-repeat;
  background-blend-mode: multiply, multiply, normal;
  background-color: var(--pillar-bg);
  clip-path: polygon(11% 0, 100% 0, 89% 100%, 0 100%);
  transition: transform .45s cubic-bezier(.2,.8,.2,1), filter .3s;
  animation: hv-rise .9s cubic-bezier(.2,.8,.2,1) both; animation-delay: calc(var(--i) * 70ms);
}
/* 위·아래는 바탕색으로 살짝 어둡게, 왼쪽 가장자리엔 보라 빛 한 줄 */
.hv-slice::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(var(--bg-rgb),.15) 0, rgba(var(--bg-rgb),0) 18%, rgba(var(--bg-rgb),0) 60%, rgba(var(--bg-rgb),.35)), linear-gradient(90deg, rgba(var(--focus-rgb),.08), transparent 40%); }
.hv-slice::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, var(--accent-line) 0 1.5px, transparent 1.5px); clip-path: inherit; opacity: .7; }
.hv-slice:last-child { margin-right: 0; }
/* 아치형 높낮이 (가운데가 가장 높음) */
.hv-slice:nth-child(1), .hv-slice:nth-child(6) { margin-top: 44px; }
.hv-slice:nth-child(2), .hv-slice:nth-child(5) { margin-top: 18px; }
.hv-slices:hover .hv-slice { filter: brightness(.65) saturate(.8); }
.hv-slices .hv-slice:hover { filter: none; transform: translateY(-10px); }
@keyframes hv-rise { from { opacity: 0; transform: translateY(28px); } }
.hv-hero__stats { position: absolute; left: 14%; right: 0; bottom: 0; display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-3); }
.hv-stat { display: grid; grid-template-columns: auto 1fr; align-items: center; column-gap: var(--sp-3); padding: 14px 18px; background: rgba(var(--bg-rgb),.78); border: 1px solid var(--glass-border); border-radius: 16px; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 20px 40px -24px rgba(0,0,0,.9); }
a.hv-stat { color: inherit; transition: border-color .2s; } a.hv-stat:hover { color: inherit; border-color: var(--accent-line); } /* 공략 문서 → 공략 게시판 */
.hv-stat--btn { width: 100%; font: inherit; color: inherit; text-align: left; cursor: pointer; transition: border-color .2s; } .hv-stat--btn:hover { border-color: var(--accent-line); } /* 지금 접속 중 → 누가 접속했는지 모달 */
.online-list { display: flex; flex-direction: column; gap: 2px; max-height: 60vh; margin: 0; padding: 0; overflow-y: auto; list-style: none; }
.online-list li { display: flex; align-items: center; gap: var(--sp-3); padding: var(--sp-2) var(--sp-1); border-bottom: 1px solid var(--line); font-size: var(--fs-md); color: var(--text); }
.online-list .uicon { width: 32px; height: 32px; flex: none; }
.online-list .hv-stat__face-txt { font-size: var(--fs-sm); }
.online-list .is-admin .uicon { box-shadow: 0 0 0 2px var(--hud-yellow, #FCD34D); }
.online-list .lv { margin-left: auto; }
.online-note { margin: var(--sp-3) 0 0; font-size: var(--fs-sm); color: var(--muted); }
.hv-stat__face-txt { display: inline-grid; place-items: center; font-size: var(--fs-2xs); font-weight: var(--fw-bold); color: #fff; background: var(--avatar); } /* 아이콘 없는 회원은 닉네임 첫 글자 */
.hv-stat__label, .hv-stat__faces { grid-column: 1 / -1; font-size: var(--fs-xs); color: var(--muted); }
.hv-stat__value { font-size: var(--fs-4xl); font-weight: var(--fw-black); letter-spacing: var(--ls-tighter); color: var(--text-strong); }
.hv-stat__sub { justify-self: end; font-size: var(--fs-xs); color: var(--accent); }
.hv-stat__faces { display: flex; margin-bottom: 2px; }
.hv-stat__faces .uicon { width: 24px; height: 24px; box-shadow: 0 0 0 2px var(--surface-solid); }
.hv-stat__faces .uicon + .uicon { margin-left: -6px; }

/* ---------- 히어로 아래 영역 공통 ----------
   글씨는 커뮤니티 목록과 같은 밀도로: 영역 제목 18px · 카드 제목 14px · 보조 글씨 12px */
.hv-head { margin-bottom: var(--sp-4); }
.home .section-title--sm { font-size: var(--fs-xl); }
.home .hv-head .more-link { font-size: var(--fs-sm); }
.hv-score { display: inline-flex; align-items: center; gap: 4px; flex-shrink: 0; white-space: nowrap; font-size: var(--fs-xs); font-weight: var(--fw-heavy); color: var(--accent); } /* 추천 수 */

/* ---------- 추천 공략: 4:3 표지 격자(대표 1장은 2칸×2줄) + 오른쪽 인기 순위 ----------
   높이를 낮추려고 가로형 4:3 (그림마다 focus 로 보일 부분을 맞춤) */
.hv-show__grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--sp-4); align-items: stretch; }
.hv-card { position: relative; display: block; aspect-ratio: 4 / 3; min-width: 0; overflow: hidden; color: var(--text-strong); background: var(--surface-solid); border-radius: 8px; box-shadow: 0 0 0 1px var(--line); isolation: isolate; transition: transform .3s cubic-bezier(.2,.8,.2,1), box-shadow .3s; }
.hv-card.is-feature { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
.hv-card > img { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.2,.8,.2,1); }
.hv-card__tag { position: absolute; top: 10px; left: 10px; padding: 2px 8px; font-size: var(--fs-2xs); font-weight: var(--fw-bold); color: var(--text-strong); background: rgba(var(--scrim-rgb),.62); border-radius: 999px; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.hv-card__text { position: absolute; inset: auto 0 0 0; display: flex; flex-direction: column; gap: 3px; padding: 40px 12px 10px; background: linear-gradient(transparent, rgba(var(--scrim-rgb),.8) 50%, rgba(var(--scrim-rgb),.95)); }
.hv-card__title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: var(--fs-md); font-weight: var(--fw-bold); letter-spacing: var(--ls-tight); line-height: var(--lh-tight); }
.hv-card__meta { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-2); min-width: 0; font-size: var(--fs-xs); color: var(--text-sub); }
.hv-card__meta > span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hv-card.is-feature .hv-card__tag { top: 14px; left: 14px; padding: 3px 10px; font-size: var(--fs-xs); }
.hv-card.is-feature .hv-card__text { gap: 5px; padding: 72px 20px 18px; }
.hv-card.is-feature .hv-card__title { font-size: var(--fs-feature-title); font-weight: var(--fw-heavy); white-space: normal; }
.hv-card.is-feature .hv-card__meta { font-size: var(--fs-sm); }
.hv-card.is-feature .hv-score { font-size: var(--fs-base); }
.hv-card:hover { color: var(--text-strong); box-shadow: 0 0 0 2px var(--text-strong), 0 18px 36px -14px rgba(0,0,0,.85); transform: translateY(-3px); }
.hv-card:hover > img { transform: scale(1.05); }

/* 인기 순위: 오른쪽 한 칸, 카드 두 줄 높이에 맞춤 */
.hv-rank { grid-column: 5; grid-row: 1 / span 2; display: flex; flex-direction: column; min-width: 0; padding: 12px 12px 6px; background: var(--surface-solid); border: 1px solid var(--line); border-radius: 12px; }
.hv-rank__head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--sp-2); padding-bottom: 6px; }
.hv-rank__head h3 { margin: 0; font-size: var(--fs-md); font-weight: var(--fw-heavy); color: var(--text-strong); }
.hv-rank__head .more-link { font-size: var(--fs-xs); }
.hv-rank__list { flex: 1; display: grid; grid-template-rows: repeat(5, minmax(0, 1fr)); margin: 0; padding: 0; list-style: none; }
.hv-rank__list li { display: flex; min-height: 0; }
.hv-rank__list li + li { border-top: 1px solid var(--line); }
.hv-rank__row { flex: 1; display: grid; grid-template-columns: 16px 36px minmax(0, 1fr); align-items: center; gap: 9px; padding: 4px; color: var(--text); border-radius: 8px; }
.hv-rank__row:hover { color: var(--text-strong); background: var(--hover); }
.hv-rank__no { font-size: var(--fs-sm); font-weight: var(--fw-black); text-align: center; color: var(--accent); }
.hv-rank__list li:first-child .hv-rank__no { color: var(--gold); }
.hv-rank__row img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; }
.hv-rank__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; line-height: var(--lh-tight); }
.hv-rank__text b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: var(--fs-sm); font-weight: var(--fw-semibold); }
.hv-rank__text small { font-size: var(--fs-2xs); color: var(--muted); }
.hv-rank__text small em { font-style: normal; color: var(--accent); }
/* 아직 글이 없을 때 */
.hv-empty { grid-column: 1 / 5; grid-row: 1 / span 2; display: grid; place-content: center; gap: var(--sp-2); margin: 0; text-align: center; color: var(--muted); border: 1px dashed var(--line-strong); border-radius: 8px; }

/* ---------- 최신 공략 영상 + 갤러리: 한 줄에 두 칸, 각각 4:3 그림 3개 → 두 칸 높이가 딱 맞음 ---------- */
.hm-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-8); align-items: start; }
.hm-sec { min-width: 0; }
.hm-videos, .hm-gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-3); }
.hm-pic, .hm-vid { display: flex; flex-direction: column; gap: 4px; min-width: 0; color: var(--text); }
.hm-pic:hover, .hm-vid:hover { color: var(--text); }
.hm-pic__img, .hm-vid__img { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; margin-bottom: 6px; background: var(--surface-solid); border-radius: var(--radius); box-shadow: 0 0 0 1px var(--line); transition: box-shadow .3s; }
.hm-pic__img img, .hm-vid__img img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .45s cubic-bezier(.2,.8,.2,1); }
.hm-pic:hover img, .hm-vid:hover img { transform: scale(1.06); }
.hm-pic:hover .hm-pic__img, .hm-vid:hover .hm-vid__img { box-shadow: 0 0 0 2px var(--accent-line); }
.hm-pic__title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: var(--fs-md); font-weight: var(--fw-bold); letter-spacing: var(--ls-tight); color: var(--text-strong); }
.hm-pic__meta { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: var(--fs-xs); color: var(--muted); }
/* 아직 올라온 글이 없을 때: 세 칸 전체를 차지하는 안내 (누르면 글쓰기) */
.hm-empty { grid-column: 1 / -1; display: grid; place-content: center; gap: 4px; aspect-ratio: 4 / 1.2; text-align: center; color: var(--muted); border: 1px dashed var(--line-strong); border-radius: var(--radius); transition: border-color .2s, color .2s; }
.hm-empty b { font-size: var(--fs-md); color: var(--text-sub); }
.hm-empty span { font-size: var(--fs-xs); color: var(--accent); }
.hm-empty:hover { color: var(--text-sub); border-color: var(--accent-line); }
/* 영상: 살짝 어둡게 + 가운데 재생 버튼 + 길이 */
.hm-vid__img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(var(--scrim-rgb),.05), rgba(var(--scrim-rgb),.45)); transition: opacity .3s; }
.hm-vid:hover .hm-vid__img::after { opacity: .5; }
.hm-vid__play { position: absolute; z-index: 1; top: 50%; left: 50%; display: grid; place-items: center; width: 44px; height: 44px; padding-left: 3px; color: #fff; background: rgba(var(--scrim-rgb),.55); border: 1.5px solid rgba(255,255,255,.75); border-radius: 50%; transform: translate(-50%, -50%); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); transition: background .25s, border-color .25s, transform .25s; }
.hm-vid:hover .hm-vid__play { background: var(--primary); border-color: transparent; transform: translate(-50%, -50%) scale(1.08); }
.hm-vid__time { position: absolute; z-index: 1; right: 8px; bottom: 8px; padding: 2px 7px; font-size: var(--fs-xs); font-weight: var(--fw-bold); font-variant-numeric: tabular-nums; color: #fff; background: rgba(0,0,0,.72); border-radius: 4px; }

/* ---------- 게임 데이터: 원화를 깐 바로가기 8개. 한 번에 4칸(태블릿 2칸)만 보이고 제목 옆 ‹ › 로 넘김 (dnd2.js [data-slider]) ----------
   위아래 4px 여백 = 마우스를 올리면 카드가 3px 떠오르는 자리 (가로로 넘기는 칸은 넘친 곳이 잘림) */
.hm-data { --gap: var(--sp-4); display: flex; gap: var(--gap); padding: var(--sp-1) 2px; margin: calc(-1 * var(--sp-1)) -2px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 2px; scroll-behavior: smooth; scrollbar-width: none; }
.hm-data::-webkit-scrollbar { display: none; }
.hm-head__nav { display: flex; gap: var(--sp-2); }
.hm-head__nav .btn-icon { width: 36px; height: 36px; }
.hm-head__nav .btn-icon:disabled { opacity: .35; cursor: default; }
.hm-db { flex: 0 0 calc((100% - 3 * var(--gap)) / 4); scroll-snap-align: start; position: relative; display: flex; align-items: flex-end; aspect-ratio: 16 / 10; min-width: 0; overflow: hidden; isolation: isolate; color: var(--text); background: var(--surface-solid); border-radius: 14px; box-shadow: 0 0 0 1px var(--line); transition: box-shadow .3s, transform .3s cubic-bezier(.2,.8,.2,1); }
.hm-db:hover { color: var(--text); transform: translateY(-3px); box-shadow: 0 0 0 2px var(--accent-line), 0 18px 36px -16px rgba(0,0,0,.85); }
.hm-db > img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.2,.8,.2,1); }
.hm-db:hover > img { transform: scale(1.06); }
.hm-db::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(var(--scrim-rgb),0) 25%, rgba(var(--scrim-rgb),.72) 62%, rgba(var(--scrim-rgb),.94)); }
.hm-db__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; padding: var(--sp-4) 60px var(--sp-4) var(--sp-4); }
.hm-db__en { font-family: var(--font-display); font-size: var(--fs-2xs); font-weight: var(--fw-semibold); letter-spacing: var(--ls-caps); color: var(--accent); }
.hm-db__name { font-size: var(--fs-xl); font-weight: var(--fw-heavy); letter-spacing: var(--ls-tighter); color: var(--text-strong); }
.hm-db__desc { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: var(--fs-xs); color: var(--text-sub); }
.hm-db__go { position: absolute; right: var(--sp-4); bottom: var(--sp-4); display: grid; place-items: center; width: 34px; height: 34px; color: #fff; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.22); border-radius: 50%; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); transition: background .25s, border-color .25s, transform .25s; }
.hm-db:hover .hm-db__go { background: var(--primary); border-color: transparent; transform: translateX(3px); }
/* 준비 중(일반 사용자에게 링크 없음, LayoutAdvice.SOON_PATHS): 그림 흐리게 · 화살표 대신 이름 옆 '준비중' 딱지 */
.hm-db.is-soon { cursor: default; }
.hm-db.is-soon:hover { transform: none; box-shadow: 0 0 0 1px var(--line); }
.hm-db.is-soon > img, .hm-db.is-soon:hover > img { filter: grayscale(.8) brightness(.5); transform: none; }
.hm-db.is-soon .hm-db__go { display: none; }
.soon-tag { display: inline-block; margin-left: 8px; padding: 1px 8px; border: 1px solid rgba(255,255,255,.35); border-radius: 999px; color: rgba(255,255,255,.85); font-size: 12px; font-weight: 700; line-height: 1.5; vertical-align: 2px; white-space: nowrap; }

/* ---------- 반응형: 칸 수만 줄이고 그림 비율은 그대로 ---------- */
@media (max-width: 1180px) {
  /* 큰 카드 + 작은 카드 4장(2×2) + 순위는 그 아래 가로로 다섯 칸 */
  .hv-show__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .hv-rank { grid-column: 1 / -1; grid-row: auto; padding-bottom: 12px; }
  .hv-rank__list { grid-template-rows: none; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--sp-2); padding-top: 8px; }
  .hv-rank__list li + li { border-top: 0; }
  .hv-rank__row { background: var(--surface); }
  .hm-db { flex-basis: calc((100% - var(--gap)) / 2); }
}
@media (max-width: 1024px) {
  .hv-hero { grid-template-columns: minmax(0, 1fr); }
  .hv-hero__art { order: -1; width: 100%; max-width: 640px; margin: 0 auto; }
  .hm-pair { grid-template-columns: minmax(0, 1fr); gap: var(--section-gap); }
  .hv-rank__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hv-rank__list li:last-child { grid-column: 1 / -1; }
}
@media (max-width: 768px) {
  .home__body { gap: var(--sp-8); padding-top: var(--sp-2); }
  .home-hero__desc br { display: none; }
  .hv-slice { aspect-ratio: 1 / 2.3; }
  .hv-slice:nth-child(1), .hv-slice:nth-child(6) { margin-top: 26px; }
  .hv-slice:nth-child(2), .hv-slice:nth-child(5) { margin-top: 10px; }
  .hv-hero__art { padding-bottom: 0; }
  .hv-hero__stats { position: relative; left: auto; margin-top: -28px; }
  .hv-stat { padding: var(--sp-3) 14px; }
  .hv-stat__value { font-size: var(--fs-3xl); }

  .hv-show__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-3); }
  .hv-card.is-feature { grid-row: span 1; aspect-ratio: 4 / 3; } /* 좁은 화면: 큰 카드는 두 칸 폭 한 줄 */
  .hv-empty { grid-column: 1 / -1; grid-row: auto; padding: var(--sp-8) 0; }
  .hv-rank__list { grid-template-columns: minmax(0, 1fr); }
  .hv-rank__list li:last-child { grid-column: auto; }

  .hm-data { --gap: var(--sp-3); }
  .hm-db { aspect-ratio: 4 / 3; }
  .hm-db__text { padding: var(--sp-3); }
  .hm-db__name { font-size: var(--fs-xl); }
  .hm-db__desc { white-space: normal; }
  .hm-db__go { display: none; }
}
@media (max-width: 480px) {
  /* 영상·갤러리: 옆으로 넘기는 한 줄 */
  .hm-videos, .hm-gallery { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .hm-videos::-webkit-scrollbar, .hm-gallery::-webkit-scrollbar { display: none; }
  .hm-pic, .hm-vid { flex: 0 0 44%; scroll-snap-align: start; }
  .hm-empty { flex: 1 0 100%; aspect-ratio: auto; padding: var(--sp-8) 0; }
}
@media (prefers-reduced-motion: reduce) {
  .hv-slice { animation: none; transition: none; }
  .hv-card, .hv-card > img, .hm-pic img, .hm-vid img, .hm-db, .hm-db > img, .hm-vid__play, .hm-db__go { transition: none; }
}

/* 관리자 > 사이트 설정 > 메인 구성 */
.home-hero__desc--lines { white-space: pre-line; } /* 설명 문구의 줄바꿈을 그대로 */

/* 첫 화면 글 (작은 영문 · 제목 · 설명): 홈에 올 때마다 왼쪽에서 오른쪽으로 부드럽게 들어옴, 한 줄씩 조금씩 늦게 */
@keyframes heroSlideIn { from { opacity: 0; transform: translateX(-28px); } to { opacity: 1; transform: none; } }
.home-hero__text > .eyebrow,
.home-hero__text > .home-hero__title,
.home-hero__text > .home-hero__desc { animation: heroSlideIn .7s cubic-bezier(.22, .8, .24, 1) both; }
.home-hero__text > .home-hero__title { animation-delay: .08s; }
.home-hero__text > .home-hero__desc { animation-delay: .16s; }
@media (prefers-reduced-motion: reduce) {
  .home-hero__text > * { animation: none !important; }
}

/* 폰: 게임 데이터 8칸을 두 줄씩 쌓으니 4줄(약 480px)로 길어짐 → 한 줄 가로 슬라이드(화면 양끝까지, 2장 반이 보여 밀 수 있음이 드러남), 설명은 빼고 이름만 */
@media (max-width: 640px) {
  .hm-data { --gap: 10px; margin: 0 calc(50% - 50vw); padding: 0 16px 4px; scroll-padding-inline: 16px; -webkit-overflow-scrolling: touch; }
  .hm-head__nav { display: none; } /* 폰은 손가락으로 밀어서 넘김 */
  .hm-db { flex: 0 0 40%; aspect-ratio: 4 / 5; scroll-snap-align: start; }
  .hm-db__desc { display: none; }
  .hm-db__text { padding: var(--sp-3); }
  .hm-db__name { font-size: var(--fs-lg); }
}
