/* 에이전트 모션 (16초) — 1280×800 무대를 그리고 화면 폭에 맞춰 줄인다 */
.film { position: relative; width: 100%; aspect-ratio: 16 / 10; overflow: hidden; background: var(--tint); border-radius: 18px; }
.film__stage { position: absolute; left: 0; top: 0; width: 1280px; height: 800px; transform-origin: 0 0; font-family: var(--sans); color: var(--ink); }

.fw { position: absolute; left: 80px; top: 48px; width: 1120px; height: 640px; background: #fff; border: 1.5px solid var(--line); border-radius: 22px; overflow: hidden; transform-origin: 50% 50%; }
.fw__bar { height: 60px; display: flex; align-items: center; gap: 10px; padding: 0 24px; border-bottom: 1.5px solid var(--line); }
.fw__bar i { width: 13px; height: 13px; border-radius: 50%; background: var(--line); }
.fw__bar b { margin-left: 14px; font-size: 18px; font-weight: 700; color: var(--ink-2); }
.fw__bar small { font-size: 16px; color: var(--ink-3); font-weight: 500; }
.fchip { margin-left: auto; display: flex; align-items: center; gap: 9px; background: var(--tint); border-radius: 99px; padding: 8px 16px; font-size: 16px; font-weight: 700; white-space: nowrap; }
.fchip em { width: 10px; height: 10px; border-radius: 50%; background: var(--blue); }
.fchip.is-done em { background: #5BA80F; }

.fp { position: absolute; top: 84px; }
.fp h4 { font-size: 20px; font-weight: 800; display: flex; justify-content: space-between; padding-bottom: 12px; border-bottom: 2px solid var(--ink); margin: 0; }
.fp h4 small { font-size: 16px; color: var(--ink-3); font-weight: 600; }
.fco { left: 32px; width: 300px; }
.fco__row { position: relative; display: grid; grid-template-columns: 74px 1fr; align-items: center; height: 54px; border-bottom: 1.5px solid var(--line); font-size: 17px; }
.fco__row span { color: var(--ink-3); }
.fco__row b { font-size: 20px; font-weight: 700; justify-self: start; padding: 2px 6px; margin-left: -6px; border-radius: 5px; }
.fco__row i { position: absolute; left: 74px; width: 110px; height: 10px; border-radius: 5px; background: var(--tint); }
.fscan { position: absolute; left: -12px; right: -12px; height: 54px; background: rgba(49,88,230,.07); border-bottom: 2.5px solid var(--blue); pointer-events: none; }

.fnt { left: 364px; width: 380px; }
.fnt__row { position: relative; height: 92px; padding: 18px 14px 0; margin: 0 -14px; border-radius: 10px; }
.fnt__row b { font-size: 19px; font-weight: 700; display: block; }
.fnt__bar { position: relative; height: 9px; border-radius: 5px; background: var(--line); margin-top: 14px; width: 290px; }
.fnt__bar i { position: absolute; inset: 0 auto 0 0; border-radius: 5px; background: var(--blue); }
.fnt__row em { position: absolute; right: 14px; bottom: 22px; font: 800 20px/1 var(--display); font-style: normal; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.fnt__row.is-top em { color: var(--blue); }
.fnt__hl { position: absolute; inset: 0; border-radius: 10px; background: var(--accent, #E8FF2E); transform-origin: 0 50%; z-index: -1; }

.fdoc { left: 776px; width: 312px; top: 76px; height: 476px; border: 1.5px solid var(--line); border-radius: 12px; padding: 18px 20px; background: #fff; }
.fdoc h4 { border-bottom: 1.5px solid var(--line); font-size: 19px; }
.fdoc__p { margin-top: 16px; }
.fdoc__ln { height: 10px; border-radius: 5px; background: #C9CED6; margin-top: 11px; }
.ftag { display: inline-block; margin-top: 12px; background: var(--blue); color: #fff; font-size: 14px; font-weight: 800; border-radius: 99px; padding: 5px 13px; transform-origin: 0 50%; }

.flinks { position: absolute; inset: 0; pointer-events: none; overflow: visible; }
.flinks path { fill: none; stroke: var(--blue); stroke-width: 2; stroke-dasharray: 5 6; }

.fhint { position: absolute; left: 0; right: 0; top: 250px; text-align: center; }
.fhint b { display: block; font: 800 34px/1.3 var(--display); color: var(--ink-3); }
.fhint span { display: block; margin-top: 10px; font-size: 18px; color: var(--ink-3); }

.fin { position: absolute; left: 0; right: 0; bottom: 0; height: 76px; border-top: 1.5px solid var(--line); display: flex; align-items: center; padding: 0 24px 0 32px; font-size: 20px; font-weight: 500; }
.fin__t { white-space: nowrap; overflow: hidden; }
.fin__c { width: 2px; height: 26px; background: var(--blue); margin-left: 2px; }
.fin__send { margin-left: auto; width: 42px; height: 42px; border-radius: 50%; background: var(--line); display: grid; place-items: center; }
.fin__send svg { width: 20px; height: 20px; }

.ftoast { position: absolute; left: 230px; right: 230px; bottom: 100px; height: 96px; background: #fff; border: 2px solid var(--ink); border-radius: 16px; display: flex; align-items: center; padding: 0 24px 0 28px; gap: 16px; box-shadow: 0 18px 40px rgba(14,24,40,.12); }
.ftoast div { flex: 1; }
.ftoast b { display: block; font-size: 21px; }
.ftoast span { font-size: 17px; color: var(--ink-2); }
.ftoast__btn { font-size: 18px; font-weight: 700; border-radius: 10px; padding: 12px 18px; border: 1.5px solid var(--line); background: #fff; }
.ftoast__ok { background: var(--accent, #E8FF2E); border-color: transparent; color: var(--ink); display: flex; align-items: center; gap: 8px; }
.ftoast__ok svg { width: 20px; height: 20px; }

.fcur { position: absolute; left: 0; top: 0; display: flex; align-items: flex-start; gap: 2px; pointer-events: none; z-index: 5; }
.fcur svg { width: 30px; height: 30px; filter: drop-shadow(0 2px 3px rgba(0,0,0,.18)); }
.fcur span { margin-top: 24px; font-size: 15px; font-weight: 800; color: #fff; border-radius: 99px; padding: 5px 12px; }
.fcur--agent svg path { fill: var(--blue); } .fcur--agent span { background: var(--blue); }
.fcur--human svg path { fill: var(--ink); } .fcur--human span { background: var(--ink); }
.fripple { position: absolute; width: 60px; height: 60px; margin: -30px 0 0 -30px; border-radius: 50%; border: 3px solid var(--blue); pointer-events: none; z-index: 4; }

/* 강조 프레임: 창 위에 흰 막을 깔고 핵심 문구를 크게 */
/* 흐림(backdrop-filter)은 쓰지 않는다 — Safari 가 투명할 때도 매 프레임 다시 계산해 화면이 멈춘다 (2026-10-30) */
.fveil { position: absolute; inset: 0; background: rgba(255,255,255,.94); z-index: 6; }
.fbig { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; z-index: 7; pointer-events: none; }
.fbig p { margin: 0; font: 800 112px/1.12 var(--display); letter-spacing: -.035em; }
.fbig .ln { display: block; overflow: hidden; padding: 0 .05em .06em; }
.fbig .ln > span { display: inline-block; }
.fbig .bl { color: var(--blue); }
.fbig .mk { background: linear-gradient(transparent 58%, var(--accent, #E8FF2E) 58%, var(--accent, #E8FF2E) 94%, transparent 94%); }
.fbig small { display: block; margin-top: 22px; font: 700 30px/1.3 var(--sans); color: var(--ink-2); letter-spacing: -.01em; }
.fbig .num { font-size: 300px; line-height: .9; color: var(--blue); font-variant-numeric: tabular-nums; }
.fbig .pills { display: flex; gap: 16px; justify-content: center; margin-top: 30px; }
.fbig .pills span { font: 800 40px/1 var(--display); padding: 18px 28px; border-radius: 99px; background: var(--ink); color: #fff; }
.fbig .pills span:nth-child(2) { background: var(--blue); }
.fbig .pills span:nth-child(3) { background: var(--accent, #E8FF2E); color: var(--ink); }
.fbig .tagbig { display: inline-block; font: 800 64px/1 var(--display); color: #fff; background: var(--blue); border-radius: 99px; padding: 16px 36px; margin-bottom: 26px; }

.fdots { position: absolute; inset: 0; width: 1280px; height: 800px; z-index: 8; pointer-events: none; }
.fend { position: absolute; left: 0; right: 0; top: 640px; text-align: center; font: 800 44px/1.3 var(--display); letter-spacing: -.02em; z-index: 9; margin: 0; }
.fcap { position: absolute; left: 0; right: 0; top: 712px; text-align: center; font-size: 26px; font-weight: 700; z-index: 3; margin: 0; }
.film.no-cap .fcap { display: none; }

/* 조작 막대 */
.fctl { display: flex; align-items: center; gap: 14px; margin-top: 14px; font-size: 14px; }
.fctl button { font: 600 14px/1 var(--sans); padding: 9px 14px; border-radius: 8px; border: 1px solid var(--line); background: #fff; cursor: pointer; color: var(--ink); }
.fctl input[type="range"] { flex: 1; accent-color: var(--blue); }
.fctl output { font-variant-numeric: tabular-nums; color: var(--ink-3); min-width: 72px; text-align: right; }

/* 녹화 모드 (?rec): 무대만 화면 가득 */
.rec body { margin: 0; overflow: hidden; }
.rec .fpage > :not(.film) { display: none; }
.rec .film { position: fixed; left: 0; top: 0; width: 1280px; height: 800px; border-radius: 0; }

/* 장면 전환 */
.fwipe { position: absolute; inset: 0; background: var(--blue); z-index: 7.5; z-index: 8; opacity: 0; transform: scaleX(0); transform-origin: 0 50%; }
.fbig--num .ln { overflow: visible; }
.fbig--num .num { display: inline-block; transform-origin: 50% 50%; }
