/* s0x.css · 0 첫 화면 + 사건 방(10-24 · 갈래 Build s0). lab-s0.html 이 home.css · frame.css · s0x.css · s1.css 넷만 부름(s0.css·film.css 대신).
   바닥선 = css/s0.css(승인판 84c4114 첫 화면 치수 · 엔진 layout 과 같은 식)를 옮기고, 시연 자리를 '사건 방'으로 새로 짬.
     cap('1' 높이) = 폭 × 33.4%(최대 657) · 폰(무대 폭 700 미만) 33.85%(최대 236) · 글자 높이 H = cap × 1.02086 · 무대 높이 = 12 + H · 글자 윗선 = 무대 위 + 6
     폰 폭 520 미만 = '100' / '%' 두 줄(--hr = min(42.5% 폭, 210) · 글자 전체 높이 T = --hr × 2.05535)
   사건 방(#case-replay): 앉은 뒤 위 끝 = '100%' 글자 아래 23.5%(폰 11%)를 덮는 자리. 판 = 종이 #fffdf9 · 먹 1.5px 테 · 반경 18. 그림자·흐림·그라디언트·반투명 0.
     1280 이상 = 판 넷(재생 막대 · 본 판 결과서 · 위성 대화 · 위성 기록 · 위성 첫 말) · 1024~1279 = 판 셋(기록 = 본 판 위 가로 끈) · 768~1023 = 판 둘 · 767 이하 = 한 장
     원근(스크롤에 묶임 · js/s0x-ui.js + js/s0x-cam.js): .s0x-room perspective 1600 · 원근 시작점 50% −20% · .s0x-tilt 뒤로 누움 34°(폰 22°) → 0. 앉으면 변형 0(글 선명).
   글자(C2) 56 / 24 / 20 / 16 / 15 / 14 · 굵기 400·600·720 · 반경(C3) 판 18 · 띠 48 · 단추 12 · 칩 999 · 말풍선 16 · 탭 위 14 · 0<r<8 = 0.
   색 = home.css 토큰(--page --paper --sand --clay --line --ink --ink2 --sub --muted --fl-text) + 깃발 RIB 색(js/draw.js RIB 와 같은 값)만.
   CSS 움직임 이름 = logo-flow · hero-sink · au-breathe · au-blink(home.css) 넷만 씀. 나머지 움직임은 JS(rAF · transform). */

.s0 {
  --gut: max(40px, (100cqw - 1360px) / 2);
  --cap: min(33.4cqw, 657px);
  position: relative;
  container-type: inline-size;
  color: var(--ink);
  padding-bottom: 72px;
}
.s0-sr, .s0x-sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }

