/* a-talk — 2026-11-30 학습 화면 개선(상영관 컨셉을 안쪽까지). 이 파일만 담당 하위 작업이 고친다.
   회화 장면: 먹색 무대(.stage.talk-stage) 위에 스크린(.screen — 크기·위치 규칙은 again.css 그대로, 말풍선이 그 안에 놓인다),
   스크린 아래 상영 정보 줄(.billing = 1~3회차), 맨 아래 조종석(.booth = 불빛 재생 단추 · 조용한 줄 · 다음 단계). */

/* 바깥 틀: 무대 한 덩어리. 스크린 폭 계산(--scr)은 무대 안쪽 여백만큼 키 높이를 더 뺀다 */
.area-talk { --scr: min(100%, calc((100svh - 390px) * 16 / 9)); display: block; max-width: var(--area-w); --screen-max: max(var(--scr), 560px); }
.talk-stage { padding: 14px 14px 18px; }

/* 스크린: 무대 위에서는 그림자 대신 아주 옅은 빛 테두리(크기 규칙은 건드리지 않는다) */
.talk-stage .screen { border-radius: 10px; background: var(--night-2); box-shadow: 0 0 0 1px rgba(255, 244, 228, .07); }

/* ---------- 상영 정보 줄: 1~3회차 ---------- */
.talk-stage .billing { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; margin: 0; padding: 14px 4px 14px; border: 0; border-bottom: 1px solid var(--night-line); border-radius: 0; background: none; }
.talk-stage .pass { flex-direction: row; align-items: center; gap: 10px; color: var(--on-stage); }
.talk-stage .pass b { margin: 0; font-size: 14px; font-weight: 500; letter-spacing: .02em; color: var(--on-stage-sub); white-space: nowrap; }
.talk-stage .pass > span { min-height: 44px; padding: 0 14px 0 11px; border: 1px solid var(--night-line); border-radius: 999px; background: transparent; color: var(--on-stage); font-size: 16px; font-weight: 500; }
.talk-stage .pass > span .i { width: 18px; height: 18px; color: var(--on-stage-sub); }
.talk-stage .pass:hover > span { border-color: rgba(238, 228, 215, .32); background: rgba(238, 228, 215, .04); }
/* 지금 상영 중인 회차: 불빛 테두리와 불빛 글자(속을 채우지 않는다 — 꽉 찬 불빛은 재생 단추 하나뿐) */
.talk-stage .pass.first.cur > span { border-color: var(--lamp); background: color-mix(in srgb, var(--lamp) 12%, transparent); color: var(--lamp); }
.talk-stage .pass.first.cur > span .i { color: var(--lamp); }
.talk-stage .pass.done b::after { color: var(--lamp); }

/* ---------- 조종석: 불빛 재생 단추 · 조용한 줄 · 다음 단계 ---------- */
.talk-stage .booth { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px 20px; padding: 18px 4px 0; }
/* 재생 단추: 동그라미 안에는 아이콘, 지금 상태 말(span)은 동그라미 오른쪽에 붙는다(단추 전체가 눌림) */
.talk-stage .btn-hero.play { margin-left: 6px; }
.talk-stage .btn-hero.play > span { position: absolute; left: calc(100% + 18px); top: 50%; transform: translateY(-50%); font-size: 16px; font-weight: 500; color: var(--on-stage); white-space: nowrap; pointer-events: none; }
.talk-stage .btn-hero.play .i path[d^="M9 5.5"] { stroke-width: 2.6; }                 /* 멈춤 두 줄은 굵게 */
.talk-stage .btn-hero.play .i path[d^="M8 5.6"] { transform: translateX(1.5px); }      /* 재생 세모는 눈으로 가운데 */
.talk-stage .booth .quietbar { justify-content: flex-end; padding-left: 150px; }        /* 왼쪽 = 재생 단추 이름표 자리 */
/* 다음 단계: 무대 위 오른쪽, 선만 있는 단추 */
.talk-stage .btn.go { border-color: rgba(238, 228, 215, .28); background: transparent; color: var(--on-stage); }
.talk-stage .btn.go:hover { border-color: var(--on-stage-sub); background: rgba(238, 228, 215, .05); }
.talk-stage :focus-visible { outline-color: var(--lamp); }

/* 태블릿 이하: 조종석을 두 줄로(재생 + 다음 / 조용한 줄) */
@media (max-width: 859px) {
  .area-talk { max-width: none; }
  .talk-stage .booth { grid-template-columns: auto minmax(0, 1fr) auto; }
  .talk-stage .booth .quietbar { grid-column: 1 / -1; grid-row: 2; justify-content: center; padding: 6px 0 0; border-top: 1px solid var(--night-line); }
  .talk-stage .booth .btn.go { grid-column: 3; grid-row: 1; }
}
/* 휴대폰: 무대를 화면 끝까지(스크린이 넓어진다), 정보 줄은 세로로 */
@media (max-width: 560px) {
  .area-talk { padding-top: 0; }
  .talk-stage { margin: 0 -16px; padding: 10px 10px 12px; border-radius: 0 0 18px 18px; }
  .talk-stage .screen { border-radius: 8px; }
  .talk-stage .billing { flex-direction: column; align-items: stretch; gap: 10px; padding: 12px 2px; }
  .talk-stage .pass b { min-width: 0; }
  .talk-stage .pass > span { padding: 0 13px 0 10px; }
  .talk-stage .booth { gap: 10px 12px; padding-top: 14px; }
  .talk-stage .btn-hero.play > span { left: calc(100% + 14px); }
  .talk-stage .booth .btn.go { padding: 0 16px; }
}
/* 아주 좁은 휴대폰(400 이하): 재생 단추 이름과 다음 단계 단추가 한 줄에 다 안 들어가므로, 다음 단계는 맨 아래 오른쪽 줄로 */
@media (max-width: 400px) {
  .talk-stage .booth .btn.go { grid-column: 1 / -1; grid-row: 3; justify-self: end; }
}

