/* ============================================================
   홈 (좀비쨩 랜딩) 전용 스타일
   히어로 → 30일 루프 → 핵심 경험 → 스크린샷 → 트레일러 → 이벤트
   → 2차 CTA → 라인업 → 스튜디오 → 연락처
   ============================================================ */

/* ---------- 히어로 ---------- */
.hero {
  position: relative;
  overflow: hidden;
  min-height: min(760px, 88vh);
  display: grid;
  align-items: center;
  isolation: isolate;
}
.hero-bg { position: absolute; inset: 0; z-index: -2; }
.hero-bg img, .hero-bg picture { width: 100%; height: 100%; }
.hero-bg img { object-fit: cover; object-position: 22% center; }
/* 오른쪽 텍스트 영역이 읽히도록 오른쪽·아래로 갈수록 어둡게 */
.hero-bg::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(9, 11, 20, 0) 30%, rgba(9, 11, 20, 0.55) 60%, rgba(9, 11, 20, 0.85) 100%),
    linear-gradient(180deg, rgba(9, 11, 20, 0.35) 0%, rgba(9, 11, 20, 0) 30%, rgba(9, 11, 20, 0.2) 70%, var(--bg) 100%);
}
.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 32px;
  padding-block: clamp(48px, 8vw, 96px);
}
.hero-copy { grid-column: 2; display: grid; gap: 22px; justify-items: start; min-width: 0; }
.hero-top { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
/* 부제 "좀비짱은 XX가 되고 싶어": HUD 라벨보다 자간을 좁히고 본문 글꼴로 */
.hero-top .eyebrow { font-family: var(--font-body); font-weight: 600; font-size: clamp(1.1rem, 1.7vw, 1.35rem); letter-spacing: 0.14em; text-transform: none; color: var(--star); }
.hero-top .eyebrow::before { width: 34px; }
.hero-badge {
  font-family: var(--font-hud); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--bg); background: var(--star); padding: 5px 10px; border-radius: 4px;
}
.hero-logo { width: min(100%, 520px); height: auto; filter: drop-shadow(0 6px 30px rgba(195, 203, 255, 0.25)); }
.hero h1 { font-size: clamp(1.35rem, 2.6vw, 1.85rem); font-weight: 700; line-height: 1.35; letter-spacing: -0.01em; color: var(--ink); }
.hero-lead { color: var(--ink-2); font-size: clamp(0.98rem, 1.3vw, 1.08rem); max-width: 58ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-note { font-size: 0.85rem; color: var(--ink-3); max-width: 52ch; display: flex; gap: 8px; align-items: flex-start; }
.hero-note::before { content: "i"; flex-shrink: 0; width: 18px; height: 18px; border-radius: 50%; border: 1px solid var(--ink-3); display: grid; place-items: center; font-family: var(--font-hud); font-size: 0.7rem; margin-top: 3px; }

/* 팩트 행 (장르·플랫폼·출시·언어) */
.hero-facts {
  display: grid; grid-template-columns: repeat(4, auto); gap: 0;
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: rgba(9, 11, 20, 0.5); backdrop-filter: blur(8px);
  margin-top: 6px;
}
.hero-facts div { padding: 10px 16px; display: grid; gap: 2px; border-right: 1px solid var(--line); }
.hero-facts div:last-child { border-right: 0; }
.hero-facts dt { font-family: var(--font-hud); font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-3); }
.hero-facts dd { margin: 0; font-size: 0.9rem; font-weight: 600; color: var(--ink); }

/* 스팀 위젯 (스토어 공개 후에만 표시) */
.steam-widget { grid-column: 2; margin-top: -8px; }
.steam-widget iframe { width: 100%; max-width: 646px; height: 190px; border: 0; border-radius: var(--radius-sm); }

