/* ws-story.css — workstart.co.kr 첫 화면 「스크롤하면 영상이 감기는 장면 소개」 (2026-11-29 · 갈래 ws-landing-1129)
   원본: 세인 홈페이지 /workstart/ 시안 2판(갈래 ws-intro-1128 · src/css/ws-story.css, 대표가 보고 고친 최종판 de30c97).
   짜임 · 자리 값은 원본 그대로(romean.com 첫 페이지를 1440 · 1280 · 390 에서 잰 값), 색 · 글꼴 · 단추는 이 페이지(index.html :root)의
   Workstart 토큰으로 바꿨다 — 세인 흑백 · 어두운 판은 가져오지 않는다(Workstart 는 늘 밝음).
   원본에서 이미 고친 것 그대로: 장면 한 칸 높이 폰 75svh · 마우스 기기 150svh.
   sloplint 면제 — 56: 장면 화면(.wsx-view)은 일부러 유리 머리줄(.top) 밑에 깔린다(로미안 짜임) ·
   62: 장면 글 · 카드 일곱 중 첫째는 html 에서부터 .on 이라 스크립트 없이도 보인다(나머지는 스크롤해야 바뀌는 칸) */
:root {
  --wsx-clay: #E4E4E7;                                              /* 점토 영상 바탕(영상 · 그림이 오기 전) */
  --wsx-scrim: rgba(255, 255, 255, .88); --wsx-scrim-0: rgba(255, 255, 255, 0);
  --wsx-dot: rgba(60, 60, 67, .32);
  --wsx-ease: cubic-bezier(.22, 1, .36, 1);
  --hd-h: 64px;                                                     /* 머리줄(.top-in) 높이와 같게 */
  /* 화면 카드 속 = Workstart 앱 밝은 판(ws-unify.css) */
  --wd-bg: #FFFFFF; --wd-s2: #F7F7F8; --wd-s3: #F2F2F5; --wd-line: rgba(60, 60, 67, .12); --wd-line2: rgba(60, 60, 67, .2);
  --wd-t: #1C1C1E; --wd-t2: #48484A; --wd-t3: #636366; --wd-acc: #BF4A26; --wd-acc-soft: rgba(214, 92, 52, .11); --wd-acc-ink: #9A3A1B;
  --wd-ok: #1F7A45; --wd-ok-soft: #E6F4EA; --wd-warn: #A35A00; --wd-warn-soft: #FCEEDD; --wd-bad: #C4213F; --wd-bad-soft: #FDEBEE; --wd-info-soft: #E8F1FB; --wd-info: #11568C;
  --wd-bar: rgba(255, 255, 255, .92); --wd-sh: 0 28px 70px -14px rgba(0, 0, 0, .34);
  --wd-c9: rgba(0, 0, 0, .06); --wd-c10: rgba(0, 0, 0, .16); --wd-c11: rgba(255, 255, 255, .78); --wd-c12: rgba(0, 0, 0, .3);
  --wd-on: #FDFDFD; --wd-c14: rgba(0, 0, 0, .7); --wd-c15: rgba(0, 0, 0, .04); --wd-c16: rgba(0, 0, 0, .35); --wd-c17: rgba(0, 0, 0, .22);
}

/* 머리줄이 장면 위에 겹친다 — 장면은 페이지 맨 위(0)부터 */
.wsx { --k: 1; --cx: 64px; position: relative; margin-top: calc(-1 * var(--hd-h)); }
.wsx-track i { display: block; height: 75svh; }
@media (hover: hover) and (pointer: fine) { .wsx-track i { height: 150svh; } }   /* 휠 마우스는 한 칸에 많이 내려가 장면이 휙 지나감 → 컴퓨터만 두 배(원본 11-29) */
.wsx-track { margin-top: -100svh; pointer-events: none; }
/* 마지막 장면(7/7)도 화면에 붙어 있게 꼬리 칸(2026-11-29) — 없으면 장면 7이 시작될 때 이미 화면이 위로 빠져서(폰은 처음부터) 글이 머리줄 밑으로 잘렸다.
   꼬리 = 100svh − 장면 한 칸의 40% → 장면 7을 60%까지 붙인 채로 본다(영상은 50%에서 끝난다). 둥근 판(.after)이 그 뒤에 올라온다 */
