/* ============================================================================
   episode.css — 검색 유입용 공개 페이지(v/ , v/ep-NN/)
   ----------------------------------------------------------------------------
   tools/build-seo.mjs 가 만드는 정적 페이지 전용. 게임 화면(villain.css, 144KB)은
   읽지 않고 base.css 의 토큰만 쓴다 — 검색으로 들어온 사람이 처음 받는 파일이
   가벼워야 한다. 새 색·글자 크기·서체를 만들지 않는다.
   ========================================================================== */

.ep-page {
  min-height: 100svh;
  padding: 0 var(--pad-x) 96px;
}
.ep-wrap {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
}
.ep-nav-crumb {
  margin: 28px 0 0;
  font-size: var(--fs-xs);
  color: var(--c-mute);
}
.ep-nav-crumb a { color: var(--c-body); }
.ep-nav-crumb a:hover { color: var(--c-ink); }

.ep-hero {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 28px;
  align-items: start;
  margin-top: 20px;
}
.ep-hero__img {
  width: 100%;
  height: auto;
  border-radius: var(--r-lg);
  border: 1px solid var(--c-line);
  background: var(--c-panel-alt);
}
.ep-eyebrow {
  margin: 0 0 10px;
  font-family: var(--font-en);
  font-weight: 700;
  font-size: var(--fs-xs);
  letter-spacing: 0.08em;
  color: var(--c-accent);
}
.ep-h1 {
  margin: 0 0 8px;
  font-size: var(--fs-h1);
  font-weight: 700;
  line-height: var(--lh-head);
  letter-spacing: var(--ls-tighter);
  color: var(--c-ink);
}
.ep-role {
  margin: 0 0 20px;
  font-size: var(--fs-body);
  color: var(--c-ink-soft);
}
.ep-task {
  padding: 18px 20px;
  background: var(--c-panel);
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
}
.ep-task__label {
  display: block;
  margin-bottom: 4px;
  font-size: var(--fs-2xs);
  font-weight: 700;
  color: var(--c-accent-soft);
}
.ep-task__text {
  font-size: var(--fs-body);
  font-weight: 600;
  line-height: var(--lh-ui);
  color: var(--c-ink);
}

.ep-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 24px; }
.ep-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 52px;
  padding: 0 28px;
  border: 1px solid transparent;
  border-radius: var(--r-full);
  background: var(--c-accent);
  color: var(--c-invert-ink);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
  transition: background 0.2s ease;
}
.ep-btn:hover { background: var(--c-accent-hover); }
.ep-btn--ghost {
  background: transparent;
  color: var(--c-ink);
  border-color: var(--c-line);
  font-size: var(--fs-sm);
  font-weight: 600;
  min-height: 48px;
}
.ep-btn--ghost:hover { background: rgba(254, 254, 254, 0.06); }

.ep-note {
  margin: 14px 0 0;
  font-size: var(--fs-xs);
  line-height: var(--lh-body);
  color: var(--c-mute);
}

.ep-sec { margin-top: 48px; }
.ep-sec__title {
  margin: 0 0 14px;
  font-size: var(--fs-lg);
  font-weight: 700;
  line-height: var(--lh-head);
  color: var(--c-ink);
}
.ep-sec p {
  font-size: var(--fs-sm);
  line-height: var(--lh-body);
  color: var(--c-ink-soft);
}
.ep-sec p + p { margin-top: 12px; }

.ep-facts {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 0;
  margin: 0;
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
  overflow: hidden;
}
.ep-facts dt,
.ep-facts dd {
  margin: 0;
  padding: 12px 16px;
  font-size: var(--fs-sm);
  line-height: var(--lh-ui);
  border-top: 1px solid var(--c-line-soft);
}
.ep-facts dt:first-of-type,
.ep-facts dt:first-of-type + dd { border-top: 0; }
.ep-facts dt { color: var(--c-mute); font-weight: 600; }
.ep-facts dd { color: var(--c-ink); }

.ep-list { display: grid; gap: 8px; }
.ep-list__item {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 10px 16px 10px 10px;
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
  transition: background 0.2s ease, border-color 0.2s ease;
}
.ep-list__item:hover { background: var(--c-panel); border-color: var(--c-line-strong); }
.ep-list__img {
  width: 56px;
  height: 70px;
  object-fit: cover;
  border-radius: var(--r-sm);
  background: var(--c-panel-alt);
}
.ep-list__name { display: block; font-size: var(--fs-sm); font-weight: 600; color: var(--c-ink); }
.ep-list__sub { display: block; margin-top: 2px; font-size: var(--fs-xs); line-height: var(--lh-ui); color: var(--c-body); }
.ep-list__ep { font-family: var(--font-en); font-size: var(--fs-xs); font-weight: 700; color: var(--c-accent-soft); white-space: nowrap; }

.ep-foot {
  margin-top: 56px;
  font-size: var(--fs-2xs);
  line-height: var(--lh-body);
  color: var(--c-body);
  text-align: center;
}
.ep-foot a { display: inline-block; padding: 12px 8px; color: inherit; }
.ep-foot a:hover { color: var(--c-ink-soft); }

@media (max-width: 809.98px) {
  .ep-hero { grid-template-columns: 1fr; gap: 20px; }
  .ep-hero__img { max-width: 240px; }
  .ep-h1 { font-size: var(--fs-lg); }
  .ep-facts { grid-template-columns: 80px 1fr; }
}