@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr); }
  .hero-facts { grid-template-columns: repeat(2, 1fr); }
  .hero-facts div:nth-child(2) { border-right: 0; }
  .hero-facts div:nth-child(-n + 2) { border-bottom: 1px solid var(--line); }
}
@media (max-width: 900px) {
  .hero { min-height: 0; }
  /* 모바일: 배경 이미지를 상단 영역에만 깔고, 로고 → 한 줄 훅 → 위시리스트 버튼이
     스크롤 없이 첫 화면에 들어오도록 순서와 높이를 조정 (QR 유입 대응) */
  .hero-bg { bottom: auto; height: min(64vw, 440px); }
  .hero-bg img { object-position: 50% 28%; }
  .hero-bg::after {
    background:
      linear-gradient(180deg, rgba(9, 11, 20, 0.15) 0%, rgba(9, 11, 20, 0) 30%, rgba(9, 11, 20, 0.6) 70%, var(--bg) 100%);
  }
  .hero-inner { grid-template-columns: minmax(0, 1fr); gap: 0; padding-top: min(46vw, 320px); padding-bottom: 36px; }
  .hero-copy, .steam-widget { grid-column: 1; }
  .hero-copy { gap: 14px; }
  .hero-top { order: 0; }
  .hero-top .eyebrow { font-size: 1.05rem; letter-spacing: 0.1em; }
  .hero-logo { order: 1; width: min(72%, 300px); }
  .hero h1 { order: 2; font-size: clamp(1.15rem, 4.6vw, 1.5rem); }
  .hero-actions { order: 3; width: 100%; margin-top: 4px; }
  /* 스팀 위젯은 좁은 화면에서 자체 레이아웃이 깨져 숨깁니다.
     모바일에는 큰 위시리스트 버튼과 하단 고정바가 이미 있습니다. */
  .steam-widget { display: none; }
  .hero-actions .btn { flex: 1 1 100%; }
  .hero-note { order: 4; }
  .hero-lead { order: 5; font-size: 0.95rem; }
  .hero-facts { order: 6; }
}

/* ---------- 30일 루프 스트립 ---------- */
.loop { padding-block: clamp(56px, 8vw, 96px); }
.loop-strip {
  display: grid; grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line); border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(22, 26, 51, 0.6), rgba(22, 26, 51, 0.2));
  overflow: hidden;
}
.loop-step { padding: 28px 28px 30px; display: grid; gap: 10px; align-content: start; border-right: 1px solid var(--line); position: relative; }
.loop-step:last-child { border-right: 0; }
.loop-hud {
  font-family: var(--font-hud); font-weight: 700; font-size: 1.05rem; letter-spacing: 0.18em; text-transform: uppercase;
  display: flex; align-items: center; gap: 10px; color: var(--ink);
}
.loop-hud .ico { width: 22px; height: 22px; color: var(--star); }
.loop-step.is-night .loop-hud .ico { color: var(--star); }
.loop-step.is-end .loop-hud .ico { color: var(--red); }
.loop-step h3 { font-size: 1.25rem; }
.loop-step p { color: var(--ink-2); font-size: 0.95rem; }
.loop-step::after {
  /* 다음 단계로 이어지는 화살촉 */
  content: ""; position: absolute; right: -7px; top: 50%; width: 12px; height: 12px;
  background: var(--bg); border-right: 1px solid var(--line); border-top: 1px solid var(--line);
  transform: translateY(-50%) rotate(45deg); z-index: 1;
}
.loop-step:last-child::after { display: none; }
@media (max-width: 860px) {
  .loop-strip { grid-template-columns: 1fr; }
  .loop-step { border-right: 0; border-bottom: 1px solid var(--line); }
  .loop-step:last-child { border-bottom: 0; }
  .loop-step::after { right: auto; left: 32px; top: auto; bottom: -7px; transform: rotate(135deg); }
}

/* ---------- 핵심 경험 (이미지 + 텍스트 3열) ---------- */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature { display: grid; gap: 16px; align-content: start; }
.feature-media { aspect-ratio: 16 / 10; overflow: hidden; border-radius: var(--radius); border: 1px solid var(--line); position: relative; background: var(--bg-2); }
.feature-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
.feature:hover .feature-media img { transform: scale(1.04); }
.feature-media .hud-tag {
  position: absolute; left: 12px; top: 12px;
  font-family: var(--font-hud); font-size: 0.7rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  background: rgba(9, 11, 20, 0.7); border: 1px solid var(--line-strong); padding: 4px 8px; border-radius: 4px; color: var(--ink);
}
.feature h3 { font-size: 1.2rem; }
.feature p { color: var(--ink-2); font-size: 0.97rem; }
@media (max-width: 900px) { .features-grid { grid-template-columns: 1fr; gap: 32px; } .feature { grid-template-columns: 1fr 1.2fr; align-items: center; } }
@media (max-width: 560px) { .feature { grid-template-columns: 1fr; } }