.wsx-track::after { content: ""; display: block; height: 70svh; }
@media (hover: hover) and (pointer: fine) { .wsx-track::after { height: 40svh; } }
.wsx-view { position: sticky; top: 0; height: 100svh; overflow: hidden; background: var(--bg); }

/* 영상 · 정지 그림 — 11-30 대표 「이미지가 너무 커서 보기 불편 · 배경이 보이게 · 해상도 떨어지는 느낌」:
   화면을 꽉 채워 늘리지 않고, 16:9 그림 한 장 크기의 상자(.wsx-media)를 글 · 앱 카드와 겹치지 않는 자리에 둔다.
   상자 자리(--ax --ay --aw --ah)는 ws-story.js layout() 이 화면 크기 · 기기 배율로 잰다(원본보다 크게 그리지 않는다).
   JS 가 오기 전에도 보이게 값마다 바탕값을 둔다. */
.wsx-media { position: absolute; left: var(--ax, 38%); top: var(--ay, 22%); width: var(--aw, 34vw); height: var(--ah, calc(34vw * 9 / 16)); overflow: hidden; border-radius: 20px; background: var(--wsx-clay); box-shadow: 0 24px 60px -28px var(--wd-c12), 0 0 0 1px var(--wd-c9); }
.wsx-media picture, .wsx-media img, .wsx-v { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; }
.wsx-still { opacity: 0; }
.wsx-poster, .wsx-v, .wsx-still { transition: opacity .4s; }
.wsx-v { opacity: 0; }
.wsx.is-ready .wsx-v { opacity: 1; }
.wsx.is-ready .wsx-poster { opacity: 0; }
.wsx.is-still .wsx-poster { opacity: 0; }
.wsx.is-still .wsx-still.on { opacity: 1; }
.wsx-scrim { display: none; }   /* 글이 그림 위에 얹히지 않으므로 흰 막은 쓰지 않는다(11-30) */

/* 장면 글 — 로미안 1440: x64 · 폭 480 · 제목 49px · 본문 23.8px · 칩 높이 34 · 세로 가운데 */
.wsx-copies { position: absolute; inset: 0; pointer-events: none; }
.wsx-copy { position: absolute; left: var(--cx); top: var(--cty, 50%); width: var(--ctw, min(480px, 34vw)); transform: translateY(calc(-50% + 16px)); opacity: 0; transition: opacity .45s, transform .45s var(--wsx-ease); }
.wsx-copy.on { opacity: 1; transform: translateY(-50%); pointer-events: auto; }
.wsx-num { font-size: .6875rem; color: var(--text-3); letter-spacing: .04em; font-variant-numeric: tabular-nums; }
.wsx-eb { margin-top: 20px; font-size: .8125rem; font-weight: 700; color: var(--accent-ink); }
.wsx-h { margin-top: 12px; font-size: clamp(1.75rem, 3.83vw, 3.0625rem); line-height: 1.06; font-weight: 700; letter-spacing: -.035em; color: var(--text); }
.wsx-d { margin-top: 18px; font-size: clamp(1rem, 1.86vw, 1.4875rem); line-height: 1.5; color: var(--text-2); }
.wsx-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0 0; }
.wsx-chips li { display: inline-flex; align-items: center; min-height: 34px; padding: 7px 14px; border: 1px solid var(--line-2); border-radius: var(--r-ctl); background: var(--wd-c11); font-size: .8125rem; font-weight: 600; color: var(--text-2); }
.wsx .price-line { margin-top: 20px; background: var(--wd-c11); }
.wsx-act { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 18px; }
.wsx .note { margin-top: 10px; }

/* Google Play 배지 — 구글 공식 한국어 배지 그림 그대로(색 · 비율 바꾸지 않음). 그림 안에 투명 여백이 들어 있어 높이만 정한다 */
.gp { display: inline-flex; align-items: center; min-height: 44px; border-radius: 10px; }
.gp img { display: block; width: auto; height: 60px; max-width: none; }
.wsx-gp { margin-top: 6px; margin-left: -8px; }

