/* layouts/lp4-ctour.css — index4 «요양원 · 기관평가 현장 순회» 실시간 장면(11-02 · 손 lp4-ctour.js · 마크업 lp4-ctour.php)
   메인(/) index.php 의 기관평가 장면 옷을 떠 와 «판 안» 으로 — 붙박이(sticky · 600vh) 대신 영상 판(16:9)을 꽉 채우고, 글 · 카드 자리 · 크기는 화면 폭(vw) 대신 판 폭(cqw).
   틀(.p4-live — 판 채우기 · container · 포스터)은 lp4-vmap.css 와 같이 쓴다. 3D 가 처음 그려지기 전엔 첫 장면 그림(포스터) */
.p4-live--ev { background-color: #e8edf5; }
.p4-live--ev::after { display: none; }   /* 방문요양 판의 아래 어둠 띠는 밝은 이 장면엔 안 씀 */
.p4-live--ev.is-ready .c4-est { opacity: 1; }
.c4-est { position: absolute; inset: 0; overflow: hidden; --eh: 1; color: #0f172a; opacity: 0; transition: opacity .5s ease;
	background: radial-gradient(ellipse 60% 55% at 58% 48%, #ffffff, rgba(255, 255, 255, 0) 72%), linear-gradient(180deg, #f6f8fc, #e8edf5); }
.c4-ecv { position: absolute; inset: 0; width: 100%; height: 100%; display: block; z-index: 0; }
.c4-eln { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; pointer-events: none; overflow: visible; }
.c4-eln path { fill: none; stroke: #22c55e; stroke-width: 2.2; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; opacity: 0; filter: drop-shadow(0 0 4px rgba(34, 197, 94, .45)); transition: opacity .25s; }
.c4-elbls { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.c4-erl, .c4-efl, .c4-emk, .c4-efi, .c4-erk { position: absolute; left: 0; top: 0; opacity: 0; transition: opacity .3s ease; will-change: transform; }
.c4-erl { translate: -50% -50%; padding: 3px 8px; border-radius: 999px; background: rgba(255, 255, 255, .9); box-shadow: 0 2px 8px rgba(15, 23, 42, .12); font-size: 11.5px; font-weight: 800; color: #334155; white-space: nowrap; }
.c4-erl--s { font-size: 10.5px; font-weight: 700; color: #64748b; background: rgba(255, 255, 255, .82); }
/* 2층 전체 — 호실 이름표(완료면 초록) · 침대마다 작은 초록 점 */
.c4-erk { translate: -50% -50%; padding: 3px 8px; border-radius: 999px; background: rgba(255, 255, 255, .92); box-shadow: 0 2px 8px rgba(15, 23, 42, .12); font-size: 11px; font-weight: 700; color: #64748b; white-space: nowrap; transition: opacity .3s ease, color .3s, background .3s, box-shadow .3s; }
.c4-erk b { font-weight: 800; color: #334155; }
.c4-erk.ok { color: #047857; background: #ecfdf5; box-shadow: 0 0 0 1px #a7f3d0, 0 2px 8px rgba(22, 163, 74, .15); }
.c4-erk.ok b { color: #065f46; }
.c4-erk.ok b::before { content: '✓ '; }
/* 소방 · CCTV 멈춤 — 작은 설비에 붙는 이름표 */
.c4-efi { translate: -50% -135%; padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 800; white-space: nowrap; color: #b91c1c; background: #fef2f2; border: 1px solid #fecaca; box-shadow: 0 2px 8px rgba(185, 28, 28, .14); }
.c4-efi--c { color: #1e293b; background: #f1f5f9; border-color: #cbd5e1; box-shadow: 0 2px 8px rgba(15, 23, 42, .12); }
.c4-efl { translate: -50% -50%; padding: 4px 10px; border-radius: 8px; background: #fff; box-shadow: 0 4px 14px rgba(15, 23, 42, .14); font-size: 15px; font-weight: 900; color: #1e3a8a; }
.c4-emk { width: 30px; height: 30px; translate: -50% -50%; }
.c4-emk b { position: absolute; inset: 0; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 4px rgba(34, 197, 94, .25), 0 6px 16px rgba(22, 163, 74, .45); transform: scale(0); transition: transform .45s cubic-bezier(.3, 1.6, .5, 1); }
.c4-emk b::after { content: ''; position: absolute; left: 50%; top: 45%; width: 6px; height: 12px; border-right: 3px solid #fff; border-bottom: 3px solid #fff; transform: translate(-50%, -50%) rotate(45deg); }
.c4-emk::before { content: ''; position: absolute; inset: -9px; border-radius: 50%; border: 2px solid rgba(34, 197, 94, .65); opacity: 0; }
.c4-emk.on b { transform: scale(1); }
.c4-emk.live::before { animation: c4-epulse 1.6s ease-out infinite; }
.c4-emk.done b { transform: scale(.66); }
.c4-emk.done em { display: none; }   /* 지난 원은 점만(이름표가 겹치지 않게) */
.c4-emk em { position: absolute; left: 50%; top: calc(100% + 7px); translate: -50% 0; padding: 2px 8px; border-radius: 999px; font-style: normal; font-size: 12px; font-weight: 800; white-space: nowrap; color: #065f46; background: #ecfdf5; border: 1px solid #a7f3d0; }
.c4-emk--r { width: 22px; height: 22px; }
.c4-emk--r em { font-size: 11px; }
.c4-emk--r b::after { width: 5px; height: 9px; border-width: 2.5px; }
.c4-emk--b { width: 13px; height: 13px; }
.c4-emk--b b { box-shadow: 0 0 0 3px rgba(34, 197, 94, .22), 0 3px 8px rgba(22, 163, 74, .4); }
.c4-emk--b b::after { display: none; }
.c4-emk--b.done b { transform: scale(.8); }
@keyframes c4-epulse { 0% { opacity: .9; transform: scale(.8); } 100% { opacity: 0; transform: scale(1.8); } }
.c4-ehd { position: absolute; z-index: 3; left: max(6cqw, 18px); top: 50%; width: min(30cqw, 420px); translate: 0 -50%; opacity: var(--eh); transform: translateY(calc((1 - var(--eh)) * 22px)); pointer-events: none; }
.c4-ehd .k { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 16px; font-size: 13px; font-weight: 800; letter-spacing: .12em; color: #16a34a; }
.c4-ehd .k::before { content: ''; width: 22px; height: 1px; background: currentColor; opacity: .7; }
.c4-ehd h2 { margin: 0; font-size: clamp(17px, 3.15cqw, 52px); font-weight: 800; letter-spacing: -.04em; line-height: 1.12; }
.c4-ehd h2 span { background: linear-gradient(100deg, #16a34a, #0ea5a4 60%, #2563eb); -webkit-background-clip: text; background-clip: text; color: transparent; }
.c4-ehd p { margin: clamp(8px, 1.2cqw, 18px) 0 0; font-size: clamp(11px, 1.14cqw, 18px); line-height: 1.75; color: #475569; word-break: keep-all; }
.c4-ehd p b { color: #0f172a; font-weight: 700; }
.c4-ecard { position: absolute; z-index: 3; right: max(4cqw, 18px); top: 50%; width: min(380px, 32cqw); translate: 0 -50%; padding: 18px 18px 14px; border-radius: 20px;
	background: rgba(255, 255, 255, .97); box-shadow: 0 30px 70px -30px rgba(15, 23, 42, .38), 0 0 0 1px rgba(15, 23, 42, .06); opacity: 0; transform: translateY(16px); transition: opacity .4s ease, transform .55s cubic-bezier(.2, .8, .2, 1); pointer-events: none; }
.c4-ecard.on { opacity: 1; transform: none; }
.c4-ech { margin-bottom: 12px; }
.c4-etag { display: inline-flex; padding: 3px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 800; color: #15803d; background: #ecfdf5; border: 1px solid #bbf7d0; }
.c4-ech b { display: block; margin-top: 8px; font-size: 19px; font-weight: 800; letter-spacing: -.02em; }
.c4-ech small { display: block; margin-top: 2px; font-size: 12.5px; color: #64748b; }
.c4-eli { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.c4-eli li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 10px; border-radius: 12px; background: #f8fafc; border: 1px solid #eef2f7; font-size: 13.5px; font-weight: 600; transition: background .3s, border-color .3s; }
.c4-eli li > span small { display: block; margin-top: 1px; font-size: 11px; font-weight: 600; color: #94a3b8; }
.c4-eli li.yes { background: #f0fdf4; border-color: #bbf7d0; }
.c4-eli li.no { background: #fef2f2; border-color: #fecaca; }
.c4-eli li.fix.yes > span::after { content: '조치 완료'; margin-left: 6px; padding: 1px 6px; border-radius: 999px; font-size: 10.5px; font-weight: 800; color: #b45309; background: #fef3c7; white-space: nowrap; }
.c4-eyn { flex: none; display: inline-flex; padding: 2px; border-radius: 999px; background: #eef2f7; font-style: normal; }
.c4-eyn i { padding: 3px 9px; border-radius: 999px; font-style: normal; font-size: 11.5px; font-weight: 800; color: #94a3b8; transition: background .25s, color .25s; }
.c4-eli li.yes .c4-eyn i:first-child { background: #22c55e; color: #fff; }
.c4-eli li.no .c4-eyn i:last-child { background: #ef4444; color: #fff; }
.c4-edn { flex: none; font-style: normal; }
.c4-edn::after { content: '대기'; display: inline-flex; padding: 3px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 800; color: #94a3b8; background: #eef2f7; transition: background .25s, color .25s; }
.c4-eli li.yes .c4-edn::after { content: '완료 ✓'; color: #fff; background: #22c55e; }
.c4-ecf { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 10px; font-size: 11.5px; color: #64748b; }
.c4-ecnt { font-size: 13px; color: #15803d; }
.c4-egr { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.c4-egr li { position: relative; padding: 8px 10px; border-radius: 12px; background: #f8fafc; border: 1px solid #eef2f7; transition: background .3s, border-color .3s; }
.c4-egr li b { display: block; font-size: 13px; }
.c4-egr li span { font-size: 11.5px; color: #64748b; }
.c4-egr li em { position: absolute; right: 8px; top: 9px; width: 16px; height: 16px; border-radius: 50%; background: #e2e8f0; transition: background .25s; }
.c4-egr li em::after { content: ''; position: absolute; left: 50%; top: 45%; width: 4px; height: 8px; border-right: 2px solid #fff; border-bottom: 2px solid #fff; transform: translate(-50%, -50%) rotate(45deg); }
.c4-egr li.yes { background: #f0fdf4; border-color: #bbf7d0; }
.c4-egr li.yes em { background: #22c55e; }
.c4-esum { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 4px 0; }
.c4-esum > div { padding: 12px 6px; border-radius: 14px; text-align: center; background: #f0fdf4; border: 1px solid #bbf7d0; }
.c4-esum b { font-size: 30px; font-weight: 900; color: #15803d; letter-spacing: -.03em; }
.c4-esum span { font-size: 13px; font-weight: 800; color: #15803d; }
.c4-esum small { display: block; margin-top: 2px; font-size: 11.5px; color: #475569; }
/* 작은 판(폰 · 좁은 화면) — 구도는 그대로 두고 글 · 카드만 줄인다(카드 zoom 은 선 끝 자리 셈과 같이 줄어 맞는다) */
@container (max-width: 900px) { .c4-ecard { zoom: .72; } .c4-erl--s { display: none; } }
@container (max-width: 560px) { .c4-ecard { zoom: .5; } .c4-ehd p { display: none; } .c4-erl, .c4-erk, .c4-efi, .c4-emk em { font-size: 9px; } .c4-erk span { display: none; } }