/* ── 글 묶음(바닥선 그대로): 눈썹(H1 첫 줄) · 큰 제목 · 이야기 문장 · 단추 둘 + 약속 칩 셋 · 두 줄 ── */
.s0-intro { padding: 24px var(--gut) 0; }
#cf-hero-title { margin: 0; font: inherit; }
#cf-hero-title > span:first-child { display: block; font-size: 16px; line-height: 22px; font-weight: 600; letter-spacing: -.005em; color: var(--ink); }
#cf-hero-title > span:last-child { display: block; margin-top: 10px; font-size: 56px; line-height: 64px; font-weight: 400; letter-spacing: -.03em; color: var(--ink); }
.s0-lede { margin: 14px 0 0; max-width: 1180px; font-size: 24px; line-height: 34px; font-weight: 400; letter-spacing: -.02em; color: var(--ink2); }
.s0-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-top: 24px; }
.s0-btns { display: flex; flex-wrap: wrap; gap: 10px; }
.s0-solid, .s0-line { display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; height: 48px; padding: 0 22px; border-radius: 12px; font-size: 16px; font-weight: 600; letter-spacing: -.01em; text-decoration: none; white-space: nowrap; -webkit-tap-highlight-color: transparent; }
.s0-solid { background: var(--ink); color: var(--page); }
.s0-line { border: 1.5px solid var(--ink); background: var(--page); color: var(--ink); }
.s0-solid:focus-visible, .s0-line:focus-visible { outline: 2.5px solid var(--fl-text); outline-offset: 3px; }
.s0-chips { display: flex; flex-wrap: nowrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.s0-chips li { display: inline-flex; align-items: center; box-sizing: border-box; height: 32px; padding: 0 14px; border-radius: 999px; background: var(--sand); font-size: 14px; line-height: 1; font-weight: 600; letter-spacing: -.01em; white-space: nowrap; color: var(--ink2); user-select: none; -webkit-user-select: none; }
.s0-notes { display: flex; flex-wrap: wrap; gap: 6px 28px; margin-top: 14px; }
.s0-notes p { margin: 0; font-size: 16px; line-height: 24px; font-weight: 400; letter-spacing: -.01em; color: var(--ink2); }
.s0-notes strong { font-weight: 600; color: var(--ink); }
.s0-notes a { display: inline-block; padding: 10px 0; margin: -10px 0; color: var(--ink); font-weight: 600; text-decoration: underline; text-decoration-thickness: 1px; text-decoration-color: var(--muted); text-underline-offset: 3px; -webkit-tap-highlight-color: transparent; }
.s0-notes a:hover { text-decoration-color: currentColor; }
.s0-notes a:focus-visible { outline: 2.5px solid var(--fl-text); outline-offset: -6px; border-radius: 8px; }
.s0-status { margin: 12px 0 0; font-size: 15px; line-height: 22px; font-weight: 600; color: var(--fl-text); }
.s0-status:empty { display: none; }

/* ── 그림 상자: 로고 띠 + 꽃 '100%' + 리본 친구 ── */
.s0-art { position: relative; margin-top: 26px; }
.s0-flow { position: relative; z-index: 2; }
.s0-flow-label { margin: 0 0 8px; padding: 0 var(--gut); font-size: 14px; line-height: 20px; font-weight: 600; letter-spacing: -.005em; color: var(--sub); }
.s0-flow-win { box-sizing: border-box; height: 37px; margin: 0; padding: 5px 0; overflow: hidden; }
.s0-flow-track { display: flex; width: max-content; height: 27px; animation: logo-flow 41.6s linear infinite; }
.s0-flow ul { display: flex; align-items: center; gap: 42px; margin: 0; padding: 0 42px 0 0; list-style: none; }
.s0-flow li { display: flex; flex: none; align-items: center; height: 27px; color: var(--ink); }
.s0-flow svg { display: block; flex: none; overflow: visible; fill: currentColor; }
.s0-flow li[data-id="x"] { margin: 0 -11px; }
@keyframes logo-flow { to { transform: translateX(-50%); } }
.s0[data-paused] .s0-flow-track, .s0[data-offscreen] .s0-flow-track { animation-play-state: paused; }
.s0[data-still] .s0-flow-track, .is-still .s0 .s0-flow-track { animation: none; }
/* 이 첫 화면 움직임 멈춤(로고 띠 · 꽃 · 친구 · 시연) · JS 가 붙으면 보임. 누름 44 · 원 999 */
.s0-motion { position: absolute; z-index: 4; top: -12px; right: calc(var(--gut) - 4px); display: grid; width: 44px; height: 44px; place-items: center; padding: 0; border: 0; border-radius: 999px; background: none; color: var(--ink); cursor: pointer; -webkit-tap-highlight-color: transparent; }
.s0-motion[hidden] { display: none; }
.s0-motion::before { content: ""; position: absolute; inset: 6px; border-radius: 999px; background: var(--sand); }
.s0-motion:hover::before, .s0-motion:active::before { background: var(--line); }
.s0-motion:focus-visible { outline: 2.5px solid var(--fl-text); outline-offset: -2px; }
.s0-motion > span { position: relative; box-sizing: border-box; width: 10px; height: 12px; border-left: 3.5px solid currentColor; border-right: 3.5px solid currentColor; }
.s0-motion[aria-pressed="true"] > span { width: 0; height: 0; margin-left: 3px; border-left: 10px solid currentColor; border-right: 0; border-top: 6px solid transparent; border-bottom: 6px solid transparent; }

/* 꽃 무대: 높이 = 12 + H(엔진 layout 과 같은 값). 윤곽(빈 화분) = 옅은 모래 · 자람이 끝나면 숨김 */
.s0-stage { position: relative; z-index: 1; height: calc(12px + var(--cap) * 1.02086); margin-top: 36px; overflow-x: clip; touch-action: pan-y; }
.s0-sil { position: absolute; top: 6px; left: calc(6.25cqw - 331 * var(--cap) / 1448); width: calc(4363.3 * var(--cap) / 1448); height: calc(var(--cap) * 1.02086); fill: var(--sand); overflow: visible; }
.s0-stage[data-painted] .s0-sil, .s0-stage[data-painted] .s0-sil2 { visibility: hidden; }
.s0-stage noscript img, .s0-stage img.still { position: absolute; left: 0; top: 0; width: 100%; height: auto; }
.s0 .hg-sink { position: absolute; inset: 0 auto auto 0; width: 100%; }
.s0 .hg-canvas { display: block; }
/* 자람 동안: 엔진 화면 캔버스는 숨기고(같은 화소를 원판 단위로 옮겨 그리는) 자람 캔버스가 보임 */
.s0-stage.is-growing .hg-canvas, .s0-stage.is-painting .hg-canvas { visibility: hidden; }
.s0x-cv { position: absolute; left: 0; top: 0; pointer-events: none; }
.s0x-cv[hidden] { display: none; }

/* 리본 친구 겹: z 3 = 꽃(1) 위 · 사건 방(6) 아래(1279 이하 넘겨주기 = 방 판 뒤). 1280 이상은 주황 친구가 방 안에서 일함 → z 7(방 위) */
.s0-crit { position: absolute; z-index: 3; left: 0; top: 0; width: 100%; height: 100%; pointer-events: none; }
.s0-crit:not([data-ready]) { visibility: hidden; }
.s0 .au-crit-layer { position: absolute; left: 0; top: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.s0 .au-crit-layer svg.au-crit-svg { position: absolute; left: 0; top: 0; overflow: visible; }
.s0 .au-crit-layer text { font-family: var(--au-sans, inherit); font-weight: 720; }
.s0 .au-crit .au-look { transition: transform .3s ease-out; }
@media (min-width: 1280px) { .s0-crit { z-index: 7; } }

/* ── 엔진 배치 경계(무대 폭 700 미만 = 엔진 폰 배치) ── */
.s0-sil2, .s0-ptag { display: none; }
@container (width < 700px) {
  .s0-art, .s0x-room { --cap: min(33.85cqw, 236px); }
  .s0x-room { --s0-cover: .125; }
  .s0-sil { left: calc(6.28cqw - 331 * var(--cap) / 1448); }
}
@container (width < 520px) {
  .s0-art, .s0x-room { --hr: min(44cqw, 210px); }
  .s0-stage { height: calc(12px + var(--hr) * 2.05535); }
  .s0-sil { visibility: hidden; }
  .s0-sil2 { display: block; position: absolute; top: 6px; left: calc(50% - var(--hr) * 1.09943); width: calc(var(--hr) * 2.19886); height: calc(var(--hr) * 2.05535); fill: var(--sand); overflow: visible; }
  .s0x-room { --s0-cover: .11; margin-top: calc(-6px - var(--s0-cover) * var(--hr) * 2.05535); }
  .s0-ptag { display: block; position: absolute; z-index: 2; top: calc(100% - var(--hr) - 2px); left: var(--gut); right: calc(50% + var(--hr) * .33808 + 10px); margin: 0; text-align: right; word-break: keep-all; text-wrap: balance; font-size: 14px; line-height: 20px; font-weight: 600; letter-spacing: -.02em; color: var(--ink); }
  .s0-ptag strong { display: block; margin-bottom: 4px; font-size: 15px; font-weight: 600; }
  .s0-ptag a { display: inline-block; padding: 12px 0; margin: -12px 0; color: var(--ink); text-decoration: underline; text-decoration-thickness: 1px; text-decoration-color: var(--muted); text-underline-offset: 3px; -webkit-tap-highlight-color: transparent; }
  .s0-ptag a:focus-visible { outline: 2.5px solid var(--fl-text); outline-offset: 2px; border-radius: 8px; }
  .s0-notes p:last-child { display: none; }
}

/* ══ 사건 방 ═════════════════════════════════════════════════════════════════════════════════ */
/* 수리(10-24 s0): 방 상자 = 판 틀(.s0x-tilt 640) + 그 아래 '가상 예시' 한 벌(#case-replay 안 · content-check R7 짝) → 방 높이는 auto, 판 높이는 틀이 가짐
   원근 시작점 = 틀 높이의 −20%(px 로 고정 · 방 상자가 '가상 예시' 줄만큼 길어져도 원근 그대로) */
.s0x-room {
  --s0-cover: .235; --tilt-h: 640px;
  --rib-green: #11784a; --rib-green-f: #06391f; --rib-orange: #c04c10; --rib-orange-f: #5f2304; --rib-red: #b9302e; --rib-red-f: #5e1112;
  position: relative; z-index: 6; box-sizing: border-box;
  width: min(1360px, 100cqw - 80px); height: auto;
  margin: calc(-6px - var(--s0-cover) * var(--cap) * 1.02086) auto 0;
  perspective: 1600px; perspective-origin: 50% calc(var(--tilt-h) * -.2);
  font-size: 16px; line-height: 1.5; color: var(--ink);
}
.s0x-tilt { position: relative; height: var(--tilt-h); transform-origin: 50% 100%; transform-style: preserve-3d; }
.s0x-tilt.is-flat { transform-style: flat; }
.s0x-p { position: absolute; box-sizing: border-box; background: var(--paper); border: 1.5px solid var(--ink); border-radius: 18px; overflow: hidden; }
.s0x-mk { flex: none; width: 20px; height: 20px; fill: var(--fl); }

/* 재생 막대(#hero-report-controls): 본 판 위에 붙은 모래 띠 · 위 반경 18 · 지금 장 이름 · 장 5칸 · 멈춤 44(JS) · 오른쪽 끝 = 기록 위성 왼쪽 10px 앞(멈춤 단추가 위성 밑에 숨는 일 0)
   '바로 상담'은 뺌(content-check R9 옛 단추 이름 · 채운 카톡 단추는 첫 화면 몫) */
.s0x-bar { position: absolute; z-index: 2; left: 16.5%; width: calc(60.56% - 10px); top: 0; height: 48px; box-sizing: border-box; display: flex; align-items: center; gap: 12px; padding: 0 10px 0 18px; background: var(--sand); border: 1.5px solid var(--ink); border-bottom: 0; border-radius: 18px 18px 0 0; }
.s0x-cap { flex: none; min-width: 40px; margin: 0; font-size: 14px; line-height: 20px; font-weight: 600; color: var(--ink); }
.s0x-segs { flex: 1; display: flex; gap: 6px; margin: 0; padding: 0; list-style: none; min-width: 0; }
.s0x-segs li { flex: 1; display: flex; min-width: 0; }
.s0x-seg { position: relative; flex: 1; display: flex; align-items: center; height: 44px; margin: 0; padding: 0; border: 0; background: none; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.s0x-seg::before { content: ""; position: absolute; left: 0; right: 0; top: 19px; height: 6px; border-radius: 999px; background: var(--line); }
.s0x-seg i { position: absolute; left: 0; right: 0; top: 19px; height: 6px; border-radius: 999px; background: var(--ink); clip-path: inset(0 0 0 0 round 999px); }
.s0x-seg:not(.is-done):not(.is-on) i { clip-path: inset(0 100% 0 0 round 999px); }
.s0x-seg:focus-visible { outline: 2.5px solid var(--fl-text); outline-offset: -4px; border-radius: 12px; }
/* 멈춤 단추(JS 가 붙임) = 막대 오른쪽 끝 절대 자리 · JS 판은 처음부터 그 자리를 비워 둠(.s0x-js · 붙여도 장 칸이 줄지 않음 → 배치 이동 0) */
.s0x-room.s0x-js .s0x-bar { padding-right: 64px; }
.s0x-room.s0x-js .s0x-list { top: 0; bottom: auto; }
.s0x-bar .s0x-pp { position: absolute; top: 2px; right: 10px; }
.s0x-pp { flex: none; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 999px; background: none; color: var(--ink); cursor: pointer; -webkit-tap-highlight-color: transparent; }
.s0x-pp svg { width: 16px; height: 16px; fill: currentColor; }
.s0x-pp .s0x-play, .s0x-pp.is-paused .s0x-pause { display: none; }
.s0x-pp.is-paused .s0x-play { display: block; }
.s0x-pp:hover { background: var(--line); }
.s0x-pp:focus-visible { outline: 2.5px solid var(--fl-text); outline-offset: -2px; }
.s0x-now { flex: none; display: inline-flex; align-items: center; height: 44px; padding: 0 8px; border-radius: 12px; color: var(--ink); font-size: 14px; font-weight: 600; text-decoration: underline; text-decoration-thickness: 1.5px; text-decoration-color: var(--fl); text-underline-offset: 4px; }
.s0x-now:focus-visible { outline: 2.5px solid var(--fl-text); outline-offset: -2px; }

/* 본 판 = 1차 검토 결과서(#consult-demo) */
.s0x-main { z-index: 1; left: 14.7%; width: 69.1%; top: 48px; height: 532px; }
/* 안쪽 글 자리 = 위성이 덮는 몫을 비킴(왼쪽 대화 0.103W = 본 판 폭의 14.9% · 오른쪽 기록 0.0674W = 9.75%) → 위성 아래 숨는 글 0 */
.s0x-in { position: absolute; inset: 0; box-sizing: border-box; padding: 26px calc(9.75% + 24px) 24px calc(14.9% + 28px); transform-origin: 0 0; }
.s0x-dh { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; font-size: 20px; line-height: 28px; font-weight: 720; letter-spacing: -.018em; }
.s0x-dt { display: inline-block; }
.s0x-dl { margin: 0; }
.s0x-dl dt { margin: 0 0 4px; font-size: 14px; line-height: 20px; font-weight: 600; color: var(--sub); }
.s0x-dl dd { margin: 0; font-size: 16px; line-height: 24px; font-weight: 400; color: var(--ink); }
.s0x-addr dd { display: grid; gap: 8px; }
.s0x-a { display: flex; align-items: center; box-sizing: border-box; height: 44px; padding: 0 16px; border-radius: 12px; background: var(--sand); font-size: 16px; font-weight: 600; letter-spacing: -.005em; }
.s0x-cells { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; margin-top: 16px; }
/* 다 쓴 칸 = 우리가 쓴 글 = 우리 말풍선과 같은 살구(--clay) · 손님이 준 주소 줄 = 모래(--sand)
   수리(10-24 s0 · 반박 1 '둘째 화면 흰 칸·와이어 느낌'): 칸은 쓰기 전에도 살구 채움(안내 글 --ink2) → 쓰는 칸만 먹 1.5 테 · 흰 빈 칸 0 */
.s0x-cells .s0x-f { box-sizing: border-box; min-height: 104px; padding: 14px 16px; border-radius: 16px; border: 1.5px solid transparent; background: var(--clay); }
.s0x-cells .s0x-f dt { color: var(--ink2); }
.s0x-route { display: flex; align-items: center; gap: 16px; margin-top: 16px; min-height: 44px; }
.s0x-route dt { margin: 0; }
/* 안내 글과 값은 같은 칸(grid 한 자리)에 겹쳐 둠 → 안내 ↔ 값이 바뀌어도 칸 높이 그대로(배치 이동 0 · CLS 0) */
.s0x-room.s0x-js .s0x-dl dd[data-ph] { display: grid; align-items: center; justify-items: start; }
.s0x-room.s0x-js .s0x-dl dd[data-ph]::before { content: attr(data-ph); grid-area: 1 / 1; color: var(--ink2); visibility: hidden; }
.s0x-room.s0x-js .s0x-dl dd[data-ph] > span { grid-area: 1 / 1; }
.s0x-room.s0x-js .s0x-cells dd[data-ph] { align-items: start; }
/* 손그림 리본 칩(검색엔진 삭제·비노출 요청) = RIB orange · 높이 36 · 잡은 끝 + V 꼬리(clip-path 모양 · 매듭은 JS 그림) */
.s0x-rib { position: relative; display: inline-flex; align-items: center; height: 36px; padding: 0 40px 0 16px; background: var(--rib-orange); color: var(--page); font-size: 15px; font-weight: 600; letter-spacing: -.01em; white-space: nowrap;
  clip-path: polygon(0 4px, 100% 0, calc(100% - 16px) 50%, 100% 100%, 0 calc(100% - 4px)); }
.s0x-rib::after { content: ""; position: absolute; left: 0; top: 4px; bottom: 4px; width: 1.5px; background: var(--rib-orange-f); }

/* 위성 1 = 카톡 대화 */
.s0x-chat { z-index: 3; left: 0; width: 25%; top: 96px; height: 424px; }
.s0x-ph { display: flex; align-items: center; gap: 8px; box-sizing: border-box; height: 44px; margin: 0; padding: 0 16px; background: var(--sand); font-size: 16px; line-height: 1; font-weight: 720; letter-spacing: -.01em; -webkit-user-select: none; user-select: none; }
.s0x-ph b { font-weight: 720; }
.s0x-view { position: absolute; left: 0; right: 0; top: 44px; bottom: 68px; overflow: hidden; }
.s0x-list { position: absolute; left: 0; right: 0; bottom: 0; margin: 0; padding: 8px 14px 6px; list-style: none; }
.s0x-list > li { display: flex; margin-top: 8px; }
.s0x-list > li.s0x-c { justify-content: flex-end; }
.s0x-b { max-width: 84%; box-sizing: border-box; margin: 0; padding: 10px 14px; border-radius: 16px; font-size: 16px; line-height: 24px; letter-spacing: -.01em; overflow-wrap: anywhere; word-break: keep-all; }
.s0x-c .s0x-b { background: var(--sand); color: var(--ink); }
.s0x-u .s0x-b { background: var(--clay); color: var(--ink); }
.s0x-ad { max-width: 100%; font-weight: 600; word-break: break-all; }   /* 수리(10-24): 주소 끝 '/sample'(날짜형 숫자 대신) 이 1024 대화 칸에서 'sampl|e' 로 끊기던 일 0 — 주소 말풍선만 칸 끝까지 */
.s0x-u .s0x-card { max-width: 92%; padding: 12px 14px 4px; background: var(--paper); border: 1.5px solid var(--ink); }
/* 카드 제목: 마크 + '1차 검토 결과서가 나왔어요.' 한 줄 글(flex 로 두면 '결과서'와 '가' 사이에 틈이 생김 → 글 흐름 그대로) */
.s0x-ct { display: block; margin: 0; font-size: 16px; line-height: 24px; font-weight: 600; }
.s0x-ct .s0x-mk { display: inline-block; width: 18px; height: 18px; margin-right: 8px; vertical-align: -3px; }
.s0x-ck { display: inline-block; }
.s0x-fold { display: none; }
.s0x-go { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink); font-size: 15px; font-weight: 600; text-decoration: underline; text-decoration-thickness: 1.5px; text-decoration-color: var(--fl); text-underline-offset: 4px; }
.s0x-input { position: absolute; left: 12px; right: 12px; bottom: 12px; height: 44px; display: flex; align-items: center; gap: 8px; }
.s0x-field { position: relative; flex: 1; display: flex; align-items: center; min-width: 0; height: 44px; box-sizing: border-box; padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--page); font-size: 16px; overflow: hidden; white-space: nowrap; }
.s0x-iph { color: var(--muted); }
.s0x-typed { color: var(--ink); font-weight: 600; }
.s0x-typed:empty { display: none; }
/* 수리(CLS 0.0001 · 입력 글이 오른쪽 맞춤이라 글이 늘 때마다 글 상자가 옆으로 밀림): 왼쪽 맞춤(주소 22자 ≈ 190px < 칸 236px) */
.s0x-field.is-typing { justify-content: flex-start; }
.s0x-field.is-typing .s0x-iph { display: none; }
.s0x-field.is-typing::after { content: ""; flex: none; width: 1.5px; height: 20px; margin-left: 2px; background: var(--ink); }
.s0x-send { flex: none; position: relative; width: 40px; height: 40px; border-radius: 999px; background: var(--ink); }
.s0x-send::before { content: ""; position: absolute; left: 50%; top: 50%; width: 0; height: 0; margin: -6px 0 0 -4px; border-left: 10px solid var(--page); border-top: 6px solid transparent; border-bottom: 6px solid transparent; }

/* 위성 2 = 사건 기록(세로 끈 x 34 · 꼭대기 펜던트 '공식 절차만' · 깃발 다섯) */
.s0x-rec { z-index: 4; left: 77.06%; width: 22.94%; top: 0; height: 400px; }
.s0x-rec::before { content: ""; position: absolute; left: 33px; top: 44px; bottom: 18px; width: 2.2px; border-radius: 999px; background: var(--clay); }
.s0x-rh { padding-left: 64px; }
.s0x-pend { position: absolute; left: 34px; top: 56px; margin: 0; }
.s0x-pend b, .s0x-r b { position: relative; display: inline-flex; align-items: center; box-sizing: border-box; height: 40px; padding: 0 44px 0 34px; color: var(--page); font-size: 15px; font-weight: 600; letter-spacing: -.01em; white-space: nowrap; }
.s0x-pend b { height: 34px; padding: 0 38px 0 36px; font-size: 14px; background: var(--rib-orange); clip-path: polygon(0 3px, 100% 0, calc(100% - 13px) 50%, 100% 100%, 0 calc(100% - 3px)); }
.s0x-rows { position: absolute; left: 34px; right: 10px; top: 106px; margin: 0; padding: 0; list-style: none; }
.s0x-r { display: block; height: 40px; margin: 0 0 18px; }
.s0x-r b { max-width: 100%; background: var(--rib); clip-path: polygon(0 4px, 100% 0, calc(100% - 16px) 50%, 100% 100%, 0 calc(100% - 4px)); }
.s0x-r[data-rib="green"] { --rib: var(--rib-green); }
.s0x-r[data-rib="orange"] { --rib: var(--rib-orange); }
.s0x-r[data-rib="red"] { --rib: var(--rib-red); }
/* JS 가 붙으면 깃발 몸통 = SVG(물결 · 매듭 · film-kit flag) · 글은 HTML 그대로 위에 */
.s0x-room.is-live .s0x-r b, .s0x-room.is-live .s0x-pend b { background: none; clip-path: none; }
.s0x-flags { position: absolute; left: 0; top: 0; overflow: visible; pointer-events: none; }
.s0x-r b, .s0x-pend b { z-index: 1; }

/* 위성 3 = 카톡에 보낼 첫 말 */
.s0x-first { z-index: 3; left: 66.18%; width: 25%; top: 452px; height: 188px; }
.s0x-fh { font-size: 14px; font-weight: 600; }
.s0x-ft { display: grid; gap: 2px; margin: 0; padding: 10px 16px 0; font-size: 16px; line-height: 24px; color: var(--ink); }
/* 수리(반박 3 CLS): '> span' 만(글 쓰기 판 writer 의 안쪽 두 조각까지 block 이 되어 쓰는 동안 줄이 하나 늘던 것 · 24px 밀림) */
.s0x-ft > span { display: block; white-space: nowrap; overflow: hidden; }
.s0x-fa { display: flex; align-items: center; gap: 10px; margin: 0; padding: 0 16px; }
.s0x-open { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink); font-size: 16px; font-weight: 600; text-decoration: underline; text-decoration-thickness: 2px; text-decoration-color: var(--fl); text-underline-offset: 5px; }
.s0x-open:focus-visible, .s0x-go:focus-visible { outline: 2.5px solid var(--fl-text); outline-offset: 2px; border-radius: 8px; }
.s0x-st:empty, .s0x-ast:empty { display: none; }
.s0x-st { font-size: 14px; color: var(--sub); }