/* ---------- 3회 상영(2026-12-01 B안): 1회차 자막 없이 · 2회차 영어 자막 · 3회차 우리말 자막 (배역 말하기는 '내가 주인공' 단계) ---------- */
/* 자막 없이 · 우리말 자막 회차에는 말풍선을 숨긴다(자리는 그대로 재어 두어 회차를 바꿔도 화면이 움직이지 않음) */
.talk-stage .screen[data-sub="none"] .bubble, .talk-stage .screen[data-sub="none"] .tails,
.talk-stage .screen[data-sub="ko"] .bubble, .talk-stage .screen[data-sub="ko"] .tails { visibility: hidden; }
.talk-stage .ko-cap { pointer-events: none; }
.talk-stage .ko-cap .ko { display: block; margin: 0; font-size: 16px; line-height: 1.45; color: var(--on-stage); }
@media (min-width: 860px) { .talk-stage .ko-cap .ko { font-size: 18px; } }
/* 세 회차를 다 보면 '다음 단계'가 하나뿐인 불빛 단추가 되고, 재생 단추는 테두리만 남는다 */
.talk-stage .btn.go.ready { border-color: var(--lamp); background: var(--lamp); color: var(--lamp-ink); }
.talk-stage .btn.go.ready:hover { background: var(--lamp-hi); }
.talk-stage .btn-hero.play.calm { background: transparent; color: var(--lamp); box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--lamp) 70%, transparent); }
.talk-stage .btn-hero.play.calm:hover { background: color-mix(in srgb, var(--lamp) 12%, transparent); }
.talk-stage .btn-hero.play.calm.on { outline: none; }

/* ---------- 2026-12-01 검증 반영 ---------- */
/* 회차 이름(1회차 · 2회차 · 3회차)은 장면 보기 안의 본문 글자: 16px */
.talk-stage .pass b { font-size: 16px; }


/* 재생 전 스크린 위 띠: 빈 검은 줄 대신 상영 안내(회차 · 장면 이름 · 할 일). 재생이 시작되면 사라지고 그 자리는 말풍선 몫 */
.talk-stage .marquee { position: absolute; z-index: 1; left: 0; right: 0; top: 0; height: var(--band, 0px); display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 4px;
  padding: 0 16px; text-align: center; pointer-events: none; opacity: 0; transition: opacity var(--motion-t) var(--motion-e); }
.talk-stage .screen.pre .marquee { opacity: 1; }
.talk-stage .screen:has(.banner.show) .marquee { opacity: 0; }
.talk-stage .marquee b { font-size: 14px; font-weight: 500; letter-spacing: .02em; color: var(--lamp); }
.talk-stage .marquee .mq-t { font-size: 18px; font-weight: 600; color: var(--on-stage); line-height: 1.3; }
.talk-stage .marquee .mq-h { display: none; font-size: 16px; color: var(--on-stage-sub); line-height: 1.4; }
.talk-stage .marquee.roomy .mq-h { display: block; } /* 띠가 넉넉할 때만 할 일 한 줄 더 */
/* 띠가 얇을 때: 한 줄 — 회차 · 장면 이름만 */
.talk-stage .marquee.thin { flex-direction: row; gap: 12px; white-space: nowrap; overflow: hidden; }
.talk-stage .marquee.thin b, .talk-stage .marquee.thin .mq-t { font-size: 16px; line-height: 1.2; }
.talk-stage .marquee.thin .mq-h { display: none; }
@media (prefers-reduced-motion: reduce) { .talk-stage .marquee { transition: none; } }

/* ---------- 이야기: 오늘의 상황 한 줄(2026-12-01) — 무대 맨 위, 스크린 바로 위. 글만(소리 없음) ---------- */
.talk-stage .story-setup { margin: 0 0 12px; padding: 2px 6px 12px; border-bottom: 1px solid var(--night-line); }
@media (max-width: 560px) { .talk-stage .story-setup { padding: 4px 6px 10px; margin-bottom: 10px; } }
/* 상황 줄이 무대 위에 한 줄 더 생긴 만큼(약 64px) 스크린을 화면 키에 맞춰 줄여, PC 에서 조종석이 첫 화면 안에 남게 */
.area-talk:has(.story-setup) { --scr: min(100%, calc((100svh - 456px) * 16 / 9)); }
