/* 홈 첫 화면 장면: 브라우저 틀(1280×744 고정 설계) — 바깥 크기에 맞춰 scene.js가 확대·축소 */
.hero-fit { position: relative; width: 100%; height: 100%; overflow: hidden; }
.hs { position: absolute; left: 0; top: 0; width: 1280px; height: 744px; transform-origin: 0 0; will-change: transform; border-radius: 12px; overflow: hidden; background: #fff;
  font: 13px/1.4 'Malgun Gothic', 'Apple SD Gothic Neo', sans-serif; color: #1f2937; box-shadow: 0 30px 80px rgba(8, 40, 40, .28), 0 0 0 1px rgba(8, 40, 40, .14); }
.hs * { box-sizing: border-box; }

/* 탭 줄 */
.hs-tabs { height: 38px; background: #e3e7ee; display: flex; align-items: flex-end; padding-left: 8px; gap: 2px; }
.hs-tab { height: 32px; width: 220px; display: flex; align-items: center; gap: 8px; padding: 0 12px; border-radius: 9px 9px 0 0; color: #4b5563; font-size: 12.5px; white-space: nowrap; overflow: hidden; }
.hs-tab.on { background: #fff; color: #111827; }
.hs-tab .fav { width: 14px; height: 14px; border-radius: 4px; flex: none; }
.hs-tab .x { margin-left: auto; color: #9ca3af; font-size: 11px; }
.hs-plus { height: 32px; display: grid; place-items: center; width: 30px; color: #6b7280; font-size: 18px; }
.hs-win { margin-left: auto; display: flex; height: 38px; }
.hs-win i { width: 46px; display: grid; place-items: center; color: #4b5563; font-style: normal; font-size: 13px; }

/* 주소줄 */
.hs-bar { height: 42px; display: flex; align-items: center; gap: 6px; padding: 0 10px; background: #fff; }
.hs-ic { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; color: #4b5563; }
.hs-ic svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.hs-url { flex: 1; height: 32px; border-radius: 16px; background: #f1f3f6; display: flex; align-items: center; gap: 8px; padding: 0 14px; font-size: 14px; margin: 0 6px; }
.hs-url .lock svg { width: 14px; height: 14px; stroke: #4b5563; }
.hs-url .t { white-space: nowrap; overflow: hidden; }
.hs-url .t em { font-style: normal; color: #6b7280; }
.hs-url .caret { width: 1.5px; height: 16px; background: #111827; margin-left: -6px; }
.hs-url .star { margin-left: auto; color: #6b7280; }
.hs-me { width: 26px; height: 26px; border-radius: 50%; background: linear-gradient(135deg, #f59e0b, #ef4444); color: #fff; display: grid; place-items: center; font-size: 12px; font-weight: 700; }

/* 즐겨찾기 줄 */
.hs-bm { height: 28px; display: flex; align-items: center; gap: 4px; padding: 0 12px; border-bottom: 1px solid #e5e7eb; background: #fff; font-size: 12px; color: #374151; }
.hs-bm span { display: flex; align-items: center; gap: 6px; padding: 3px 8px; border-radius: 6px; }
.hs-bm span::before { content: ""; width: 12px; height: 12px; border-radius: 3px; background: var(--c, #9ca3af); }

/* 내용 */
.hs-body { position: absolute; left: 0; top: 108px; width: 1280px; height: 636px; background: #f5f6fb; }
.hs-page { position: absolute; left: 0; top: 0; width: 836px; height: 636px; border: 0; background: #f5f6fb; }
.hs-sb { position: absolute; left: 836px; top: 0; width: 400px; height: 636px; border-left: 1px solid #cbd5e1; background: #f8fafc; overflow: hidden; }
.hs-sb img { position: absolute; inset: 0; width: 400px; height: 636px; opacity: 0; will-change: opacity, transform; }
.hs-rail { position: absolute; left: 1236px; top: 0; width: 44px; height: 636px; background: #f3f4f6; border-left: 1px solid #e5e7eb; display: flex; flex-direction: column; align-items: center; gap: 14px; padding-top: 12px; }
.hs-rail b { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; background: #d5f5ef; box-shadow: inset 3px 0 0 #0f8a7a; }
.hs-rail b img { width: 22px; height: 22px; }
.hs-rail i { width: 22px; height: 22px; border-radius: 7px; background: var(--c); opacity: .85; }
.hs-flash { position: absolute; left: 0; top: 0; width: 836px; height: 636px; background: #fff; opacity: 0; pointer-events: none; }
.hs-blank { position: absolute; left: 0; top: 0; width: 836px; height: 636px; background: #fff; display: grid; place-items: center; color: #9ca3af; font-size: 13px; }

/* 덮개: 커서·누름·강조·말풍선 */
.hs-ring { position: absolute; border: 3px solid #0f8a7a; border-radius: 10px; opacity: 0; pointer-events: none; box-shadow: 0 0 0 4px rgba(15, 138, 122, .18); }
.hs-click { position: absolute; width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 50%; border: 3px solid #0f8a7a; opacity: 0; pointer-events: none; }
.hs-cursor { position: absolute; width: 24px; height: 24px; left: 0; top: 0; pointer-events: none; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .35)); z-index: 5; }
.hs-cap { position: absolute; width: max-content; max-width: 460px; padding: 13px 18px; border-radius: 14px; background: #0f8a7a; color: #fff; opacity: 0; box-shadow: 0 12px 30px rgba(8, 40, 40, .3); pointer-events: none; }
.hs-cap b { display: block; font: 700 19px/1.35 'IBM Plex Sans KR', 'Malgun Gothic', sans-serif; }
.hs-cap small { display: block; font-size: 13.5px; opacity: .92; margin-top: 3px; }

/* 2판: 스포트라이트 · 영역 선택 · 끌기 · 알림 · 큰 자막 */
.hs-sb-empty { position: absolute; inset: 0; background: #f8fafc url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16'%3E%3Ccircle cx='2' cy='2' r='1' fill='%23cbd5e1'/%3E%3C/svg%3E"); }
.hs-sel { position: absolute; border: 2.5px dashed #0f8a7a; background: rgba(15, 138, 122, .1); border-radius: 4px; opacity: 0; pointer-events: none; z-index: 3; }
.hs-drag { position: absolute; left: 0; top: 0; padding: 9px 14px; background: #fff; border: 1px solid #cbd5e1; border-left: 4px solid #0f8a7a; border-radius: 8px; font-size: 14px; font-weight: 700; color: #111827; box-shadow: 0 10px 24px rgba(0, 0, 0, .25); opacity: 0; pointer-events: none; z-index: 4; white-space: nowrap; }
.hs-ring, .hs-click { z-index: 3; }
.hs-cursor { z-index: 6; }
.hs-cursor { transform-origin: 4px 2px; }
.hs-base { opacity: 1 !important; }
.hs-doc { position: absolute; left: 0; top: 0; width: 836px; height: 636px; background: #fff; padding: 46px 70px; opacity: 0; z-index: 1; font-family: 'Malgun Gothic', sans-serif; }
.hs-doc h1 { font-size: 26px; margin: 0 0 8px; } .hs-doc h2 { font-size: 18px; margin: 26px 0 10px; } .hs-doc p { color: #6b7280; margin: 0 0 22px; }
.hs-doc i { display: block; height: 12px; border-radius: 6px; background: #e5e7eb; margin: 12px 0; width: 92%; }

/* 3판: 카메라 위에 고정 크기로 얹는 글 (장 제목 · 큰 자막 · 알림) — 확대와 상관없이 같은 크기 */
.hs-ov { position: absolute; inset: 0; pointer-events: none; z-index: 10; }
.hs-sub { position: absolute; left: 0; top: 0; max-width: min(440px, 46%); padding: 10px 18px; border-radius: 12px; background: rgba(0, 0, 0, .5); color: #fff; opacity: 0; text-align: center; word-break: keep-all; will-change: transform; } /* 위치는 scene.js (장면마다 기준 하나로 고정) */
.hs-sub b { font: 700 clamp(16px, 1.7vw, 24px)/1.35 'IBM Plex Sans KR', 'Malgun Gothic', sans-serif; }
.hs-toast { position: absolute; left: 50%; bottom: calc(clamp(16px, 4vh, 40px) + 78px); padding: 10px 18px; border-radius: 10px; background: #1f2937; color: #fff; font-size: 15px; opacity: 0; white-space: nowrap; }
@media (max-width: 700px), (max-height: 500px) { .hs-sub { white-space: normal; text-align: center; padding: 5px 10px; border-radius: 8px; max-width: 62%; } .hs-sub b { font-size: 11.5px; } } /* 작은 화면: 설명이 영상을 덮지 않게 */
/* 4판: 깜빡 하이라이트(나머지 어둡게) · 날아가는 캡처 · 도형 그리기 · 1.1 예정 버튼 */
.hs-spot { position: absolute; border-radius: 10px; opacity: 0; pointer-events: none; z-index: 2; border: 3px solid rgba(94, 234, 212, .9); box-shadow: 0 0 0 4000px rgba(6, 18, 20, .58); }
.hs-sel.shape { border: 4px solid #ef4444; background: rgba(239, 68, 68, .03); border-radius: 0; }
.hs-sel.todo { border: 2px solid #0f8a7a; background: rgba(20, 184, 166, .1); border-radius: 0; }
.hs-fly { position: absolute; opacity: 0; pointer-events: none; z-index: 4; object-fit: cover; object-position: top; border-radius: 6px; border: 2px solid #5eead4; box-shadow: 0 18px 40px rgba(0, 0, 0, .35); background: #fff; }
.hs-fake { position: absolute; opacity: 0; pointer-events: none; z-index: 1; display: grid; place-items: center; border-radius: 7px; background: #fff; color: #334155; font: 700 15px 'Malgun Gothic', sans-serif; }
.hs-fake.on { background: #d5f5ef; color: #0f8a7a; box-shadow: inset 0 0 0 1.5px #0f8a7a; }
.hs-fake .tag { position: absolute; left: 50%; top: -15px; transform: translateX(-50%); padding: 0 5px; border-radius: 6px; background: #f59e0b; color: #fff; font: 700 9.5px/14px 'Malgun Gothic', sans-serif; white-space: nowrap; }
/* 5판: 펜·형광펜이 그려지는 선 · 글상자 타이핑(입력 상자 + 조합되는 글자, 확장과 같은 모양) */
.hs-strokes { position: absolute; left: 0; top: 0; width: 1280px; height: 744px; pointer-events: none; z-index: 1; overflow: visible; }
.hs-type { position: absolute; display: none; z-index: 1; padding: 4px 6px; line-height: 1.4; white-space: pre-wrap; word-break: break-word; color: #0f172a; background: #fff; box-shadow: 0 0 0 1px #0d9488; border-radius: 4px; font-family: 'Malgun Gothic', system-ui, sans-serif; pointer-events: none; }
.hs-type .caret { display: inline-block; width: 1.5px; height: 1.15em; margin-left: 1px; vertical-align: text-bottom; background: #0f172a; }
/* 6판: 환기(흰 화면) · 파일 고르기 창(운영체제 창 흉내) */
.hs-wash { position: absolute; inset: 0; background: #fff; opacity: 0; pointer-events: none; z-index: 9; }
.hs-fake.dlg { display: block; z-index: 4; background: #fff; border-radius: 8px; border: 1px solid #cbd5e1; box-shadow: 0 20px 50px rgba(0, 0, 0, .35); font: 400 12px 'Malgun Gothic', sans-serif; color: #1f2937; overflow: hidden; }
.dlg .bar { height: 32px; line-height: 32px; padding: 0 12px; background: #f1f5f9; border-bottom: 1px solid #e2e8f0; font-weight: 700; }
.dlg .side { position: absolute; left: 0; top: 32px; bottom: 44px; width: 130px; border-right: 1px solid #e2e8f0; padding: 8px 0; }
.dlg .side i { display: block; font-style: normal; padding: 6px 14px; } .dlg .side i.on { background: #e0f2fe; }
.dlg .files { position: absolute; left: 142px; top: 50px; display: flex; gap: 12px; }
.dlg .f { width: 110px; height: 110px; border-radius: 6px; padding: 7px 6px; display: grid; gap: 5px; justify-items: center; align-content: start; }
.dlg .th { width: 96px; height: 62px; border-radius: 4px; background: linear-gradient(135deg, #7c5cff, #2fd1c5); } .dlg .b2 { background: linear-gradient(135deg, #f59e0b, #ef4444); } .dlg .b3 { background: #e5e7eb; }
.dlg .f span { font-size: 11px; line-height: 1.25; text-align: center; word-break: break-all; }
.hs-fake.dlg.on .f1 { background: #dbeafe; box-shadow: inset 0 0 0 1px #93c5fd; }
.dlg .foot { position: absolute; left: 0; right: 0; bottom: 0; height: 44px; border-top: 1px solid #e2e8f0; display: flex; align-items: center; gap: 8px; padding: 0 12px; }
.dlg .foot .name { flex: 1; } .dlg .foot em { font-style: normal; opacity: 0; } .hs-fake.dlg.on .foot em { opacity: 1; }
.dlg button { width: 70px; height: 28px; border: 1px solid #cbd5e1; background: #fff; border-radius: 4px; font: inherit; color: inherit; } .dlg button.open { background: #0d9488; border-color: #0d9488; color: #fff; }
/* 7판: 흰 바탕에서 나타나고 사라짐 · 날아가는 도메인 · 마무리 장면(흐렸다 또렷해지는 글자 + 작업 중인 작은 브라우저) */
.hero-fit { background: #fff; }
.hs-tv { position: absolute; inset: 0; transform-origin: 50% 50%; }
.hs-fly.txt { display: flex; align-items: center; justify-content: center; background: #d5f5ef; color: #0f8a7a; border: 1.5px solid #0f8a7a; border-radius: 999px; white-space: nowrap; overflow: hidden; font-family: 'Malgun Gothic', sans-serif; }
.hs-end { position: absolute; inset: 0; display: none; z-index: 15; background: #fff; }
.hs-end { justify-content: center; align-items: center; gap: 4%; padding: 0 5%; }
.hs-end .l { flex: 0 1 auto; max-width: 58%; display: flex; flex-direction: column; gap: .4em; }
.hs-end .kick { margin: 0; font: 700 clamp(16px, 2.3vw, 32px)/1.3 'IBM Plex Sans KR', 'Malgun Gothic', sans-serif; color: #0f8a7a; }
.hs-end h2 { margin: 0; font: 700 clamp(34px, 6.2vw, 92px)/1.12 'IBM Plex Sans KR', 'Malgun Gothic', sans-serif; color: #12201d; word-break: keep-all; letter-spacing: -.01em; }
.hs-end .r { flex: 0 0 34%; display: flex; align-items: center; justify-content: center; }
.hs-end .mini { position: relative; width: 100%; height: auto; aspect-ratio: 1280 / 744; border-radius: 10px; overflow: hidden; box-shadow: 0 18px 50px rgba(8, 40, 40, .28); transform: scale(0); }
.hs-end .mini .hs-ov, .hs-end .mini .hs-wash { display: none; }
.hs-end .w { display: inline-block; white-space: nowrap; opacity: 0; }