/* ---------- 스크린샷 (가로 스냅 스크롤) ---------- */
.gallery { --gap: 14px; }
.gallery .sec-head { margin-bottom: 24px; }
.gallery-hint { font-size: 0.85rem; color: var(--ink-3); display: flex; align-items: center; gap: 8px; }
.gallery-track {
  display: grid; grid-auto-flow: column; grid-auto-columns: min(78vw, 640px);
  gap: var(--gap);
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 20px;
  padding: 4px 20px 18px; margin-inline: -20px;
  scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent;
  overscroll-behavior-x: contain;
}
.gallery-track::-webkit-scrollbar { height: 6px; }
.gallery-track::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 3px; }
.shot {
  scroll-snap-align: start;
  position: relative; aspect-ratio: 16 / 9; overflow: hidden;
  border-radius: var(--radius); border: 1px solid var(--line); background: var(--bg-2);
  cursor: zoom-in; text-align: left;
}
.shot img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.shot:hover img { transform: scale(1.03); }
.shot .shot-cap {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 16px 12px;
  font-family: var(--font-hud); font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink);
  background: linear-gradient(180deg, transparent, rgba(9, 11, 20, 0.85));
}
.gallery-nav { display: flex; gap: 8px; justify-content: flex-end; margin-top: 4px; }
@media (max-width: 720px) { .gallery-nav { display: none; } }

/* ---------- 트레일러 (YouTube 파사드) ----------
   히어로 직후에 놓이는 섹션. 재생 직후가 위시리스트 클릭 확률이 가장 높은 순간이라
   표지 바로 아래에 캡션과 위시리스트 버튼을 한 줄로 둡니다. */
.trailer-section { padding-block: clamp(56px, 8vw, 88px) 0; }
.trailer-section .sec-head { margin-bottom: clamp(24px, 3vw, 32px); }
.trailer-section .trailer-facade { max-width: none; }
.trailer-meta {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap; margin-top: 16px;
}
.trailer-caption {
  font-family: var(--font-hud); font-size: 0.78rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--ink-3);
}
@media (max-width: 560px) {
  .trailer-meta { flex-direction: column; align-items: stretch; }
  .trailer-meta .btn { width: 100%; }
}

.trailer-facade {
  position: relative; width: 100%; aspect-ratio: 16 / 9; max-width: 1000px; margin-inline: auto;
  border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--bg-2);
  display: grid; place-items: center; cursor: pointer;
}
.trailer-facade img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.85; transition: opacity 0.3s, transform 0.6s var(--ease); }
.trailer-facade:hover img { opacity: 1; transform: scale(1.02); }
.trailer-play {
  position: relative; display: inline-flex; align-items: center; gap: 12px;
  background: var(--red); color: #fff; padding: 16px 28px 16px 22px; border-radius: 999px; font-weight: 700; font-size: 1.05rem;
  box-shadow: 0 12px 34px var(--red-glow);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.trailer-facade:hover .trailer-play { transform: scale(1.04); box-shadow: 0 18px 44px var(--red-glow); }
.trailer-play svg { width: 22px; height: 22px; }

/* ---------- 이벤트 카드 ---------- */
.events-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.event {
  position: relative; display: grid; gap: 18px; align-content: start;
  padding: 28px; border-radius: var(--radius); border: 1px solid var(--line);
  background: linear-gradient(160deg, rgba(22, 26, 51, 0.7), rgba(15, 18, 36, 0.4));
  overflow: hidden;
}
.event::before {
  /* 상단에 얇은 별빛 선 */
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px;
  background: linear-gradient(90deg, var(--star), transparent 70%);
  opacity: 0.6;
}
.event.is-live::before { background: linear-gradient(90deg, var(--red), transparent 70%); opacity: 1; }
.event-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.event-name { font-family: var(--font-hud); font-weight: 700; font-size: 1.15rem; letter-spacing: 0.1em; text-transform: uppercase; line-height: 1.2; }
.event-date { color: var(--ink-2); font-size: 0.95rem; margin-top: 4px; }
.event-status {
  font-family: var(--font-hud); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 5px 10px; border-radius: 4px; border: 1px solid var(--line-strong); color: var(--ink-2); white-space: nowrap;
}
.event.is-live .event-status { background: var(--red); border-color: var(--red); color: #fff; }
.event.is-done { opacity: 0.6; }
.event-place { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.event-place div { padding: 12px 14px; border-radius: var(--radius-sm); background: rgba(9, 11, 20, 0.5); border: 1px solid var(--line); display: grid; gap: 2px; }
.event-place dt { font-family: var(--font-hud); font-size: 0.66rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-3); }
.event-place dd { margin: 0; font-weight: 700; font-size: 1.05rem; }
.event-place dd.booth { font-family: var(--font-hud); font-size: clamp(1.05rem, 1.4vw, 1.35rem); letter-spacing: 0.06em; color: var(--star); }
.event p { color: var(--ink-2); font-size: 0.95rem; }
.event-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.event-hall { font-family: var(--font-hud); font-size: 0.8rem; letter-spacing: 0.08em; color: var(--star); margin-top: -8px; }
@media (max-width: 1000px) { .events-grid { grid-template-columns: 1fr; } }

/* ---------- 2차 CTA 배너 ---------- */
.cta2 {
  position: relative; overflow: hidden;
  border-radius: var(--radius); border: 1px solid var(--line);
  padding: clamp(40px, 6vw, 72px) clamp(24px, 5vw, 64px);
  display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 32px; align-items: center;
  background: var(--bg-2);
}
.cta2-art { position: absolute; inset: 0; z-index: 0; }
.cta2-art img { width: 100%; height: 100%; object-fit: cover; object-position: 80% 20%; opacity: 0.55; }
.cta2-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--bg-2) 30%, rgba(15, 18, 36, 0.5) 70%, rgba(15, 18, 36, 0.2)); }
.cta2-copy { position: relative; z-index: 1; display: grid; gap: 14px; justify-items: start; }
.cta2-copy h2 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); }
.cta2-copy p { color: var(--ink-2); max-width: 50ch; }
@media (max-width: 760px) { .cta2 { grid-template-columns: 1fr; } .cta2-art::after { background: linear-gradient(180deg, rgba(15,18,36,0.2), var(--bg-2) 60%); } }