/* 화면 카드 — 로미안 1440: 오른쪽 74px · 폭 518(=36vw) · 세로 가운데. 기본 크기 460 에 --k 배율 */
.wsx-proofs { position: absolute; inset: 0; pointer-events: none; }
/* 카드 자리(--px --py = 배율을 곱한 카드의 왼쪽 위) · 크기(--k)도 layout() 이 잰다 */
.wsx-proof { position: absolute; left: var(--px, calc(100% - 580px)); top: var(--py, 22%); width: 460px; transform-origin: 0 0; transform: translateY(14px) scale(var(--k)); opacity: 0; transition: opacity .5s, transform .5s var(--wsx-ease); }
.wsx-proof.on { opacity: 1; transform: scale(var(--k)); pointer-events: auto; }
.wd { overflow: hidden; border-radius: 14px; background: var(--wd-bg); box-shadow: var(--wd-sh), 0 0 0 1px var(--wd-c9); color: var(--wd-t); font-size: 14px; line-height: 1.45; text-align: left; letter-spacing: -0.01em; }
.wd p { margin: 0; }
.wd-bar { display: flex; align-items: center; gap: 6px; height: 31px; padding: 0 12px; background: var(--wd-bar); border-bottom: 1px solid var(--wd-line); }
.wd-bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--wd-c10); }
.wd-bar span { margin: 0 auto; padding: 2px 12px; border-radius: 999px; background: var(--wd-s3); font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 11px; color: var(--wd-t3); transform: translateX(-14px); }
.wd-body { position: relative; min-height: 400px; padding: 16px; }
.wsx-rot { position: relative; }
.wsx-rot > .wd { display: none; }
.wsx-rot > .wd[data-cur] { display: block; }

/* 첫 장면 카드 위 띠(일곱 화면 · 멈춤) */
.wsx-strip { display: flex; align-items: center; gap: 4px; margin-bottom: 10px; padding: 4px; border-radius: 999px; background: var(--wd-c11); box-shadow: 0 8px 24px -10px var(--wd-c12); }
.wsx-st { flex: 1 1 auto; min-height: 30px; padding: 0 8px; border: 0; border-radius: 999px; background: none; color: var(--wd-t3); font: inherit; font-size: 12px; font-weight: 600; white-space: nowrap; cursor: pointer; }
.wsx-st.on { background: var(--wd-acc); color: var(--wd-on); }
.wsx-pause { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border: 0; border-radius: 50%; background: var(--wd-s3); color: var(--wd-t); cursor: pointer; }
.wsx-pause svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.wsx-pause .wsx-pl { display: none; fill: currentColor; stroke: none; }
.wsx.is-paused .wsx-pause .wsx-pl { display: block; }
.wsx.is-paused .wsx-pause .wsx-pz { display: none; }

/* 위 장면 탭 — 머리줄 바로 아래 가운데 */
.wsx-tabs { position: absolute; left: 50%; top: calc(var(--hd-h) + 10px); display: flex; gap: 2px; padding: 6px; border-radius: 999px; background: var(--top-bg); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: inset 0 0 0 1px var(--line); transform: translateX(-50%); }
.wsx-tab { min-height: 36px; padding: 0 16px; border: 0; border-radius: 999px; background: none; color: var(--text-3); font: inherit; font-size: .875rem; font-weight: 600; white-space: nowrap; cursor: pointer; transition: background-color .25s, color .25s; }
.wsx-tab:hover { color: var(--text); }
.wsx-tab.on { background: var(--accent); color: var(--on-accent); }