/* 폰 전용 카톡 단추 줄(데스크톱 = 첫 화면 채운 단추가 그 몫) */
.s0x-act { display: none; }

/* 끌기 손잡이(위성 머리 44 · pointer:fine 1280 이상) */
@media (min-width: 1280px) and (pointer: fine) {
  .s0x-room.is-live [data-sat] > .s0x-ph { cursor: grab; touch-action: none; }
  .s0x-room.is-live [data-sat].is-drag > .s0x-ph { cursor: grabbing; }
}

/* JS 판(움직이는 판) 꾸밈: 결과서 칸 테 · 쓰는 칸 · 안내 글 · 닦아냄 · 커서 · 비행 복제
   칸 = 늘 살구(쓰기 전·쓰는 중·다 씀) · 쓰는 칸만 먹 1.5 테 · 주소 줄 = 빈 동안에도 모래 띠(글만 비움) */
.s0x-room.is-live .s0x-cells .s0x-f.is-on { border-color: var(--ink); }
.s0x-room.is-live .s0x-a.is-empty { color: transparent; }
.s0x-room.s0x-js.is-live .s0x-dl dd[data-ph].is-hint::before { visibility: visible; }
.s0x-room.is-live dd.is-hint > span { visibility: hidden; }
/* 첫 그리기 전(.s0x-js · 모듈이 붙기 전 0~0.5s) = 시연 0초 판과 같은 모습(반박 8 '불러온 직후 끝 판이 보였다 지워짐' 0)
   · 대화 = 앞 네 풍선 · 막대 = 빈 칸 · 주소 줄 = 빈 모래 띠 · 칸 = 안내 글 · 요청 경로 = 안내 글 · 깃발 = 묶기 전(옅은 리본 · 먹 글) · 펜던트 숨김 */
