/* 새 셸 화면별 완성도 층 — showcase(홈 최상단 쇼케이스 배너). DESIGN.md(Framer 다크) 준수 · body.shell-v2 스코프.
 *   자사 지면이다(DA 구좌는 ads.css). 파랑은 포커스에만 — 배너 강조는 이미지와 흰 알약 CTA 가 맡는다.
 *   ⚠️ 슬라이드 전환은 [hidden] 토글이다(glass.css 의 [hidden]{display:none!important} 와 정합).
 *      hidden="until-found" 를 쓰면 그 규칙이 값을 눌러 Ctrl+F 가 죽는다 — 여기서는 본문이 아니므로 평범한 hidden 이 맞다. */

body.shell-v2 .showcase {
  position: relative; display: block; border-radius: var(--r-xl); overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16); background: var(--surface-1);
  aspect-ratio: 40 / 13; min-height: 260px;
}

/* 슬라이드 — 트랙 위에 한 장만 보인다. 이미지는 덮어 자르고, 문구는 좌하단 스크림 위에 얹는다. */
body.shell-v2 .showcase-track { position: absolute; inset: 0; }
body.shell-v2 .showcase-slide { position: absolute; inset: 0; animation: showcase-in 420ms ease both; }
body.shell-v2 .showcase-slide--noimg { background: linear-gradient(120deg, #1a1030 0%, #2a1030 55%, #3a1424 100%); }
body.shell-v2 .showcase-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* 스크림 — 좌측이 짙어 문구가 어떤 키비주얼 위에서도 읽힌다(대비 확보). */
body.shell-v2 .showcase-scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(9, 9, 9, 0.92) 0%, rgba(9, 9, 9, 0.72) 38%, rgba(9, 9, 9, 0.12) 72%, rgba(9, 9, 9, 0.35) 100%),
    linear-gradient(0deg, rgba(9, 9, 9, 0.55) 0%, rgba(9, 9, 9, 0) 55%);
}
@keyframes showcase-in { from { opacity: 0; transform: scale(1.03); } to { opacity: 1; transform: none; } }

body.shell-v2 .showcase-copy {
  position: absolute; left: 40px; right: 40px; bottom: 34px; top: 34px;
  display: flex; flex-direction: column; align-items: flex-start; justify-content: center;
  gap: 10px; max-width: 560px; pointer-events: none;
}
body.shell-v2 .showcase-copy > .btn { pointer-events: auto; }
body.shell-v2 .showcase-badge {
  padding: 0 10px; border-radius: var(--r-pill); line-height: 22px;
  background: rgba(255, 255, 255, 0.14); color: var(--ink);
  font-size: var(--fs-fine); font-weight: 600; letter-spacing: var(--ls-fine);
}
body.shell-v2 .showcase-title {
  margin: 0; font-family: var(--font-head, inherit);
  font-size: var(--fs-title-1); line-height: var(--lh-title-1); letter-spacing: var(--ls-display-md);
  color: var(--ink); text-wrap: balance;
}
body.shell-v2 .showcase-tagline {
  margin: 0; font-size: var(--fs-tagline); line-height: 1.35; letter-spacing: var(--ls-tagline);
  color: var(--ink-80); word-break: keep-all; overflow-wrap: anywhere;
}
body.shell-v2 .showcase-meta { font-size: var(--fs-fine); color: var(--ink-48); letter-spacing: var(--ls-fine); }
body.shell-v2 .showcase-copy .btn.showcase-cta { margin-top: 6px; min-height: 40px; }

/* 쇼케이스가 앞에 서면 인사말은 히어로를 그만둔다 — 한 화면에 스포트라이트는 하나다(home.css 의 그 규칙).
   쇼케이스 없이 홈을 그리는 경로(슬라이드 0건)에서는 이 규칙이 안 걸려 인사말이 원래 크기로 남는다. */
body.shell-v2 .showcase + .hub-head { padding: 20px 28px; min-height: 0; align-items: center; }
body.shell-v2 .showcase + .hub-head .hub-title { font-size: var(--fs-title-2); line-height: var(--lh-title-2); letter-spacing: -0.8px; }