/* 오른쪽 점(로미안: 오른쪽 30px · 폭 34 · 세로 가운데) */
.wsx-route { position: absolute; right: 30px; top: 50%; display: grid; gap: 4px; transform: translateY(-50%); }
.wsx-dot { position: relative; display: grid; place-items: center; width: 34px; height: 34px; padding: 0; border: 0; background: none; cursor: pointer; }
.wsx-dot i { width: 8px; height: 8px; border-radius: 50%; background: var(--wsx-dot); transition: transform .25s, background-color .25s; }
.wsx-dot.on i { background: var(--accent); transform: scale(1.75); }
.wsx-route-l { position: absolute; right: 42px; top: 0; padding: 4px 12px; border-radius: 999px; background: var(--top-bg); font-size: .6875rem; font-weight: 600; color: var(--text); white-space: nowrap; pointer-events: none; transform: translateY(calc(var(--di, 0) * 38px)); transition: transform .3s var(--wsx-ease); }
.wsx-route:has(.wsx-dot:nth-of-type(1).on) .wsx-route-l { --di: 0; }
.wsx-route:has(.wsx-dot:nth-of-type(2).on) .wsx-route-l { --di: 1; }
.wsx-route:has(.wsx-dot:nth-of-type(3).on) .wsx-route-l { --di: 2; }
.wsx-route:has(.wsx-dot:nth-of-type(4).on) .wsx-route-l { --di: 3; }
.wsx-route:has(.wsx-dot:nth-of-type(5).on) .wsx-route-l { --di: 4; }
.wsx-route:has(.wsx-dot:nth-of-type(6).on) .wsx-route-l { --di: 5; }
.wsx-route:has(.wsx-dot:nth-of-type(7).on) .wsx-route-l { --di: 6; }

/* 맨 위 진행 막대 — 이 칸이 화면에 있을 때만 */
.wsx-prog { position: fixed; left: 0; right: 0; top: 0; z-index: 60; height: 3px; background: var(--line); opacity: 0; transition: opacity .3s; pointer-events: none; }
.wsx.in .wsx-prog { opacity: 1; }
.wsx-prog i { display: block; height: 100%; background: var(--accent); transform: scaleX(0); transform-origin: 0 50%; }

.wsx-hint { position: absolute; left: 50%; bottom: 28px; display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: .75rem; color: var(--text-3); transform: translateX(-50%); transition: opacity .3s; }
.wsx-hint svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.wsx:not(.at-first) .wsx-hint { opacity: 0; }
.wsx-watch { position: absolute; left: 50%; bottom: 24px; transform: translateX(-50%); }
.wsx.is-still .wsx-hint { display: none; }
.wsx-dlg { width: min(960px, 92vw); padding: 12px; border: 1px solid var(--line-2); border-radius: 18px; background: var(--bg); color: var(--text); }
.wsx-dlg::backdrop { background: var(--wd-c14); }
.wsx-dlg video { display: block; width: 100%; height: auto; max-height: 76svh; border-radius: 10px; background: var(--wsx-clay); }
.wsx-dlg form { display: flex; justify-content: flex-end; margin-top: 12px; }

/* ───────── 화면 카드 속(앱 화면) ───────── */
.wd-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 12px; }
.wd-h b { font-size: 17px; font-weight: 700; letter-spacing: -.02em; }
.wd-sub { font-size: 12px; color: var(--wd-t3); }
.wd-pill { padding: 3px 10px; border-radius: 999px; background: var(--wd-acc-soft); color: var(--wd-acc-ink); font-size: 12px; font-weight: 600; }
.wd-pill-w { background: var(--wd-warn-soft); color: var(--wd-warn); }
.wd-chip { display: inline-flex; align-items: center; padding: 2px 8px; border-radius: 999px; background: var(--wd-s3); color: var(--wd-t2); font-size: 11px; font-weight: 600; font-style: normal; white-space: nowrap; }
.wd-chip-w { background: var(--wd-warn-soft); color: var(--wd-warn); }
.wd-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 30px; padding: 0 12px; border-radius: 8px; background: var(--wd-ok-soft); color: var(--wd-ok); font-size: 12px; font-weight: 700; font-style: normal; }
.wd-btn-a { background: var(--wd-acc); color: var(--wd-on); }
.wd-av { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--wd-acc-soft); color: var(--wd-acc-ink); font-size: 12px; font-weight: 700; font-style: normal; }
.wd-av2 { background: var(--wd-info-soft); color: var(--wd-info); }
.wd-av3 { background: var(--wd-ok-soft); color: var(--wd-ok); }
.wd-list { display: grid; gap: 8px; }
.wd-row { position: relative; display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--wd-line); border-radius: 12px; background: var(--wd-bg); }
.wd-row > span { flex: 1; min-width: 0; display: grid; font-size: 12px; color: var(--wd-t3); }
.wd-row > span b { font-size: 14px; color: var(--wd-t); font-weight: 600; }
.wd-sum { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; padding: 12px; border-radius: 12px; background: var(--wd-s2); font-size: 13px; color: var(--wd-t2); }
.wd-sum b { color: var(--wd-t); }

