/* 첫 화면 A9 (2026-11-20, BRIEF_A9_h2_fix_ko.md 첫 화면). style.css 뒤에 읽어 첫 화면 무대만 바꾼다.
   무대는 둥근 모서리의 SVG 하나(사진, 대상 상자, 이름표)이고, 출력 전환은 사진 안 왼쪽 위(좁은 화면은 왼쪽 아래)의 흰 판이다.
   사진 아래 한 줄에는 녹화 이름만 오른쪽에 둔다(전환과 떨어뜨림).
   색은 토큰만 쓴다: 사진 위의 것(상자, 이름표, 전환 판)은 두 판에서 같은 --vid-*. 고른 출력의 밑줄은 그 상태의 상자 색이다.
   상자 선 긋기와 투명도는 hero_a9.js가 SVG 속성으로 바꾸므로 여기서는 정하지 않는다.
   첫 화면 높이: 무대 높이 = 화면 높이 − 머리 줄 − 두 줄 글 − 녹화 이름 줄. 낮은 화면(높이 820px 이하)에서는 글 둘레 여백과
   글자 크기를 조금 줄여 무대를 키운다(대상을 1.2배 넘게 당겨도 상자와 이름표가 무대 안에 들게). */

@media (min-width: 720px) {
  .hero.is-a9 { display: flex; flex-direction: column; height: calc(100vh - 72px); min-height: 560px; }
  .hero.is-a9 .hero-head { flex: none; }
  .hero-stage.is-a9 { flex: 1 1 auto; display: flex; flex-direction: column; min-height: 0; }
  .hero-stage.is-a9 .stage { flex: 1 1 auto; height: auto; min-height: 260px; max-height: 700px; }
}
@media (min-width: 720px) and (max-height: 820px) {
  .hero.is-a9 .hero-head { padding: 14px 0 16px; }
  .hero.is-a9 .lede { font-size: 18px; line-height: 1.5; }
  .hero.is-a9 .gain { font-size: 15px; line-height: 1.45; margin-top: 6px; }
  .hero.is-a9 .actions { margin-top: 14px; }
  .hero.is-a9 .btn { height: 42px; }
}
@media (min-width: 720px) and (max-height: 760px) {
  .hero.is-a9 h1 { font-size: 96px; }
  .hero.is-a9 .cat { font-size: 38px; margin-top: 6px; }
}
.hero-stage.is-a9 { display: flex; flex-direction: column; }
.hero-stage.is-a9 .stage { position: relative; height: 420px; margin: 0; min-width: 0; border-radius: 24px; overflow: hidden; background: var(--face); }
.stage-svg { display: block; width: 100%; height: 100%; }
.hero-stage.is-a9 .ctl { flex: none; display: flex; align-items: center; justify-content: flex-end; height: 22px; margin-top: 6px; min-width: 0; }
.hero-stage.is-a9 .rec { grid-area: auto; margin: 0; justify-self: auto; font-size: 14px; line-height: 22px; color: var(--muted); }

/* 사진 위 상자와 이름표(앱 영상 상자와 같은 꼴: 흰 테두리, 추적기 출력 라즈베리, TraceMend 출력 보라, 흰 글). 이름표 모서리 3px */
.h9-ring { fill: none; stroke: var(--vid-ring); stroke-width: 6.5; }
.h9-line { fill: none; stroke-width: 3; }
.h9-line.is-tracker { stroke: var(--vid-cand); }
.h9-line.is-trace { stroke: var(--vid-accent); }
.h9-chip-ring { fill: none; stroke: var(--vid-ring); stroke-width: 3; }
.h9-chip-face.is-acc { fill: var(--vid-accent); }
.h9-chip-face.is-cand { fill: var(--vid-cand); }
.h9-chip-t { fill: var(--vid-ink); font-family: "Wanted Sans", system-ui, sans-serif; font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; }
.h9-chip-t.is-n { font-size: 13px; }
/* 취소선 "30번": 흰 판 위 라즈베리 글과 선(추적기 출력의 ID를 지움) */
.h9-old-face { fill: var(--vid-plate); }
.h9-old-t { fill: var(--vid-cand); font-family: "Wanted Sans", system-ui, sans-serif; font-size: 14px; font-weight: 500; font-variant-numeric: tabular-nums; }
.h9-old-t.is-n { font-size: 12.5px; }
.h9-strike { stroke: var(--vid-cand); stroke-width: 1.6; stroke-linecap: round; }
/* 비교용(A9_LABEL_MODE = 'in'): 보라 이름표 안의 흰 취소선 글 */
.h9-in-t { fill: var(--vid-ink); opacity: 0.8; font-family: "Wanted Sans", system-ui, sans-serif; font-size: 12.5px; font-weight: 500; font-variant-numeric: tabular-nums; }
.h9-in-t.is-n { font-size: 11.5px; }
.h9-strike.is-in { stroke: var(--vid-ink); stroke-width: 1.4; }

/* 출력 전환: 사진 안 흰 판, 글과 밑줄. 고른 쪽은 진한 글과 그 상태의 상자 색 밑줄(추적기 출력 라즈베리, TraceMend 출력 보라) */
.h9-tabs {
  position: absolute; left: 16px; top: 16px; z-index: 2; display: flex; gap: 20px; padding: 0 16px;
  border-radius: 6px; background: var(--vid-plate);
}
.h9-tab {
  height: 42px; padding: 2px 0 0; border: 0; border-bottom: 2px solid transparent; background: transparent; cursor: pointer;
  color: var(--vid-plate-muted); font-size: 15px; font-weight: 500; white-space: nowrap;
}
.h9-tab:hover { color: var(--vid-plate-ink); }
.h9-tab[aria-selected="true"] { color: var(--vid-plate-ink); font-weight: 600; }
.h9-tab[data-view="tracker"][aria-selected="true"] { border-bottom-color: var(--vid-cand); }
.h9-tab[data-view="trace"][aria-selected="true"] { border-bottom-color: var(--vid-accent); }
.h9-tab:focus-visible { outline: 2px solid var(--vid-accent); outline-offset: 2px; }

@media (max-width: 719px) {
  .hero-stage.is-a9 .stage { height: auto; aspect-ratio: 358 / 300; margin-top: 28px; border-radius: 16px; }
  .hero-stage.is-a9 .ctl { height: 20px; }
  .hero-stage.is-a9 .rec { font-size: 13px; line-height: 20px; }
  .h9-tabs { left: 10px; top: auto; bottom: 10px; gap: 14px; padding: 0 11px; }
  .h9-tab { height: 36px; font-size: 14px; }
}
