/* 11-11 유형 보기 화면 공통 (피칭·배팅·골프) · studio_v3.css 토큰 사용
   위 = 유형 정사각형 버튼 줄 (유형마다 대표 순간 그림, 많아지면 가로로 밀어 봄) · 아래 = 고른 유형 하나 (3D 픽토그램 + 느낌 막대 + 숫자) */
.btn-close-viewer { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); color: #e2e8f0; padding: 6px 14px; border-radius: 8px;
  font-size: .86rem; font-weight: 700; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.btn-close-viewer svg { width: 15px; height: 15px; }

/* 유형 버튼 줄 */
.tp-strip { display: flex; gap: 8px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity; padding: 2px 2px 8px; margin: 0 -2px 6px;
  scrollbar-width: thin; -webkit-overflow-scrolling: touch; }
.tp-sq { flex: 0 0 auto; width: 72px; scroll-snap-align: start; background: var(--v3-card); border: 1px solid var(--v3-line); border-radius: 12px; padding: 0;
  cursor: pointer; color: inherit; font: inherit; position: relative; overflow: hidden; }
.tp-sq canvas { width: 100%; aspect-ratio: 1 / 1; display: block; }
.tp-sq span { position: absolute; left: 6px; top: 3px; font-weight: 800; font-size: 13px; }
.tp-sq[aria-pressed="true"] { border-color: currentColor; box-shadow: 0 0 0 1px currentColor inset; }
.tp-sq:focus-visible { outline: 2px solid var(--v3-acc); outline-offset: 2px; }

/* 고른 유형 */
.tp-one { background: var(--v3-card); border: 1px solid var(--v3-line); border-radius: var(--v3-r); padding: 12px; }
.tp-name { display: flex; align-items: baseline; gap: 8px; margin: 0 2px 8px; }
.tp-id { font-weight: 800; font-size: 22px; }
.tp-nm { font-size: 16px; color: var(--v3-tx); font-weight: 600; }
.tp-one canvas { width: 100%; aspect-ratio: 4 / 3; max-height: 56vh; display: block; border-radius: 10px; touch-action: pan-y; background: #18203a; }
.tp-bar { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 4px; }
.tp-seg { display: inline-flex; background: var(--v3-card2); border: 1px solid var(--v3-line); border-radius: 999px; padding: 2px; }
.tp-seg button { background: none; border: 0; color: var(--v3-mut); font: inherit; font-size: 13px; padding: 6px 11px; border-radius: 999px; cursor: pointer; }
.tp-seg button[aria-pressed="true"] { background: var(--v3-bg); color: var(--v3-tx); box-shadow: inset 0 0 0 1px var(--v3-line); }
.tp-ms { margin: 10px 0 2px; }
.tp-m { display: grid; grid-template-columns: 5.6em 1fr 2.8em; white-space: nowrap; align-items: center; gap: 6px; font-size: 13px; color: var(--v3-mut); margin: 6px 2px 0; }
.tp-track { height: 6px; border-radius: 3px; background: var(--v3-card2); position: relative; overflow: hidden; }
.tp-track i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 3px; }
.tp-w { text-align: right; color: var(--v3-tx); }
.tp-rows { margin: 12px 0 0; }
.tp-row { display: flex; justify-content: space-between; gap: 10px; padding: 9px 2px; border-bottom: 1px solid var(--v3-line); font-size: 14px; }
.tp-row span:first-child { color: var(--v3-mut); }
.tp-row b { font-weight: 600; text-align: right; }
.tp-models { display: flex; gap: 6px; margin: 10px 0 0; }
.tp-note { color: var(--v3-mut); font-size: 13px; line-height: 1.55; margin: 12px 2px 0; }
.tp-hint { font-size: 12px; color: var(--v3-mut); margin: 8px 2px 0; }
@media (min-width: 720px) { .v3-main.tp-wide { max-width: 720px; } .tp-sq { width: 84px; } }
/* 11-13 폰 폭 넘침 고침: body 가 flex 세로 → main 최소 폭 = 안 내용 최소 폭 (유형 버튼 줄 전체 길이) 이라 화면보다 넓어짐 → 최소 폭 0 */
.v3-main.tp-wide { min-width: 0; width: 100%; box-sizing: border-box; }
.tp-strip, .tp-one, #tpBody { min-width: 0; max-width: 100%; }
/* 11-13 유형 버튼이 더 있으면 작은 화살표 (type_gallery.js stripArrows) */
.tp-strip-wrap { position: relative; min-width: 0; }
.tp-arrow { position: absolute; top: 2px; bottom: 8px; width: 26px; border: 0; padding: 0; cursor: pointer; color: var(--v3-tx); font-size: 22px; font-weight: 700; line-height: 1; z-index: 2; }
.tp-arrow.r { right: -2px; background: linear-gradient(to right, transparent, var(--v3-bg) 60%); text-align: right; padding-right: 2px; border-radius: 0 12px 12px 0; }
.tp-arrow.l { left: -2px; background: linear-gradient(to left, transparent, var(--v3-bg) 60%); text-align: left; padding-left: 2px; border-radius: 12px 0 0 12px; }
