/* 이야기 극장 — 극장만의 화면 글자·단추 (공통 모양은 /aquarium/aq3d.css) · 줄바꿈 규칙(지침 15-5): 한국어는 낱말 단위로 */
html{background:#24162b}   /* 가운데 16:9 로 그릴 때(home/safe169.css) 양옆 바탕 */
body{margin:0;background:#24162b;overflow:hidden;font-family:"Pretendard","Noto Sans KR","Apple SD Gothic Neo","Malgun Gothic",system-ui,sans-serif;word-break:keep-all}
.a3-btn{box-shadow:0 6px 0 #7a2530}.a3-btn:active{box-shadow:0 3px 0 #7a2530}
.a3-title{text-shadow:0 2px 0 #7a2530}
.a3-card{box-shadow:0 12px 0 #7a2530}.a3-card h1{color:#c8343a}
.a3-hint{box-shadow:0 6px 0 #7a2530;bottom:clamp(16px,3vh,30px)}
.a3-pip{left:16px;top:clamp(70px,9vh,96px);bottom:auto;box-shadow:0 6px 0 #7a2530}
.th-play{margin-top:.6em!important}.th-play b{color:#c8343a}
/* 차례 줄 */
.th-cast{position:absolute;right:16px;top:clamp(70px,9vh,96px);display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end;max-width:calc(var(--vw,1vw)*46)}
.th-cast i{position:relative;font-style:normal;font-size:clamp(18px,calc(var(--vw,1vw)*2.2),34px);width:1.9em;height:1.9em;display:grid;place-items:center;border-radius:50%;background:#fffefb;border:.18em solid var(--c,#ffc93c);opacity:.6}
.th-cast i.now{opacity:1;transform:scale(1.18);box-shadow:0 0 0 .14em #fff}
.th-cast i.done{opacity:.95}.th-cast i s{position:absolute;right:-.2em;bottom:-.25em;font-size:.5em;text-decoration:none;background:#35b36b;color:#fff;border-radius:50%;width:1.5em;height:1.5em;display:grid;place-items:center;font-weight:900}
/* 부르기 판 · 동작 안내 판 */
.th-call,.th-cue{position:absolute;left:50%;transform:translateX(-50%);display:grid;grid-template-columns:auto 1fr;gap:.1em .6em;align-items:center;background:#fffefb;border-radius:32px;padding:.7em 1.2em .9em;box-shadow:0 8px 0 #7a2530;width:min(900px,calc(var(--vw,1vw)*88));box-sizing:border-box;color:#3a1d2a}
.th-call{top:clamp(74px,11vh,120px)}.th-cue{bottom:clamp(70px,10vh,110px)}
.th-call em,.th-cue em{font-style:normal;font-size:clamp(40px,calc(var(--vw,1vw)*6),92px);line-height:1;grid-row:1/3}
.th-call b,.th-cue b{display:block;font-size:clamp(20px,calc(var(--vw,1vw)*2.9),44px);font-weight:900;line-height:1.25}
.th-call span,.th-cue span{display:block;font-size:clamp(14px,calc(var(--vw,1vw)*1.8),27px);font-weight:800;color:#b0475a;min-height:1.2em}
.th-call>i,.th-cue>i{grid-column:1/3;height:clamp(10px,1.4vh,16px);background:#f1dfe0;border-radius:99px;overflow:hidden;margin-top:.5em}
.th-call u,.th-cue u{display:block;height:100%;width:0;background:#ff7a59;border-radius:99px;transition:width .12s linear}
/* 별·숫자는 카드 안 오른쪽 칸에 (2026-11-19 사용자: 카드 밖으로 튀어나옴) */
.th-cue{grid-template-columns:auto 1fr auto}.th-cue>div{grid-column:2;grid-row:1/3}.th-cue>i{grid-column:1/4;grid-row:3}
.th-cue strong{grid-column:3;grid-row:1/3;min-width:1.15em;text-align:center;line-height:1;font-size:clamp(30px,calc(var(--vw,1vw)*4.4),66px);font-weight:900;color:#ff7a59}
.th-rec{position:absolute;left:50%;top:18px;transform:translateX(-50%);background:#e5383b;color:#fff;font-weight:900;font-size:clamp(13px,calc(var(--vw,1vw)*1.4),20px);padding:.35em 1em;border-radius:99px;animation:thRec 1.1s ease-in-out infinite}
@keyframes thRec{50%{opacity:.45}}
/* 고르는 판 (시작 전·끝난 뒤 — 어른이 누름) */
.th-pan{position:absolute;inset:0;display:grid;place-items:center;background:#1a0f20b3;pointer-events:auto;z-index:4}
.th-box{background:#fffefb;border-radius:36px;padding:clamp(18px,calc(var(--vw,1vw)*2.8),40px);box-shadow:0 12px 0 #7a2530;width:min(900px,calc(var(--vw,1vw)*92));box-sizing:border-box;text-align:center;color:#3a1d2a;max-height:94vh;overflow:auto}
.th-box h2{margin:0 0 .3em;font-size:clamp(24px,calc(var(--vw,1vw)*3.4),52px);font-weight:900;color:#c8343a}
.th-nrow{display:flex;align-items:center;justify-content:center;gap:clamp(16px,calc(var(--vw,1vw)*3),44px)}
.th-n{font-size:clamp(70px,calc(var(--vw,1vw)*11),160px);font-weight:900;color:#ff7a59;line-height:1;min-width:1.3em}
.th-pm{width:1.6em;height:1.6em;border-radius:50%;border:0;background:#ffe2d8;color:#c9431f;font-size:clamp(30px,calc(var(--vw,1vw)*4.4),64px)!important;font-weight:900!important;box-shadow:0 6px 0 #e8b3a2}
.th-pm:active{transform:translateY(3px)}
.th-tier{font-size:clamp(18px,calc(var(--vw,1vw)*2.3),34px);font-weight:900;margin:.2em 0}
.th-note{font-size:clamp(13px,calc(var(--vw,1vw)*1.5),22px);font-weight:700;color:#7d5f6b;margin:.4em 0 0}
.th-ok{flex:none!important;margin-top:.7em;padding:.6em 1.6em!important;font-size:clamp(20px,calc(var(--vw,1vw)*2.4),36px)!important}
.th-box .a3-mode.sel{outline:.14em solid #ffc93c;outline-offset:.1em}
.th-box .a3-mode span{line-height:1.35}
.th-btns{display:flex;gap:14px;flex-wrap:wrap;justify-content:center;margin:.9em 0 .4em}
.th-btns .a3-mode{flex:1 1 220px;font-size:clamp(18px,calc(var(--vw,1vw)*2.2),32px);padding:.8em .6em}
.th-save{background:#35b36b!important;box-shadow:0 8px 0 #1f8a4c!important}
@media (max-height:520px){.th-call{top:64px}.th-cue{bottom:56px}.th-call em,.th-cue em{font-size:40px}}
/* 연기하는 모습: 상영 화면 왼쪽 위(캔버스 밖). 저장 영상에는 '연기 모습 포함'을 고른 쪽에만 같은 자리에 그려진다(theater.js compFrame) */
.th-pips{position:absolute;left:1.25%;top:10%;display:flex;gap:calc(var(--vw,1vw)*1);pointer-events:none}
.th-pips canvas{width:calc(var(--vw,1vw)*15);height:auto;display:block}
.th-pips canvas[hidden]{display:none}
.th-back{margin-top:.8em}
/* 작은 화면 (공용 화면 틀 sc-compact, 지침 13-0-8) */
html.sc-compact .a3-title small{display:none}
html.sc-compact #a3 .a3-pip,html.sc-compact .th-cast{top:calc(max(8px,env(safe-area-inset-top)) + 52px)}
html.sc-compact .th-cast i{font-size:18px}
html.sc-compact .th-call,.sc-compact .th-cue{width:min(900px,calc(var(--vw,1vw)*94));border-radius:22px;padding:.5em .9em .7em}
html.sc-compact .th-call{top:calc(max(8px,env(safe-area-inset-top)) + 52px)}
html.sc-compact .th-call em,html.sc-compact .th-cue em{font-size:38px}
html.sc-compact .th-call b,html.sc-compact .th-cue b{font-size:18px}
html.sc-compact .th-box{max-height:calc(100vh - 16px);padding:16px;border-radius:26px}
html.sc-compact .th-btns .a3-mode{flex:1 1 180px;font-size:17px}
html.sc-compact .th-call{left:auto;right:max(10px,env(safe-area-inset-right));transform:none;width:calc(calc(var(--vw,1vw)*100) - 30px - clamp(84px,calc(var(--vw,1vw)*20),150px) - env(safe-area-inset-left) - env(safe-area-inset-right))}   /* 작은 웹캠(왼쪽 위) 옆에 */
/* 작품 (2026-11-18 이야기 하나 = 카드 하나): 주소에 작품이 없을 때의 포스터 고르기 · 작품이 정해졌을 때의 작은 포스터 */
.th-posters{display:grid;grid-template-columns:repeat(auto-fill,minmax(clamp(130px,calc(var(--vw,1vw)*15),190px),1fr));gap:clamp(8px,calc(var(--vw,1vw)*1.2),16px);margin:.7em 0 .3em;max-height:56vh;overflow:auto;padding:4px 4px 12px}
#a3 .th-poster{position:relative;display:flex;flex-direction:column;border-radius:24px;overflow:hidden;background:#fff1ee;border:4px solid #f1dfe0;box-shadow:0 6px 0 #e8cfd1;text-decoration:none;color:#3a1d2a;transition:transform .12s}
#a3 .th-poster:hover,#a3 .th-poster:focus{transform:translateY(-4px);border-color:#c8343a;box-shadow:0 6px 0 #7a2530}
.th-poster img{width:100%;aspect-ratio:4/3;object-fit:cover;display:block}
.th-poster b{font-size:clamp(15px,calc(var(--vw,1vw)*1.5),21px);font-weight:900;padding:.45em .5em .1em;line-height:1.25}
.th-poster i{font-style:normal;font-size:clamp(13px,calc(var(--vw,1vw)*1.2),17px);padding:0 .5em .5em}
.th-now{display:flex;align-items:center;justify-content:center;gap:clamp(12px,calc(var(--vw,1vw)*1.8),24px);margin:.5em 0 .2em;text-align:left}
.th-now img{width:clamp(110px,calc(var(--vw,1vw)*15),190px);aspect-ratio:4/3;object-fit:cover;border-radius:18px;border:4px solid #fffefb;box-shadow:0 5px 0 #e8cfd1}
.th-now .th-play{margin:0!important;display:flex;flex-direction:column;gap:.15em}
.th-now .th-play b{font-size:clamp(22px,calc(var(--vw,1vw)*2.8),40px);line-height:1.2}
#a3 .th-other{font-size:clamp(13px,calc(var(--vw,1vw)*1.4),19px);font-weight:800;color:#b0475a;text-decoration:underline}
#a3 .a3-modes[hidden]{display:none}
html.sc-compact .th-posters{grid-template-columns:repeat(auto-fill,minmax(130px,1fr));max-height:58vh}
@media (max-height:560px){html.sc-compact .th-posters{grid-template-columns:repeat(auto-fill,minmax(150px,1fr));max-height:50vh}html.sc-compact .th-poster img{aspect-ratio:16/9}html.sc-compact .th-now img{width:100px}}
.th-pips{flex-wrap:wrap;max-width:calc(var(--vw,1vw)*50)}.th-pips canvas:first-child:nth-last-child(n+3),.th-pips canvas:first-child:nth-last-child(n+3)~canvas{width:calc(var(--vw,1vw)*11)}

@keyframes thPvPulse{0%,100%{transform:scale(1)}50%{transform:scale(1.08)}}
#a3 .th-pv.pulse{animation:thPvPulse 1s ease-in-out infinite}
/* 미리 보기 단추 (2026-11-20): 오늘의 연극 그림 = 누르면 견본 상영 */
#a3 .th-pv{position:relative;padding:0;border:0;background:none;cursor:pointer;border-radius:18px;line-height:0;flex:none;transition:transform .12s}
#a3 .th-pv:hover,#a3 .th-pv:focus-visible{transform:translateY(-3px) scale(1.03)}
.th-pv i{position:absolute;left:50%;top:44%;transform:translate(-50%,-50%);width:clamp(40px,calc(var(--vw,1vw)*4.6),62px);aspect-ratio:1;border-radius:50%;background:rgba(200,52,58,.92);color:#fff;font-style:normal;font-size:clamp(18px,calc(var(--vw,1vw)*2.2),30px);line-height:1;display:grid;place-items:center;padding-left:.12em;box-shadow:0 4px 0 rgba(90,20,30,.55);border:3px solid #fffefb}
.th-pv span{position:absolute;left:4px;right:4px;bottom:4px;border-radius:0 0 14px 14px;background:rgba(40,14,24,.72);color:#fff;font-weight:900;font-size:clamp(12px,calc(var(--vw,1vw)*1.25),17px);line-height:1.2;padding:.35em .2em;text-align:center;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
/* 어떻게 연기할까요? (2026-11-21) — 연기하는 몸 네 칸 + 주인공 얼굴 두 칸을 한 화면에 */
.th-set h3{margin:.55em 0 .3em;font-size:clamp(15px,calc(var(--vw,1vw)*1.9),28px);font-weight:900;color:#7a2530;text-align:left}
.th-seg{display:grid;grid-template-columns:repeat(4,1fr);gap:clamp(6px,calc(var(--vw,1vw)*1),14px)}
.th-opt{border:0;border-radius:20px;background:#ffe9e0;color:#3a1d2a;padding:.45em .2em;box-shadow:0 5px 0 #e8b3a2;display:flex;flex-direction:column;align-items:center;gap:.1em;font-weight:900;min-width:0}
.th-opt i{font-style:normal;font-size:clamp(22px,calc(var(--vw,1vw)*3),46px);line-height:1.1}
.th-opt b{font-size:clamp(13px,calc(var(--vw,1vw)*1.7),26px);white-space:nowrap}
.th-opt.sel{background:#ffd76a;box-shadow:0 5px 0 #d89a1c;outline:.12em solid #ff9d2e}
.th-set .a3-mode b small{font-size:.62em;font-weight:800;opacity:.8;white-space:nowrap}
.th-set .th-lvnote{min-height:1.4em}
html.sc-compact .th-set h2{font-size:20px;margin:0}
html.sc-compact .th-set h3{margin:.3em 0 .2em}
html.sc-compact .th-set .th-ok{margin-top:.4em}
.th-set .a3-modes{margin:0;gap:clamp(8px,calc(var(--vw,1vw)*1.2),18px)}
.th-set .a3-mode:not(.th-ok){padding:.5em .6em}
.th-set .a3-mode:not(.th-ok) b{font-size:clamp(17px,calc(var(--vw,1vw)*2.3),34px)}
.th-set .a3-mode:not(.th-ok) span{font-size:clamp(11px,calc(var(--vw,1vw)*1.35),20px)}
.th-set .a3-mode[data-f]:not(.sel){opacity:.55}
.th-set .a3-mode[data-f].sel{outline:.2em solid #ffc93c;outline-offset:.12em}
html.sc-compact .th-set .th-note{margin:.15em 0 0;font-size:12px}
html.sc-compact .th-set .th-ok{padding:.35em 1.4em!important;margin-top:.3em}
html.sc-compact .th-set .th-opt{padding:.25em .2em}
/* 🎤 목소리 (2026-11-21, 시험: 대본 voiceRec) — 안 넣기·넣기 + (넣기일 때만) 따로·같이 */
.th-seg[hidden]{display:none}
.th-vrow{display:flex;align-items:center;gap:clamp(8px,calc(var(--vw,1vw)*1.4),20px);margin-top:.55em}
.th-vrow h3{margin:0;white-space:nowrap}
.th-vrow .th-v2{grid-template-columns:repeat(2,1fr);flex:1}
.th-set .th-v2 .th-opt,.th-set .th-vm .th-opt{padding:.4em .3em}
.th-set .th-vm{grid-template-columns:repeat(2,1fr);margin-top:.45em}
.th-set .th-vm .th-opt b{white-space:normal;font-size:clamp(12px,calc(var(--vw,1vw)*1.5),22px);line-height:1.25}
.th-cue.mic{outline:.18em solid #ff5a5a;outline-offset:.12em;animation:thMic 1s ease-in-out infinite}
@keyframes thMic{50%{outline-color:#ffc93c}}
html.sc-compact .th-set .th-vrow{margin-top:.3em}
html.sc-compact .th-set .th-vm{margin-top:.25em}
/* 연기 설정: 이름표를 왼쪽, 고를 것을 오른쪽에 한 줄로(세 줄이 한 화면에 들어가게) — 좁은 세로 화면은 위아래로 */
.th-set h2{font-size:clamp(22px,calc(var(--vw,1vw)*2.9),42px)}
.th-set .th-vrow h3{flex:0 0 clamp(92px,calc(var(--vw,1vw)*13),190px);text-align:left;font-size:clamp(13px,calc(var(--vw,1vw)*1.6),24px)}
.th-set .th-vrow .th-seg,.th-set .th-vrow .a3-modes{flex:1;min-width:0}
.th-set .th-opt{flex-direction:row;justify-content:center;gap:.3em;padding:.4em .2em}
.th-set .th-opt i{font-size:clamp(18px,calc(var(--vw,1vw)*2.2),34px)}
.th-set .th-note{margin:.25em 0 0}
@media (max-width:560px){.th-set .th-vrow{flex-direction:column;align-items:stretch;gap:4px}.th-set .th-vrow h3{flex:none}.th-set .th-opt{flex-direction:column;gap:0}}
.th-set .th-vrow h3{white-space:normal;line-height:1.2}
.th-set .th-opt b{white-space:normal;line-height:1.15;font-size:clamp(12px,calc(var(--vw,1vw)*1.6),24px);min-width:0}
.th-set .th-opt{min-height:2.4em}
html.sc-compact .th-set .th-opt{min-height:0;padding:.22em .2em}
html.sc-compact .th-set h2{font-size:18px}
html.sc-compact .th-set .a3-mode:not(.th-ok){padding:.3em .5em}
html.sc-compact .th-set .th-vrow{margin-top:.22em}
/* 촬영 순서 줄 (2026-11-21): 안내 카드 위에 붙는 작은 알약 줄 — 🎬 장면 n/m · 대사 → 보기 → 연기 → 별. 지금 단계만 진하게, 지난 단계는 ✓ 느낌으로 흐리게 */
.th-cue{overflow:visible}
.th-steps{position:absolute;left:0;right:0;bottom:calc(100% + clamp(6px,1vh,12px));margin:0;padding:0;list-style:none;display:flex;justify-content:center;align-items:center;gap:clamp(4px,calc(var(--vw,1vw)*.7),10px);pointer-events:none}
.th-steps:empty,.th-steps[hidden]{display:none}
.th-steps li{display:flex;align-items:center;gap:.3em;padding:.28em .8em;border-radius:99px;background:rgba(255,254,251,.78);color:#8a6a72;font-weight:900;font-size:clamp(12px,calc(var(--vw,1vw)*1.35),20px);white-space:nowrap;box-shadow:0 3px 0 rgba(122,37,48,.35)}
.th-steps li i{font-style:normal}
.th-steps li.n{background:#7a2530;color:#fff}
.th-steps li.on{background:#ffd76a;color:#3a1d2a;box-shadow:0 3px 0 #d89a1c;transform:scale(1.08)}
.th-steps li.done{opacity:.55}
.th-steps li[data-k]+li[data-k]{margin-left:clamp(8px,calc(var(--vw,1vw)*1),14px);position:relative}
.th-steps li[data-k]+li[data-k]::before{content:"›";position:absolute;left:clamp(-13px,calc(var(--vw,1vw)*-1),-9px);color:#fff;font-weight:900;text-shadow:0 1px 2px rgba(0,0,0,.5)}
.th-cue .th-st3{display:inline;font-size:1.5em;letter-spacing:.08em;color:#f5a400;min-height:0}
.th-best{margin:.2em 0 .5em;font-weight:900;color:#b0475a;font-size:clamp(14px,calc(var(--vw,1vw)*1.7),24px)}
html.sc-compact .th-steps li{font-size:11px;padding:.2em .6em}
@media (max-width:560px){.th-steps li[data-k]:not(.on){padding:.28em .5em}.th-steps li[data-k]:not(.on){font-size:0}.th-steps li[data-k]:not(.on) i{font-size:13px}}
/* 다시 할 때(전체 다시·연기만·녹음만) — 목소리 넣기일 때만 보이는 줄 */
.th-vrow[hidden]{display:none}
.th-set .th-v3{grid-template-columns:repeat(3,1fr)}
.th-set .th-v3 .th-opt{padding:.4em .3em}
html.sc-compact .th-set .th-lvnote{display:none}
html.sc-compact .th-set .th-v3 .th-opt,html.sc-compact .th-set .th-vm .th-opt,html.sc-compact .th-set .th-v2 .th-opt{padding:.2em .3em}
/* 무엇을 할까요? (세 갈래: 연습실·차근차근 촬영·컷컷 촬영) */
.th-way .a3-modes{display:grid;grid-template-columns:repeat(3,1fr);gap:clamp(8px,calc(var(--vw,1vw)*1.4),20px);margin:.8em 0 .2em}
.th-way .a3-mode{min-width:0;padding:.9em .5em}
.th-way .a3-mode.c{background:#57c08a;color:#fff;box-shadow:0 8px 0 #2f8f60;font-size:inherit}
.th-way .a3-mode b{font-size:clamp(17px,calc(var(--vw,1vw)*2.3),34px);white-space:normal;line-height:1.2}
.th-way .a3-mode span{font-size:clamp(11px,calc(var(--vw,1vw)*1.35),20px);white-space:normal;line-height:1.3}
.th-way .a3-mode.sel{outline:.2em solid #ffc93c;outline-offset:.12em}
@media (max-width:560px){.th-way .a3-modes{grid-template-columns:1fr}}
html.sc-compact .th-way .a3-mode{padding:.5em .4em}
/* 끝 판·연습 끝 판의 큰 단추 글자(전에는 물려받은 작은 글자였다) */
.th-box>.a3-modes .a3-mode b{font-size:clamp(17px,calc(var(--vw,1vw)*2.2),32px);line-height:1.2}
.th-box>.a3-modes .a3-mode span{font-size:clamp(11px,calc(var(--vw,1vw)*1.3),19px);line-height:1.3}
/* 녹음 중 (2026-11-21): 빨간 점 깜박임 + 음성 파형(말하는 만큼 막대가 커짐) */
.th-wave{display:block;width:100%;max-width:640px;height:clamp(38px,6.5vh,72px);margin-top:.25em}
.th-wave[hidden]{display:none}
.th-recdot{display:inline-block;width:.75em;height:.75em;border-radius:50%;background:#e5383b;margin-right:.4em;vertical-align:-.05em;animation:thDot 1s steps(2,start) infinite}
@keyframes thDot{50%{opacity:.25}}
.th-cue.mic span{color:#e5383b}
html.sc-compact .th-wave{height:26px}
/* 연기 단계 카드 (2026-11-21): 동작(지문)에 형광펜, 대사는 작고 흐리게 참고로 */
.th-cue.acting b{display:inline;padding:.02em .18em;border-radius:.2em;background:linear-gradient(transparent 52%,#ffe27a 52%);-webkit-box-decoration-break:clone;box-decoration-break:clone}
.th-cue.acting span{margin-top:.25em;color:#a59a9e;font-weight:700;font-size:clamp(12px,calc(var(--vw,1vw)*1.45),21px)}
/* 🤳 들고 찍기(?hold=1): 누르는 큰 단추(대본 띠 위) · 뷰파인더(작은 웹캠 창을 크게, 거울 반전 없이 — 앞 카메라로 바꾸면 다시 거울) · 부르는 카드는 뷰파인더 옆으로 */
.th-touch{position:absolute;left:50%;bottom:clamp(215px,33vh,270px);transform:translateX(-50%);z-index:6;display:flex;gap:18px;flex-wrap:nowrap;justify-content:center;max-width:calc(var(--vw,1vw)*96)}
#a3 .th-tbtn{border:0;border-radius:999px;font:inherit;font-weight:900;font-size:clamp(24px,calc(var(--vw,1vw)*3.4),40px);padding:.55em 1.3em;white-space:nowrap;background:#fffefb;color:#3a1d2a;box-shadow:0 8px 0 #7a2530;cursor:pointer}
#a3 .th-tbtn.b{background:#ff5a4d;color:#fff;box-shadow:0 8px 0 #a3261c}#a3 .th-tbtn:active{transform:translateY(4px);box-shadow:0 4px 0 #7a2530}
html.th-hold .a3-pip{width:clamp(160px,calc(var(--vw,1vw)*24),340px)}
html.th-hold:not(.th-selfie) #a3V{transform:none}
html.th-hold:not(.sc-compact) .th-call{left:auto;right:16px;transform:none;width:min(900px,calc(calc(var(--vw,1vw)*100) - 52px - clamp(160px,calc(var(--vw,1vw)*24),340px)))}
@media (max-height:520px){.th-touch{bottom:150px}.th-tbtn{font-size:22px}}
#a3 .th-tbtn{display:inline-flex;align-items:center;gap:.35em}#a3 .th-tbtn img{width:1.5em;height:1.5em;object-fit:contain;margin:-.25em 0}
/* 대본·부르는 카드 = 유리 카드 + 테두리 글씨 (2026-11-26 사용자: 카드는 아주 많이 비치게, 글자는 테두리를 둘러 눈에 확 띄게 · 이야기마을에도 같이)
   바탕은 옅은 어둠(18%)에 흰 테두리 선만 — 뒤의 무대가 거의 그대로 보인다. 글씨는 흰색 + 짙은 자줏빛 테두리(paint-order 로 글자 밖으로만) + 그림자. 문장마다 줄을 바꾼다(theater.js breakLines → \n, pre-line) */
.th-call,.th-cue{background:rgba(42,20,32,.18);-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px);box-shadow:0 0 0 2.5px rgba(255,255,255,.55),0 10px 26px rgba(20,8,14,.28);color:#fff}
.th-call b,.th-cue b{white-space:pre-line;color:#fff;paint-order:stroke fill;-webkit-text-stroke:.2em #3a1426;stroke-linejoin:round;text-shadow:0 .06em .1em rgba(20,6,12,.85),0 0 .5em rgba(20,6,12,.55);letter-spacing:.01em;line-height:1.3}
.th-call span,.th-cue span{white-space:pre-line;color:#ffe59a;paint-order:stroke fill;-webkit-text-stroke:.24em #3a1426;stroke-linejoin:round;text-shadow:0 .06em .1em rgba(20,6,12,.8)}
.th-cue.mic span{color:#ffb3b3}
.th-call em,.th-cue em,.th-cue strong{filter:drop-shadow(0 .04em .06em rgba(20,6,12,.6))}
.th-call>i,.th-cue>i{background:rgba(255,255,255,.3);box-shadow:0 0 0 1.5px rgba(58,20,38,.45)}
.th-cue.acting b{background:linear-gradient(transparent 64%,rgba(255,190,20,.9) 64%)}
.th-cue .th-st3{-webkit-text-stroke:0;color:#ffc21a}
@supports not (paint-order:stroke){ .th-call b,.th-cue b,.th-call span,.th-cue span{-webkit-text-stroke:0;text-shadow:-2px -2px 0 #3a1426,2px -2px 0 #3a1426,-2px 2px 0 #3a1426,2px 2px 0 #3a1426,0 -3px 0 #3a1426,0 3px 0 #3a1426,-3px 0 0 #3a1426,3px 0 0 #3a1426} }
#thCall span,#thCue span{color:#ffe59a}#thCue.mic span{color:#ffb3b3}#thCue .th-st3{color:#ffc21a}
/* 찍는 동안의 두 줄 카드: 🗣 말해요(대사) / 🙆 몸으로(동작) + 노래방 글자 색칠 (2026-11-26) */
.th-rows{display:grid;gap:.35em}.th-rows[hidden]{display:none}.th-cue.rows>div>b{display:none}
.th-row{display:grid;grid-template-columns:auto 1fr;gap:.1em .7em;align-items:center;position:relative}
.th-row>i{font-style:normal;font-weight:900;font-size:clamp(12px,calc(var(--vw,1vw)*1.35),20px);padding:.25em .7em;border-radius:99px;white-space:nowrap;color:#fff;background:#2f7fd6;box-shadow:0 0 0 2px rgba(255,255,255,.6);align-self:start;margin-top:.35em}
.th-row.do>i{background:#e8742c}
.th-row p{margin:0;font-weight:900;font-size:clamp(20px,calc(var(--vw,1vw)*2.9),44px);line-height:1.28;color:#fff;paint-order:stroke fill;-webkit-text-stroke:.2em #3a1426;stroke-linejoin:round;text-shadow:0 .06em .1em rgba(20,6,12,.85)}
.th-row.do p{font-size:clamp(17px,calc(var(--vw,1vw)*2.3),34px);color:#ffe0c2}
#thSayTxt span{color:#fff;-webkit-text-stroke:inherit;paint-order:inherit;text-shadow:inherit;display:inline;font-size:inherit;min-height:0;white-space:pre;transition:color .08s}
#thSayTxt span.on{color:#ffd21a}
.th-row small{grid-column:2;font-size:clamp(12px,calc(var(--vw,1vw)*1.4),20px);font-weight:800;color:#ffe59a;paint-order:stroke fill;-webkit-text-stroke:.24em #3a1426;min-height:0}.th-row small:empty{display:none}
.th-row.dim p{opacity:.55;font-size:clamp(15px,calc(var(--vw,1vw)*1.9),28px)}.th-row.dim>i{opacity:.6;background:#6b7890}
#thSayMic{grid-column:2;display:block;height:6px;border-radius:99px;background:#6fe08a;width:0;max-width:60%;transition:width .08s;box-shadow:0 0 0 1.5px rgba(58,20,38,.5)}#thSayMic[hidden]{display:none}
html.sc-compact .th-row p{font-size:17px}html.sc-compact .th-row.do p{font-size:15px}
.th-lvchip{position:absolute;left:6px;bottom:6px;right:6px;width:max-content;max-width:calc(100% - 12px);background:rgba(20,10,16,.72);color:#fff;font-weight:900;font-size:clamp(11px,calc(var(--vw,1vw)*1.2),17px);padding:.25em .7em;border-radius:99px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.th-lvchip[hidden]{display:none}.th-lvchip.no{background:#d64545}
/* 두 줄 카드가 칸을 넘지 않게(2026-11-26 사용자): 낱말 사이에서 줄을 접고, 글자를 조금 줄인다 */
.th-cue>div,.th-row,.th-row p{min-width:0}.th-row p{overflow-wrap:anywhere;font-size:clamp(18px,calc(var(--vw,1vw)*2.5),38px)}.th-row.do p{font-size:clamp(16px,calc(var(--vw,1vw)*2.05),30px)}
#thSayTxt span{white-space:normal}#thSayTxt span.w{display:inline-block;white-space:nowrap}
.th-cue.rows{width:min(1040px,calc(var(--vw,1vw)*92))}
/* 바깥(주일학교 예배 진행)이 연극만 크게 볼 때: 위쪽 줄을 숨겨 연극과 자막만 (2026-12-04) */
html.th-cine .a3-top{display:none!important}