/* 업무 보드 */
.wd-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.wd-col { display: grid; align-content: start; gap: 8px; min-height: 270px; padding: 8px; border-radius: 12px; background: var(--wd-s2); }
.wd-col-h { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: var(--wd-t2); }
.wd-col-h span { margin-left: auto; color: var(--wd-t3); font-weight: 600; }
.wd-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--wd-t3); }
.wd-dot-a { background: var(--wd-acc); }
.wd-dot-g { background: var(--wd-ok); }
.wd-kc { position: relative; z-index: 1; display: grid; gap: 2px; min-height: 62px; padding: 10px; border: 1px solid var(--wd-line); border-radius: 10px; background: var(--wd-bg); box-shadow: 0 1px 2px var(--wd-c15); font-size: 11px; color: var(--wd-t3); }
.wd-kc b { font-size: 13px; color: var(--wd-t); font-weight: 600; }
.wd-ghost { border: 1.5px dashed var(--wd-line2); background: none; box-shadow: none; }
.wd-toast { position: absolute; left: 50%; bottom: 16px; padding: 8px 14px; border-radius: 999px; background: var(--wd-t); color: var(--wd-on); font-size: 12px; font-weight: 600; white-space: nowrap; transform: translateX(-50%); opacity: 0; }

/* 채팅 */
.wd-chat { display: grid; gap: 12px; min-height: 300px; align-content: start; }
.wd-msg { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; }
.wd-msg > span { display: grid; gap: 2px; padding: 8px 12px; border-radius: 4px 14px 14px; background: var(--wd-s3); }
.wd-msg > span b { font-size: 11px; color: var(--wd-t3); font-weight: 600; }
.wd-att { display: inline-flex; padding: 6px 10px; border-radius: 8px; background: var(--wd-bg); border: 1px solid var(--wd-line); font-style: normal; font-size: 12px; font-weight: 600; }
.wd-me { justify-content: flex-end; }
.wd-me > span { border-radius: 14px 14px 4px; background: var(--wd-acc); color: var(--wd-on); }
.wd-input { margin-top: 12px; padding: 10px 14px; border: 1px solid var(--wd-line2); border-radius: 999px; font-size: 13px; color: var(--wd-t3); }

/* 휴가 */
.wd-done { display: none; position: absolute; right: 12px; top: 50%; margin-top: -13px; padding: 4px 10px; border-radius: 8px; background: var(--wd-ok); color: var(--wd-on); font-size: 12px; font-weight: 700; font-style: normal; }
.wd-left { display: grid; justify-items: end; }
.wd-left s, .wd-left ins { grid-area: 1 / 1; text-decoration: none; }
.wd-left ins { display: none; color: var(--wd-acc-ink); }
.wd-clock { display: flex; align-items: center; gap: 10px; margin-top: 12px; font-size: 13px; color: var(--wd-t2); }