.s0x-room.s0x-js:not(.is-live) .s0x-list > li:nth-child(n+5) { visibility: hidden; }
.s0x-room.s0x-js:not(.is-live) .s0x-seg i { clip-path: inset(0 100% 0 0 round 999px); }
.s0x-room.s0x-js:not(.is-live) .s0x-a { color: transparent; }
.s0x-room.s0x-js:not(.is-live) .s0x-dl dd[data-ph]::before { visibility: visible; }
.s0x-room.s0x-js:not(.is-live) .s0x-dl dd[data-ph] > span { visibility: hidden; }
.s0x-room.s0x-js:not(.is-live) .s0x-pend { visibility: hidden; }
.s0x-room.s0x-js:not(.is-live) .s0x-r b { background: color-mix(in srgb, var(--rib) 60%, var(--page)); color: var(--ink); }
.s0x-room.s0x-js:not(.is-live) .s0x-cap { color: transparent; }
/* 묶기 전 깃발(JS 판) = 옅은 리본(film-kit flag tone 0) 위 먹 글 · 묶이면 짙은 리본 위 크림 글 */
.s0x-room.is-live .s0x-r.is-wait b { color: var(--ink); }
.s0x-wipe { position: absolute; left: 0; top: 0; right: 0; height: 100%; z-index: 9; background: var(--paper); border-bottom: 1.5px solid var(--ink); transform: translateY(-101%); pointer-events: none; }
.s0x-room .fm-cur { position: absolute; left: 0; top: 0; width: 100%; height: 100%; z-index: 12; overflow: visible; pointer-events: none; }
.s0x-fly { position: absolute; left: 0; top: 0; z-index: 11; margin: 0; pointer-events: none; white-space: nowrap; transform-origin: 0 0; }
.s0x-fly.s0x-a { width: auto; }
.s0x-fly.is-title { display: flex; align-items: center; gap: 10px; font-size: 20px; line-height: 28px; font-weight: 720; letter-spacing: -.018em; color: var(--ink); background: var(--paper); border-radius: 12px; padding: 0 6px; }
.s0x-hide { visibility: hidden !important; }
.s0x-gone { display: none !important; }