/* 조작 줄 — 우하단. 점은 현재 위치 표시이자 이동 수단이다.
 * 🔴 2026-09-18 정정: 이 주석은 원래 "둘 다 44px 히트 영역을 갖는다" 였는데 **코드가 그렇지 않았다**
 *    (390px 실측: 점 24×32 · 화살표 32×32). 아래 @media (pointer: coarse) 블록이 그 말을 실제로 만든다. */
body.shell-v2 .showcase-nav {
  position: absolute; right: 20px; bottom: 20px; display: flex; align-items: center; gap: 6px;
  padding: 6px; border-radius: var(--r-pill); background: rgba(9, 9, 9, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.14);
}
body.shell-v2 .showcase-arrow {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; padding: 0; border: 0; border-radius: 50%;
  background: transparent; color: var(--ink-80); cursor: pointer; transition: background 0.15s ease, color 0.15s ease;
}
body.shell-v2 .showcase-arrow:hover { background: rgba(255, 255, 255, 0.12); color: var(--ink); }
body.shell-v2 .showcase-arrow:focus-visible { outline: none; box-shadow: var(--ring-focus); }
body.shell-v2 .showcase-dots { display: flex; align-items: center; gap: 4px; }
body.shell-v2 .showcase-dot {
  width: 24px; height: 32px; padding: 0; border: 0; background: transparent; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
}
body.shell-v2 .showcase-dot::before {
  content: ''; width: 7px; height: 7px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.34); transition: background 0.15s ease, width 0.2s ease;
}
body.shell-v2 .showcase-dot:hover::before { background: rgba(255, 255, 255, 0.6); }
body.shell-v2 .showcase-dot.is-on::before { width: 18px; border-radius: var(--r-pill); background: var(--ink); }
body.shell-v2 .showcase-dot:focus-visible { outline: none; border-radius: var(--r-pill); box-shadow: var(--ring-focus); }

/* 터치 — 히트 영역 44. 시각 크기(점 7px · 화살표 아이콘)는 그대로 두고 누르는 상자만 키운다.
 * ⚠️ 점의 가로는 44 가 아니라 36 이다 — 점은 슬라이드 수만큼 나란히 서므로 44 로 벌리면 조작 줄이
 *    390px 을 넘는다(5장 기준 화살표 88 + 점 220 + 간격 > 화면 폭). 세로 44 를 확보하고 가로는
 *    이웃을 안 밀 만큼만 넓혔다. 점 말고 화살표라는 다른 길이 같은 줄에 있어서 가능한 타협이다.
 * ⚠️ `pointer: coarse` 로 가른다 — 폭이 아니라 **입력 장치**가 기준이다(좁은 창의 마우스는 정밀하다). */
@media (pointer: coarse) {
  body.shell-v2 .showcase-arrow { width: 44px; height: 44px; }
  body.shell-v2 .showcase-dot { width: 36px; height: 44px; }
  body.shell-v2 .showcase-copy .btn.showcase-cta { min-height: 44px; }
}

/* 좁은 화면 — 문구가 이미지를 덮으므로 스크림을 세로로 세우고 조작 줄을 아래 가운데로 내린다. */
@media (max-width: 720px) {
  body.shell-v2 .showcase { aspect-ratio: auto; min-height: 0; }
  body.shell-v2 .showcase-track { position: relative; inset: auto; }
  body.shell-v2 .showcase-slide { position: relative; inset: auto; min-height: 340px; }
  body.shell-v2 .showcase-slide[hidden] { display: none !important; }
  body.shell-v2 .showcase-scrim {
    background: linear-gradient(0deg, rgba(9, 9, 9, 0.95) 0%, rgba(9, 9, 9, 0.7) 45%, rgba(9, 9, 9, 0.2) 100%);
  }
  body.shell-v2 .showcase-copy { left: 20px; right: 20px; top: auto; bottom: 68px; max-width: none; justify-content: flex-end; }
  body.shell-v2 .showcase-tagline { font-size: var(--fs-body); }
  body.shell-v2 .showcase-nav { right: 20px; left: 20px; bottom: 16px; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  body.shell-v2 .showcase-slide { animation: none; }
}