/* 급여 */
.wd-pay { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.wd-pay th, .wd-pay td { padding: 9px 4px; border-bottom: 1px solid var(--wd-line); font-size: 13px; text-align: left; font-weight: 500; color: var(--wd-t2); }
.wd-pay td { text-align: right; color: var(--wd-t); font-weight: 600; }
.wd-total { display: flex; justify-content: space-between; margin-top: 12px; padding: 12px; border-radius: 12px; background: var(--wd-acc-soft); color: var(--wd-acc-ink); font-size: 14px; font-variant-numeric: tabular-nums; }

/* 견적 → 원가계산서 */
.wd-q, .wd-cost { display: grid; gap: 4px; }
.wd-q p, .wd-cost p { display: flex; justify-content: space-between; padding: 7px 10px; border-radius: 8px; background: var(--wd-s2); font-size: 13px; color: var(--wd-t2); font-variant-numeric: tabular-nums; }
.wd-q b, .wd-cost b { color: var(--wd-t); font-weight: 600; }
.wd-go { margin: 10px 0 !important; text-align: center; }
.wd-cost { padding: 10px; border: 1.5px solid var(--wd-acc); border-radius: 12px; }
.wd-cost p.wd-cost-h { justify-content: flex-start; gap: 8px; padding: 0 0 4px; background: none; font-weight: 700; color: var(--wd-t); }

/* 입찰 */
.wd-new { border-color: var(--wd-warn); background: var(--wd-warn-soft); }

/* 오탈자 */
.wd-ty { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.wd-ty > div { display: grid; gap: 6px; align-content: start; padding: 10px; border-radius: 12px; background: var(--wd-s2); font-size: 13px; }
.wd-ty p { padding: 6px 8px; border-radius: 8px; background: var(--wd-bg); }
.wd-ty p.wd-ty-h { padding: 0; background: none; font-size: 12px; font-weight: 700; color: var(--wd-t3); }
.wd-ty u { text-decoration: none; }
.wd-ty mark { padding: 0 3px; border-radius: 4px; background: var(--wd-bad-soft); color: var(--wd-bad); font-weight: 700; box-shadow: 0 0 0 1.5px var(--wd-bad); }
.wd-ty mark.wd-miss { font-size: 11px; }
.wd-found { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }

/* ───────── 움직임(지금 장면 카드만 · 4.8초마다 되풀이) ───────── */
@media (prefers-reduced-motion: no-preference) {
  .wsx:not(.is-still) .wsx-proof.on .wd:is([data-cur], :not(.wsx-rot .wd)) { --run: running; }
  .wd { --run: paused; }
  .wd-move { animation: wdMove 4.8s var(--ease) infinite both; animation-play-state: var(--run); }
  .wd-ghost { animation: wdGhost 4.8s infinite both; animation-play-state: var(--run); }
  .wd-toast { animation: wdToast 4.8s infinite both; animation-play-state: var(--run); }
  .wd-chat .wd-msg, .wd-pay .wd-ln, .wd-cost p:not(.wd-cost-h), .wd-found .wd-chip { animation: wdIn 4.8s infinite both; animation-play-state: var(--run); }
  .wd-chat .wd-msg:nth-child(2), .wd-pay .wd-ln[data-i="1"], .wd-cost p:nth-child(3), .wd-found .wd-chip:nth-child(2) { animation-delay: .5s; }
  .wd-chat .wd-msg:nth-child(3), .wd-pay .wd-ln[data-i="2"], .wd-cost p:nth-child(4), .wd-found .wd-chip:nth-child(3) { animation-delay: 1s; }
  .wd-chat .wd-msg:nth-child(4), .wd-pay .wd-ln[data-i="3"], .wd-cost p:nth-child(5) { animation-delay: 1.5s; }
  .wd-pay .wd-ln[data-i="4"] { animation-delay: 2s; }
  .wd-total { animation: wdIn 4.8s 2.4s infinite both; animation-play-state: var(--run); }
  .wd-cost { animation: wdCost 4.8s infinite both; animation-play-state: var(--run); }
  .wd-go .wd-btn, .wd-ok { animation: wdPress 4.8s infinite both; animation-play-state: var(--run); }
  .wd-done { display: inline-flex; animation: wdDone 4.8s infinite both; animation-play-state: var(--run); }
  .wd-left s { animation: wdOld 4.8s infinite both; animation-play-state: var(--run); }
  .wd-left ins { display: inline; animation: wdNew 4.8s infinite both; animation-play-state: var(--run); }
  .wd-new { animation: wdDrop 4.8s infinite both; animation-play-state: var(--run); }
  .wd-ty mark { animation: wdMark 4.8s infinite both; animation-play-state: var(--run); }
  .wd-ty div:last-child p:nth-child(3) mark { animation-delay: .6s; }
  .wd-ty div:last-child p:nth-child(4) mark { animation-delay: 1.2s; }
  .wd-found .wd-chip { animation-delay: 1.8s; }
  .wd-found .wd-chip:nth-child(2) { animation-delay: 2.1s; }
  .wd-found .wd-chip:nth-child(3) { animation-delay: 2.4s; }
}
@keyframes wdMove { 0%, 18% { transform: none; box-shadow: 0 1px 2px var(--wd-c15); } 26% { transform: translate(8px, -6px) rotate(-2deg); box-shadow: 0 14px 30px -10px var(--wd-c16); } 46% { transform: translate(calc(100% + 26px), -6px) rotate(-2deg); box-shadow: 0 14px 30px -10px var(--wd-c16); } 54%, 100% { transform: translate(calc(100% + 26px), 0); box-shadow: 0 1px 2px var(--wd-c15); } }
@keyframes wdGhost { 0%, 40% { opacity: 1; } 48%, 100% { opacity: 0; } }
@keyframes wdToast { 0%, 54% { opacity: 0; transform: translate(-50%, 8px); } 60%, 92% { opacity: 1; transform: translate(-50%, 0); } 100% { opacity: 0; transform: translate(-50%, 0); } }
@keyframes wdIn { 0%, 8% { opacity: 0; transform: translateY(8px); } 16%, 90% { opacity: 1; transform: none; } 100% { opacity: 0; transform: none; } }
@keyframes wdCost { 0%, 30% { opacity: .35; } 38%, 92% { opacity: 1; } 100% { opacity: .35; } }
@keyframes wdPress { 0%, 22% { transform: none; filter: none; } 26% { transform: scale(.9); filter: brightness(.9); } 30%, 100% { transform: none; filter: none; } }
@keyframes wdDone { 0%, 30% { opacity: 0; transform: scale(.8); } 36%, 94% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes wdOld { 0%, 40% { opacity: 1; } 44%, 100% { opacity: 0; } }
@keyframes wdNew { 0%, 40% { opacity: 0; } 46%, 96% { opacity: 1; } 100% { opacity: 0; } }
@keyframes wdDrop { 0%, 12% { opacity: 0; transform: translateY(-14px); } 22%, 92% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes wdMark { 0%, 20% { background: transparent; box-shadow: none; color: inherit; } 30%, 94% { background: var(--wd-bad-soft); box-shadow: 0 0 0 1.5px var(--wd-bad); color: var(--wd-bad); } 100% { background: transparent; box-shadow: none; color: inherit; } }
/* 움직임 줄이기 · 정지 판 — 끝 모습 */
@media (prefers-reduced-motion: reduce) {
  .wd-move { transform: translate(calc(100% + 26px), 0); }
  .wd-ghost { display: none; }
  .wd-done { display: inline-flex; }
  .wd-left s { display: none; }
  .wd-left ins { display: inline; }
  .wd-toast { opacity: 1; }
  .wsx-copy, .wsx-proof, .wsx-poster, .wsx-v, .wsx-still, .wsx-tab, .wsx-dot i, .wsx-route-l { transition: none; }
}

/* ───────── 세로 화면(폰 · 접힌 폴더블 · 세로 태블릿 900 아래) — 11-30: 위 그림(작게) · 가운데 글 · 아래 카드, 서로 겹치지 않는다 ─────────
   그림 · 글 · 카드의 자리는 ws-story.js layout() 이 잰다(--ax --ay --aw --ah · --cx --ctw --ct · --px --py --k) */
@media (orientation: portrait) and (max-width: 899.98px) {
  .wsx { --cx: 20px; }
  .wsx-copy { top: var(--ct, 40%); transform: translateY(16px); }
  .wsx-copy.on { transform: none; }
  .wsx-h { font-size: clamp(1.5rem, 7.5vw, 2.125rem); line-height: 1.08; }
  .wsx-d { margin-top: 12px; font-size: clamp(.9375rem, 4.4vw, 1.1875rem); }
  .wsx-chips { margin-top: 16px; }
  .wsx-eb { margin-top: 12px; }
  .wsx-copy:first-child .wsx-chips { display: none; }
  .wsx .price-line { margin-top: 14px; padding: 8px 14px; }
  .wsx-act { margin-top: 14px; }
  .wsx-act .btn { min-height: 46px; padding: 0 18px; }
  .gp img { height: 52px; }
  .wsx-media { border-radius: 14px; }
  .wsx-tabs, .wsx-route, .wsx-hint { display: none; }
  .wsx-watch { left: auto; right: 20px; bottom: auto; top: calc(var(--hd-h) + 8px); z-index: 2; transform: none; }
}
@media (orientation: portrait) and (max-width: 899.98px) {
  .wsx-copy:first-child .wsx-d, .wsx .note { display: none; }   /* 세로 화면 첫 장면은 글 칸이 길다 — 설명 · 안내 줄은 다음 장면부터 */
}
/* 세로 화면은 그림 · 글 · 카드가 한 화면에 다 들어가야 해서 카드 속 빈 아래쪽을 줄인다 */
@media (orientation: portrait) and (max-width: 899.98px) {
  .wsx .wd-body { min-height: 0; }
  .wsx .wd-col { min-height: 190px; }
  .wsx .wd-chat { min-height: 0; }
}
/* 세로로 낮은 가로 화면(폰 가로 · 낮은 노트북) */
@media (orientation: landscape) and (max-height: 560px) {
  .wsx { --cx: 24px; }
  .wsx-tabs { display: none; }
  .wsx-num, .wsx-chips, .wsx-hint, .wsx .note { display: none; }
  .wsx-eb { margin-top: 0; }
  .wsx-h { font-size: 1.375rem; margin-top: 6px; }
  .wsx-d { font-size: .875rem; margin-top: 8px; line-height: 1.45; }
  .wsx .price-line { margin-top: 8px; padding: 6px 12px; font-size: .8125rem; }
  .wsx .price-line b { font-size: .9375rem; }
  .wsx-act { margin-top: 10px; gap: 8px; }
  .wsx-act .btn { min-height: 40px; padding: 0 14px; font-size: .9375rem; }
  .gp img { height: 44px; }
  .wsx-route { top: 50%; right: 12px; gap: 0; }
  .wsx-dot { width: 28px; height: 28px; }
  .wsx-route-l { display: none; }
  .wsx-media { border-radius: 12px; }
}
/* 낮은 가로 화면 — 첫 장면 글 칸이 길어 머리줄 밑으로 올라가지 않게(882x344 · 844x390 · 1280x720 에서 잼) */
@media (orientation: landscape) and (max-height: 760px) { .wsx-copy:first-child .wsx-chips { display: none; } }
/* 1280x720 · 1366x768 — 글이 길어 화면 위아래로 넘치지 않게 제목 · 설명을 조금 줄이고 안내 줄을 뺀다(11-30) */
@media (orientation: landscape) and (max-height: 800px) and (min-height: 561px) {
  .wsx-h { font-size: clamp(1.75rem, 3.2vw, 2.5rem); }
  .wsx-d { margin-top: 12px; font-size: clamp(1rem, 1.45vw, 1.25rem); line-height: 1.45; }
  .wsx .price-line { margin-top: 14px; }
  .wsx-act { margin-top: 14px; }
  .wsx .note { display: none; }
}
@media (orientation: landscape) and (max-height: 560px) { .wsx-copy:first-child .wsx-d { display: none; } }
@media (min-width: 1024px) and (orientation: landscape) { .wsx { --cx: 64px; } }
@media (max-width: 1023.98px) and (orientation: landscape) { .wsx { --cx: 32px; } }
/* 오른쪽 점 옆 장면 이름표는 넓은 화면에서만(좁으면 그림 · 카드 자리를 먹는다) */
@media (max-width: 1499.98px) { .wsx-route-l { display: none; } }

/* ───────── 장면 뒤 — 로미안처럼 둥근 판이 영상 위로 올라온다 ───────── */
.after { position: relative; z-index: 2; margin-top: -12svh; border-radius: 32px 32px 0 0; background: var(--bg); box-shadow: 0 -30px 60px -30px var(--wd-c17); }
.after > .sec:first-child { padding-top: clamp(48px, 6vw, 80px); }
@media (max-width: 899.98px) { .after { border-radius: 24px 24px 0 0; } }