/* ---------- 라인업 ---------- */
.lineup-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.game-card {
  display: grid; grid-template-rows: auto 1fr; border-radius: var(--radius); border: 1px solid var(--line);
  background: var(--bg-2); overflow: hidden; transition: border-color 0.25s, transform 0.3s var(--ease);
}
.game-card:hover { border-color: var(--line-strong); transform: translateY(-3px); }
.game-media { aspect-ratio: 16 / 9; overflow: hidden; background: var(--bg-3); }
.game-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }
.game-body { padding: 20px 22px 22px; display: grid; gap: 10px; align-content: start; }
.game-body h3 { font-size: 1.25rem; }
.game-body p { color: var(--ink-2); font-size: 0.95rem; }
.game-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 6px; }
@media (max-width: 900px) { .lineup-grid { grid-template-columns: 1fr; } .game-card { grid-template-columns: 200px 1fr; grid-template-rows: none; } .game-media { aspect-ratio: auto; height: 100%; } }
@media (max-width: 560px) { .game-card { grid-template-columns: 1fr; } .game-media { aspect-ratio: 16 / 9; height: auto; } }

/* ---------- 스튜디오 + 연락처 ---------- */
.studio-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: start; }
.studio-copy { display: grid; gap: 18px; }
.studio-copy img { height: 40px; width: auto; }
.studio-copy p { color: var(--ink-2); max-width: 58ch; }
.studio-points { display: grid; gap: 12px; }
.studio-points li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: rgba(22, 26, 51, 0.3); }
.studio-points .ico { width: 22px; height: 22px; color: var(--star); margin-top: 3px; }
.studio-points h3 { font-size: 1rem; margin-bottom: 4px; }
.studio-points p { font-size: 0.9rem; color: var(--ink-2); }
@media (max-width: 860px) { .studio-grid { grid-template-columns: 1fr; } }

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.contact-panel { padding: 32px; border-radius: var(--radius); border: 1px solid var(--line); background: linear-gradient(160deg, rgba(22, 26, 51, 0.6), rgba(15, 18, 36, 0.3)); display: grid; gap: 20px; align-content: start; }
.contact-panel p { color: var(--ink-2); max-width: 50ch; }
.contact-list { display: grid; gap: 12px; }
.contact-list div { display: grid; gap: 2px; }
.contact-list dt { font-family: var(--font-hud); font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-3); }
.contact-list dd { margin: 0; font-weight: 600; }
.contact-list a:hover { color: var(--star); }
.map-panel { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); min-height: 320px; background: var(--bg-2); }
.map-panel iframe { width: 100%; height: 100%; min-height: 320px; border: 0; filter: grayscale(1) invert(0.92) hue-rotate(180deg) contrast(0.9); }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