/* '가상 예시' 한 벌(쪽 전체에서 이것뿐) · #case-replay 안, 판 틀 바로 아래(수리: 반박 4 · content-check R7 짝 = 방 안) */
.s0x-virtual { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin: 16px 0 0; padding: 0; font-size: 15px; line-height: 22px; color: var(--ink2); }
.s0x-chip { display: inline-flex; align-items: center; height: 28px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--paper); font-size: 14px; font-weight: 600; color: var(--ink); white-space: nowrap; }
.s0x-virtual a { display: inline-flex; align-items: center; min-height: 44px; margin: -11px 0; color: var(--ink); font-weight: 600; text-decoration: underline; text-decoration-thickness: 1px; text-decoration-color: var(--muted); text-underline-offset: 3px; }
.s0x-virtual a:focus-visible { outline: 2.5px solid var(--fl-text); outline-offset: 2px; border-radius: 8px; }

/* ── 1024~1279: 판 셋(본 판 0.18W 에서 시작·폭 0.82W · 대화 0.30W · 기록 = 본 판 위 가로 끈 · 첫 말 = 끝 상태에 대화 입력 줄 자리) ── */
@media (min-width: 1024px) and (max-width: 1279px) {
  .s0 { --gut: 32px; }
  .s0x-room { width: calc(100cqw - 64px); --tilt-h: 640px; }
  .s0x-bar { left: 22%; width: 74%; }
  .s0x-main { left: 18%; width: 82%; top: 48px; height: 592px; }
  .s0x-in { padding: 86px 28px 24px calc(14.6% + 24px); }
  .s0x-chat { left: 0; width: 30%; top: 108px; height: 470px; }
  .s0x-rec { left: calc(18% + 1.5px); width: calc(82% - 3px); top: 49.5px; height: 64px; border: 0; border-radius: 0; background: transparent; overflow: visible; z-index: 2; }
  .s0x-first { left: 0; width: 30%; top: 418px; height: 160px; z-index: 5; }
}
/* ── 768~1023: 판 둘(대화 0.40W 가 본 판 왼쪽을 덮음 · 본 판 0.30W 에서 시작 · 기록 = 본 판 위 끈) ── */
@media (min-width: 768px) and (max-width: 1023px) {
  .s0 { --gut: 32px; }
  #cf-hero-title > span:last-child { font-size: 56px; line-height: 64px; }
  .s0x-room { width: calc(100cqw - 64px); --tilt-h: 620px; }
  .s0x-bar { left: 34%; width: 62%; padding-left: 14px; }
  .s0x-now { display: none; }
  .s0x-main { left: 30%; width: 70%; top: 48px; height: 572px; }
  .s0x-in { padding: 82px 20px 18px calc(14.3% + 20px); }
  /* 수리(반박 5 · 768 '요청 경로' 잘림): 칸 = 2열 그대로(1열로 쌓으면 본 판 572 를 넘음) · 칸 안 여백만 줄임 */
  .s0x-dh { margin-bottom: 10px; }
  .s0x-cells { grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
  .s0x-cells .s0x-f { min-height: 0; padding: 10px 12px; }
  .s0x-route { flex-wrap: wrap; gap: 8px; margin-top: 12px; }
  .s0x-chat { left: 0; width: 40%; top: 96px; height: 480px; }
  .s0x-rec { left: calc(30% + 1.5px); width: calc(70% - 3px); top: 49.5px; height: 64px; border: 0; border-radius: 0; background: transparent; overflow: visible; z-index: 2; }
  .s0x-first { left: 0; width: 40%; top: 416px; height: 160px; z-index: 5; }
}
/* 가로 끈 판(1023 이하·1024~1279 · 폰): 머리·펜던트 숨김 · 끈 = 가로 · 깃발 = 끈 위에 매듭 */
@media (max-width: 1279px) {
  .s0x-rec::before { left: 16px; right: 16px; top: 31px; bottom: auto; width: auto; height: 2.2px; }
  .s0x-rh, .s0x-pend { display: none; }
  .s0x-rows { left: 16px; right: 16px; top: 12px; height: 40px; overflow: hidden; display: flex; gap: 14px; }
  .s0x-r { flex: none; margin: 0; }
  .s0x-r:not(:nth-last-child(-n+2)) { display: none; }
  .s0x-room.is-live .s0x-r { position: absolute; left: 0; top: 0; display: block; }
  .s0x-room.is-live .s0x-flags { clip-path: inset(0 4px 0 4px); }
  .s0x-first .s0x-ft { padding-top: 6px; }
}

/* ── 폰(767 이하): 첫 화면 세로 배치 · 사건 방 = 한 장 ── */
@media (max-width: 767px) {
  .s0 { --gut: 16px; display: flex; flex-direction: column; padding-bottom: 40px; }
  .s0-intro, .s0-acts { display: contents; }
  #cf-hero-title { margin: 16px var(--gut) 0; text-align: center; }
  #cf-hero-title > span:first-child { font-size: 16px; line-height: 22px; }
  #cf-hero-title > span:last-child { margin-top: 6px; font-size: 36px; line-height: 44px; font-weight: 600; letter-spacing: -.03em; }
  #cf-hero-title > span:last-child > span:last-child::before { content: "\A"; white-space: pre; }
  .s0-lede { margin: 12px var(--gut) 0; font-size: 16px; line-height: 24px; letter-spacing: -.012em; text-align: center; white-space: nowrap; }
  .s0-btns { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0 18px; margin: 16px var(--gut) 0; }
  .s0-solid { height: 48px; padding: 0 20px; font-size: 16px; }
  .s0-line { height: 48px; padding: 0 2px; border: 0; border-radius: 12px; background: none; font-size: 16px; text-decoration: underline; text-decoration-thickness: 1.5px; text-decoration-color: var(--muted); text-underline-offset: 5px; }
  .s0-status { margin: 8px var(--gut) 0; text-align: center; }
  .s0-art { order: 1; margin-top: 16px; }
  .s0x-room { order: 2; }
  .s0x-virtual { order: 2; }
  .s0-chips { order: 3; justify-content: center; flex-wrap: wrap; gap: 5px; margin: 24px var(--gut) 0; }
  .s0-chips li { padding: 0 9px; letter-spacing: -.03em; }
  .s0-notes { order: 3; flex-direction: column; align-items: center; gap: 16px; margin: 16px var(--gut) 0; text-align: center; }
  .s0-notes p { font-size: 15px; line-height: 22px; }
  .s0-notes p:first-child a { padding: 18px 0 8px; margin: -18px 0 -8px; }
  .s0-notes p:last-child a { padding: 8px 0 18px; margin: -8px 0 -18px; }
  .s0-flow { display: grid; grid-template-columns: 1fr; }
  .s0-flow-label { margin: 0 0 8px; padding: 0 56px; text-align: center; line-height: 18px; }
  .s0-flow-win { height: 24px; padding: 0; }
  .s0-flow-track { height: 24px; animation-duration: 34.75s; }
  .s0-flow ul { gap: 20px; padding-right: 20px; }
  .s0-flow li { height: 24px; }
  .s0-flow svg { height: 24px; width: auto; }
  .s0-flow li[data-id="x"] { margin: 0 -5px; }
  .s0-motion { top: -13px; right: 6px; }
  .s0-stage { margin-top: 18px; }

  /* 사건 방 한 장: 막대 48 · 기록 끈 띠 52 · 대화 · 카톡 단추 줄 80. 판을 덮는 층 0 */
  .s0x-room { width: calc(100cqw - 32px); --tilt-h: 560px; perspective: 1400px; perspective-origin: 50% calc(var(--tilt-h) * -.1); }
  .s0x-tilt { box-sizing: border-box; background: var(--paper); border: 1.5px solid var(--ink); border-radius: 18px; overflow: hidden; }
  .s0x-bar { left: 0; right: 0; width: auto; top: 0; height: 48px; padding: 0 2px 0 6px; gap: 0; border: 0; border-radius: 0; }
  .s0x-cap, .s0x-now { display: none; }
  .s0x-segs { gap: 0; }
  /* 수리(10-24 · galaxy #4): 장 칸·멈춤 = 48(기운 판 원근으로 360 은 0.986배 · 390 첫 화면 누운 판 0.94배 → 실효 ≥ 45 · 44 이면 43.4·41.3) */
  .s0x-segs li { flex: 0 0 48px; }
  .s0x-seg { width: 48px; height: 48px; flex: none; justify-content: center; }
  .s0x-seg::before, .s0x-seg i { left: 17px; right: 17px; top: 18px; height: 12px; }
  .s0x-room.s0x-js .s0x-bar { padding-right: 52px; }
  .s0x-bar .s0x-pp { top: 0; right: 2px; width: 48px; height: 48px; }
  .s0x-p { border: 0; border-radius: 0; }
  .s0x-main { display: none; }
  .s0x-rec { left: 0; right: 0; width: auto; top: 48px; height: 52px; background: var(--paper); border-bottom: 1px solid var(--line); overflow: hidden; }
  .s0x-rec::before { left: 12px; right: 12px; top: 25px; }
  .s0x-rows { left: 12px; right: 12px; top: 6px; }
  .s0x-r:not(:last-child) { display: none; }
  .s0x-chat { left: 0; right: 0; width: auto; top: 100px; bottom: 80px; height: auto; background: var(--paper); }
  .s0x-chat > .s0x-ph, .s0x-input { display: none; }
  .s0x-view { top: 0; bottom: 0; }
  .s0x-list { padding: 6px 12px 10px; }
  .s0x-b { max-width: 86%; }
  .s0x-u .s0x-card { max-width: 100%; width: 288px; padding: 12px 14px 2px; }
  .s0x-fold { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin: 10px 0 2px; transform-origin: 50% 0; }
  .s0x-fold p { margin: 0; box-sizing: border-box; min-height: 72px; padding: 8px 10px; border-radius: 12px; background: var(--clay); }
  .s0x-fold b { display: block; font-size: 14px; line-height: 20px; font-weight: 600; color: var(--ink2); }
  .s0x-fold p > span { display: block; font-size: 16px; line-height: 22px; letter-spacing: -.01em; }
  .s0x-first { left: 0; right: 0; width: auto; top: auto; bottom: 80px; height: auto; padding-bottom: 2px; border-top: 1.5px solid var(--ink); z-index: 5; }
  .s0x-first .s0x-ph { height: 40px; }
  /* 카톡 단추 줄 = 방의 아래 띠(앱의 바닥 띠처럼). 방 아래 끝이 화면 밖이면 화면 바닥에 붙어 따라 올라옴(position: sticky)
     · 올라올 수 있는 끝 = 방 위에서 196px(margin-top) → 막대·기록 띠는 덮지 않음 · 방이 화면에 반 넘게 보이는 모든 자리에서 채운 카톡 단추가 다 보임
     · 독은 이 단추(data-dock-yield)가 보이면 물러남 → 채운 단추 둘 0. sticky 가 화면 기준으로 돌게 방 틀은 overflow: clip(스크롤 틀 아님) */
  .s0x-tilt { display: flex; flex-direction: column; justify-content: flex-end; overflow: clip; }
  .s0x-act { display: flex; flex-direction: column; justify-content: center; position: sticky; flex: none; bottom: 0; margin-top: 196px; height: 80px; box-sizing: border-box; padding: 0 16px; background: var(--paper); border-top: 1px solid var(--line); z-index: 6; }
  .s0x-cta { width: 100%; height: 48px; min-height: 48px; }
  .s0x-ast { margin: 4px 0 0; text-align: center; }
  .s0x-virtual { margin-top: 14px; justify-content: center; text-align: center; font-size: 15px; }
  /* 정지 판(JS 꺼짐 · 모션 줄이기 · ?still=1 = .s0x-js 없음): 판 넷을 위→아래 흐름으로(겹침 0 · 반박 14 '390 결과서 카드가 중간에서 잘림')
     막대 48 → 기록 띠 52 → 대화(끝 판: 결과서 카드부터 · 앞 풍선 열 개는 화면 밖 글로 남김 = 읽기 도구·검색엔진은 다 읽음) → 첫 말 상자 → 카톡 단추 줄 */
  .s0x-room:not(.s0x-js) .s0x-tilt { height: auto; justify-content: flex-start; }
  .s0x-room:not(.s0x-js) :is(.s0x-bar, .s0x-rec, .s0x-chat, .s0x-first) { position: relative; inset: auto; flex: none; }
  .s0x-room:not(.s0x-js) .s0x-chat { height: auto; }
  .s0x-room:not(.s0x-js) .s0x-view, .s0x-room:not(.s0x-js) .s0x-list { position: static; }
  .s0x-room:not(.s0x-js) .s0x-list > li:nth-child(-n+10) { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .s0x-room:not(.s0x-js) .s0x-act { position: relative; margin-top: 0; }
  .s0x-room:not(.s0x-js) .s0x-bar { order: -2; } .s0x-room:not(.s0x-js) .s0x-rec { order: -1; }
}
/* 폰 움직이는 판은 .s0x-js 일 때만 sticky 카톡 띠(정지 판은 흐름 안 단추 줄) */
@media (max-width: 1279px) { .s0x-room.s0x-js:not(.is-live) .s0x-r:not(:first-child) { visibility: hidden; } .s0x-room.s0x-js:not(.is-live) .s0x-r:first-child { display: block; } }
/* JS 꺼짐: 꽃 정지 그림(noscript)이 보이면 모래 윤곽은 숨김(반박 14 '정지 그림 뒤 윤곽이 어긋나 이중 그림자') */
.s0-stage:has(noscript img) :is(.s0-sil, .s0-sil2) { display: none; }

/* ── 움직임(모션 줄이기 = 정지 판) ── */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: scroll()) {
    /* 폰 두 줄의 '%' 꼬리표도 꽃과 같이 가라앉음(꽃 '1' 발이 꼬리표 글 위로 내려와 겹치는 일 0) */
    .s0-stage, .s0-crit, .s0-ptag { animation: hero-sink linear both; animation-timeline: scroll(root block); animation-range: 0px 80vh; }
    .s0[data-still] .s0-stage, .s0[data-still] .s0-crit, .s0[data-still] .s0-ptag, .is-still .s0 .s0-stage, .is-still .s0 .s0-crit, .is-still .s0 .s0-ptag { animation: none; }
  }
  .s0 .au-crit .au-breathe { animation: au-breathe 3.8s ease-in-out infinite; animation-delay: var(--au-br, 0s); }
  .s0 .au-crit .au-eyes { transform-box: fill-box; transform-origin: 50% 50%; animation: au-blink 4s ease-in-out infinite; }
  .s0[data-paused] .au-crit :is(.au-breathe, .au-eyes), .s0[data-offscreen] .au-crit :is(.au-breathe, .au-eyes) { animation-play-state: paused; }
  .s0[data-still] .au-crit :is(.au-breathe, .au-eyes) { animation: none; }
  .s0-solid, .s0-line { transition: background-color .3s var(--ease), color .3s var(--ease), text-decoration-color .3s var(--ease); }
  .s0-solid:hover { background: var(--ink2); }
  .s0-line:hover { background: var(--sand); }
  .s0-solid:active, .s0-line:active { transform: scale(.98); }
}
@keyframes hero-sink { to { transform: translate3d(0, 45px, 0); } }
@media (prefers-reduced-motion: reduce) {
  .s0-flow-track { animation: none; }
  .s0 .au-crit .au-look { transition: none; }
}
@media (max-width: 767px) { .s0-solid:hover, .s0-line:hover { background: var(--ink); } .s0-line:hover { background: none; } }
