/* 공개 사이트(고객용) — catalog.css(도감 카드·창·버튼) 위에 얹는 페이지 틀.
 * 색은 도감과 같은 어두운 바탕 + ONICSOFT 시안. 글꼴은 build_site.py가 넣는다(공개 저장소판은 CDN Pretendard·Montserrat, 본사이트판은 시스템 글꼴). */
html { scroll-padding-top: 68px; }
html { scroll-behavior: smooth; }   /* 움직임 줄이기 설정과 관계없이 같게(본사이트 규칙: 애니메이션 효과를 끈 PC에서도 똑같이) */
body.site { padding-bottom: 0; background: var(--bg); font-size: 15px; line-height: 1.6; overflow-x: hidden; word-break: keep-all; overflow-wrap: anywhere; }
body.site h1, body.site h2, body.site h3 { letter-spacing: -.015em; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 80; padding: 10px 14px; border-radius: 10px; background: var(--acc); color: var(--acc-ink); font-weight: 700; }
.skip:focus { top: 10px; }
a { color: #8fd7f7; }
.eyebrow { margin: 0 0 12px; color: var(--acc); font-size: 13px; font-weight: 700; letter-spacing: .04em; }
.fine { margin: 14px 0 0; color: var(--mute); font-size: 13px; line-height: 1.7; }
small { color: var(--mute); font-weight: 400; font-size: 12px; margin-left: 4px; }

/* 링크 모양 버튼 */
.btn { display: inline-flex; align-items: center; gap: 6px; height: 44px; padding: 0 20px; border-radius: 11px; border: 1px solid var(--line2);
  background: var(--raise); color: var(--ink); text-decoration: none; font-weight: 600; white-space: nowrap; }
.btn:hover { border-color: #45506b; }
.btn.primary { background: var(--acc); border-color: var(--acc); color: var(--acc-ink); font-weight: 700; }
.btn.primary:hover { background: #74d3fb; }
.btn.text { background: transparent; border-color: transparent; color: var(--sub); padding: 0 8px; }
.btn.text:hover { color: var(--ink); }
button.small { height: 30px; padding: 0 10px; font-size: 13px; }
.big { height: 48px !important; font-size: 15px; }

/* 위 막대 */
.site .top { gap: 24px; }
.site .brand { color: var(--ink); text-decoration: none; flex: none; }
.menu { display: flex; gap: 2px; margin-left: auto; overflow-x: auto; scrollbar-width: none; }
.menu::-webkit-scrollbar { display: none; }
.menu a { padding: 8px 13px; border-radius: 99px; color: var(--sub); text-decoration: none; white-space: nowrap; font-size: 14px; }
.menu a:hover { color: var(--ink); background: var(--raise); }
.menu a.cta { color: var(--acc); }
.menu a.out { margin-left: 8px; border: 1px solid var(--line2); }
.more { display: none; position: relative; }
.more summary { list-style: none; cursor: pointer; padding: 8px 12px; border-radius: 99px; color: var(--ink); white-space: nowrap; font-size: 13.5px;
  border: 1px solid var(--line2); }
.more summary::-webkit-details-marker { display: none; }
.more summary::after { content: " ▾"; color: var(--mute); }
.more[open] summary { background: var(--raise); }
.more summary:focus-visible { outline: 2px solid var(--acc); outline-offset: 2px; }
.more-list { position: absolute; right: 0; top: calc(100% + 8px); z-index: 25; min-width: 168px; padding: 6px; display: grid;
  border-radius: 12px; background: var(--panel); border: 1px solid var(--line2); box-shadow: 0 18px 40px rgba(0,0,0,.5); }
.more-list a { padding: 11px 14px; border-radius: 8px; color: var(--ink); text-decoration: none; }
.more-list a:hover, .more-list a:focus-visible { background: var(--raise); }

/* 따라다니는 제작 문의 — 카카오톡 상담처럼 보이는 노란 말풍선(로고 그림은 쓰지 않음) */
.fab { position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px) + var(--lift, 0px)); z-index: 40;
  display: inline-flex; align-items: center; gap: 8px; min-height: 50px; padding: 0 20px 0 16px; border-radius: 99px;
  background: #fee500; color: #191600; font-weight: 700; font-size: 15px; text-decoration: none;
  box-shadow: 0 10px 28px rgba(0,0,0,.45); transition: opacity .2s, transform .2s, visibility .2s; }
.fab svg { width: 22px; height: 22px; fill: currentColor; stroke: none; }
.fab:hover { background: #ffeb3b; }
.fab:focus-visible { outline: 3px solid var(--acc); outline-offset: 3px; }
.fab.off { opacity: 0; visibility: hidden; transform: translateY(14px); pointer-events: none; }
body:has(.modal:not([hidden])) .fab { display: none; }       /* 확대 창이 열려 있으면 숨김 */

/* 1. 첫 화면 */
.intro { max-width: 1280px; margin: 0 auto; padding: 76px 28px 72px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 56px; align-items: center; }
.intro h1 { margin: 0; font-size: clamp(32px, 3.8vw, 54px); line-height: 1.2; font-weight: 800; }
.lead { margin: 22px 0 0; color: var(--sub); font-size: 17px; line-height: 1.75; }
.intro-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 34px; }
.intro-actions .btn:not(.text):not(.primary) { border-color: var(--acc); color: var(--acc); background: transparent; }
.intro-actions .btn:first-child:not([hidden]) + .btn { border-color: var(--line2); color: var(--ink); }
.intro-frame { margin: 0; min-width: 0; }
.intro-frame.tall { max-width: 360px; justify-self: center; }
.frame-media { position: relative; display: block; width: 100%; height: auto; padding: 0; aspect-ratio: 16 / 9; border-radius: 18px; overflow: hidden;
  border: 1px solid var(--line2); background: #07060f; cursor: zoom-in; box-shadow: 0 30px 80px rgba(0,0,0,.5); }
.intro-frame.tall .frame-media { aspect-ratio: 9 / 16; }
.frame-media img, .frame-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.frame-media video { opacity: 0; transition: opacity .35s; }
.frame-media video.ready { opacity: 1; }
.frame-tag { position: absolute; left: 12px; top: 12px; padding: 4px 10px; border-radius: 99px; background: rgba(0,0,0,.6); color: #dfe6f3;
  font-size: 12px; backdrop-filter: blur(6px); }
.intro-frame figcaption { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-top: 12px;
  color: var(--sub); font-size: 13.5px; }
.intro-frame figcaption b { color: var(--ink); font-weight: 600; }
.intro-frame figcaption a { text-decoration: none; }

/* 공통 구역 */
.block { max-width: 1280px; margin: 0 auto; padding: 80px 28px; border-top: 1px solid var(--line); }
.block-head { max-width: 760px; margin-bottom: 34px; }
.block-head h2 { margin: 0; font-size: clamp(26px, 3vw, 36px); font-weight: 800; line-height: 1.3; }
.block-head > p:not(.eyebrow) { margin: 14px 0 0; color: var(--sub); line-height: 1.8; }
.block-head b { color: var(--ink); }

/* 2. 작업물 */
.work-play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); padding: 12px 22px; border-radius: 99px;
  background: rgba(8,10,15,.72); border: 1px solid rgba(255,255,255,.2); color: #fff; font-weight: 700; backdrop-filter: blur(8px); }
.work-empty-lead { margin: 0 0 22px; color: var(--sub); }
.work-slots { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.work-slots li { display: grid; gap: 4px; }
.slot-frame { display: grid; place-items: center; aspect-ratio: 16 / 9; margin-bottom: 10px; border-radius: 14px; border: 1px dashed var(--line2);
  background: repeating-linear-gradient(135deg, rgba(255,255,255,.015) 0 12px, transparent 12px 24px), var(--panel);
  color: var(--mute); font-size: 13px; letter-spacing: .04em; }
.slot-media { position: relative; width: 100%; height: auto; padding: 0; overflow: hidden; border-style: solid; background: #07060f; cursor: pointer; }
.slot-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.slot-media:hover img { transform: scale(1.03); }
.slot-media .work-play { padding: 8px 16px; font-size: 13.5px; letter-spacing: 0; }
.work-slots li.filled p { color: var(--sub); }
.work-slots b { font-size: 16px; }
.work-slots p { margin: 0; color: var(--mute); font-size: 13.5px; }
.chip.kind { background: rgba(56,189,248,.12); color: #8fd7f7; }
.ask-like { padding: 0; color: var(--acc); }

/* 3. 제작 안내 */
.services { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.services li { display: flex; gap: 20px; padding: 26px 24px 26px 0; border-bottom: 1px solid var(--line); }
.services li:nth-child(even) { padding-left: 24px; border-left: 1px solid var(--line); }
.services .no { flex: none; font: 700 15px "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans KR", "Malgun Gothic", system-ui, sans-serif; color: var(--acc); padding-top: 3px; }
.services h3 { margin: 0 0 6px; font-size: 19px; font-weight: 700; }
.services p { margin: 0; color: var(--sub); }
.services .eg { margin-top: 6px; color: var(--mute); font-size: 13.5px; }
.sub-title { margin: 56px 0 20px; font-size: 20px; font-weight: 800; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; counter-reset: step; }
.steps li { position: relative; padding: 20px 20px 22px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); counter-increment: step; }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 28px; height: 28px; margin-bottom: 14px; border-radius: 99px;
  background: var(--acc); color: var(--acc-ink); font: 700 14px "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans KR", "Malgun Gothic", system-ui, sans-serif; }
.steps li:not(:last-child)::after { content: ""; position: absolute; top: 34px; left: 56px; right: -14px; height: 1px; background: var(--line2); }
.steps b { font-size: 16px; }
.steps p { margin: 6px 0 0; color: var(--sub); font-size: 14px; }
.prepare { margin-top: 18px; padding: 18px 22px; border-radius: 14px; border: 1px dashed var(--line2); }
.prepare p { margin: 6px 0 0; color: var(--sub); font-size: 14px; }

/* 4. 모션 스타일(도감) — 도감 틀은 catalog.css, 여기선 구역 안에 맞춘다 */
.library { max-width: 1480px; }
/* 위쪽 탭: 모션 스타일 / 카메라 / 광고 레퍼런스 — 화면 위 막대 아래에 붙어 따라온다 */
.lib-tabs { position: sticky; top: 56px; z-index: 15; display: flex; align-items: center; gap: 6px; margin: -24px 0 34px; padding: 10px 0;
  background: linear-gradient(var(--bg) 78%, transparent); }
.lib-tablist { display: flex; gap: 6px; min-width: 0; }
/* 내려가 있을 때(막대가 위에 붙었을 때)만: 이 탭 처음으로 — 다른 탭을 눌러도 그 탭 처음으로 간다(site.js) */
.lib-up { flex: none; margin-left: auto; height: 40px; padding: 0 16px; border-radius: 99px; font-weight: 700; font-size: 14px;
  color: var(--ink); background: var(--panel); border-color: var(--line2); box-shadow: 0 6px 18px rgba(0,0,0,.35); }
.lib-up:hover { border-color: var(--acc); color: var(--acc); }
.lib-tabs button { flex: 0 1 auto; height: 46px; padding: 0 22px; border-radius: 99px; font-size: 16px; font-weight: 700; color: var(--sub);
  background: var(--panel); border-color: var(--line2); }
.lib-tabs button span { margin-left: 8px; font: 600 12.5px "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans KR", "Malgun Gothic", system-ui, sans-serif; color: var(--mute); }
.lib-tabs button[aria-selected="true"] { background: var(--ink); color: #0b0d12; border-color: var(--ink); }
.lib-tabs button[aria-selected="true"] span { color: #5b6275; }
.styles .filters { margin-top: 0; }
.styles .grid { max-width: none; padding: 10px 0 28px; }
.styles .section-title { margin-top: 26px; }
/* 고른 목록: 모션 스타일 구역을 지나는 동안만 화면 아래에 붙고, 다른 구역에서는 제자리(구역 끝)에 머문다 */
.library .tray { position: sticky; bottom: 12px; left: auto; right: auto; margin-top: 8px; padding: 10px 12px 10px 18px; border-radius: 14px;
  border: 1px solid var(--line2); }
.library .tray-head { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 12px; }
.tray-actions { display: flex; gap: 6px; margin-left: auto; flex-wrap: wrap; }
.tray.empty { padding-top: 12px; padding-bottom: 12px; box-shadow: none; background: rgba(17,20,27,.9); }
.tray.empty .tray-actions, .tray.empty #trayToggle { display: none; }
/* 빈 막대의 제작 문의(따라다니는 버튼 대신 — 카드 버튼을 가리지 않게) */
.tray-ask { display: none; }
.tray.empty .tray-ask { display: inline-flex; align-items: center; margin-left: auto; height: 34px; padding: 0 16px; border-radius: 99px;
  background: #fee500; color: #191600; font-weight: 700; font-size: 14px; text-decoration: none; white-space: nowrap; }
.tray.empty .tray-ask:hover { background: #ffeb3b; }
#trayToggle { height: 30px; padding: 0 10px; font-size: 13px; color: var(--acc); }
.tray:not(.open) #clearBtn { display: none; }                 /* 모두 비우기는 목록을 펼쳤을 때만 */
.library .picked { margin: 10px 0 2px; }
/* 요청 문장(창·조합 카드) */
.ask-line { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin: 0; padding: 10px 12px; border-radius: 10px;
  background: rgba(56,189,248,.07); border: 1px solid rgba(56,189,248,.22); color: var(--ink) !important; font-size: 14px; line-height: 1.65; }
.ask-line b { flex: none; color: #8fd7f7; font-size: 12.5px; font-weight: 700; }
.ask-line > span { flex: 1 1 220px; min-width: 0; }
.ask-line button { flex: none; margin-left: auto; color: var(--acc); }
/* 조합 예시 */
.styles .sub-title small { display: block; margin: 6px 0 0; font-size: 13.5px; }
.combos-wrap { margin-top: 44px; }
.combos-wrap .sub-title { margin-top: 0; }
.all-title { margin: 8px 0 14px; }
.combos { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 18px; }
.combo { display: flex; flex-direction: column; border-radius: 16px; background: var(--card); border: 1px solid var(--line); overflow: hidden; }
.combo-strip { position: relative; display: flex; width: 100%; height: auto; padding: 0; border: 0; border-radius: 0; aspect-ratio: 32 / 9;
  background: #07060f; cursor: zoom-in; overflow: hidden; gap: 2px; }
.combo-strip:focus-visible { outline-offset: -3px; }
.combo-cell { position: relative; flex: 1 1 0; min-width: 0; overflow: hidden; }
.combo-cell .still, .combo-cell img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background-repeat: no-repeat; }
.combo-strip .play { position: absolute; right: 10px; bottom: 10px; padding: 4px 10px; border-radius: 99px; background: rgba(0,0,0,.6);
  font-size: 11.5px; color: #dfe6f3; backdrop-filter: blur(6px); }
.combo-body { display: flex; flex-direction: column; gap: 8px; padding: 14px 16px 16px; flex: 1; }
.combo-body h4 { margin: 0; font-size: 17px; font-weight: 800; }
.combo-for { margin: 0; color: var(--sub); font-size: 13.5px; }
.combo-parts { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px; font-size: 12.5px; }
.combo-parts { counter-reset: part; }
.combo-parts li { padding: 2px 9px; border-radius: 99px; background: var(--raise); color: var(--ink); counter-increment: part; }
.combo-parts li.transition { background: rgba(255,77,141,.14); color: #ff9dbf; }
.combo-parts li::before { content: counter(part); margin-right: 5px; color: var(--acc); font-weight: 700; font-size: 11.5px; }
.combo-parts li.transition::before { color: inherit; }
.combo-len { margin: 0; color: var(--mute); font-size: 12.5px; }
.combo .ask-line { font-size: 13px; padding: 8px 10px; }
.combo-actions { display: flex; gap: 8px; margin-top: auto; padding-top: 4px; }
.combo-actions button { flex: 1 1 0; }
/* 조합 슬라이드 넘김(좁은 화면에서만 보임) */
.combo-nav { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 14px; }
.combo-dots { display: flex; gap: 6px; }
.combo-dots button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 99px; background: var(--line2); transition: width .2s, background .2s; }
.combo-dots button[aria-current="true"] { width: 22px; background: var(--acc); }
.combo-count { min-width: 3.2em; color: var(--mute); font-size: 12.5px; text-align: center; font-variant-numeric: tabular-nums; }
.combo-go { width: 36px; height: 36px; padding: 0; border-radius: 99px; font-size: 22px; line-height: 1; color: var(--ink); }
.combo-go:disabled { opacity: .3; }
@media (hover: none) { .combo-go { display: none; } }        /* 터치 기기는 손가락으로 넘긴다 */
@media (min-width: 721px) { .combo-nav { display: none !important; } }
.site .toast { top: 68px; bottom: auto; max-width: calc(100% - 32px); text-align: center; }   /* 아래 선택 막대를 가리지 않게 위쪽에 */

/* AI 프롬프트(창 안) */
.prompt-box { display: grid; gap: 8px; padding: 10px 12px; border-radius: 10px; background: rgba(167,139,250,.07); border: 1px solid rgba(167,139,250,.25); }
.prompt-head { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: 13px; }
.prompt-head b { color: #c7b3ff; font-size: 12.5px; }
.prompt-head .muted { flex: 1 1 200px; }
.prompt-head #mPromptCopy { border-color: rgba(167,139,250,.5); color: #e2d9ff; }
#mPrompt { margin: 0; max-height: 260px; overflow: auto; padding: 12px 14px; border-radius: 8px; background: #0c0f16; border: 1px solid var(--line);
  color: var(--sub); font: 12.5px/1.65 ui-monospace, "Cascadia Mono", Consolas, monospace; white-space: pre-wrap; word-break: break-all; }
.prompt-wide { align-self: flex-start; padding: 0 2px; color: #c7b3ff; }
#promptBtn { border-color: rgba(167,139,250,.5); color: #e2d9ff; }

/* 4-2. 레퍼런스(연출 틀) */
.recipe-tabs { margin: 0 0 18px; }
.recipes { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 18px; }
.recipe { display: flex; flex-direction: column; border-radius: 16px; background: var(--card); border: 1px solid var(--line); overflow: hidden; }
.recipe-strip { aspect-ratio: 2.4 / 1; }
.palette { position: absolute; left: 10px; bottom: 10px; display: flex; border-radius: 6px; overflow: hidden; box-shadow: 0 2px 10px rgba(0,0,0,.5);
  border: 1px solid rgba(255,255,255,.25); }
.palette i { width: 18px; height: 18px; }
.recipe-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 12.5px; }
.recipe h4 small { display: block; margin: 3px 0 0; font: 600 12px "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans KR", "Malgun Gothic", system-ui, sans-serif; letter-spacing: .04em; color: var(--mute); }
.recipe .when { font-size: 12.5px; }
.recipe-scenes { list-style: none; margin: 2px 0 0; padding: 10px 0 0; display: grid; gap: 5px; border-top: 1px dashed var(--line2); font-size: 13px; color: var(--sub); }
.recipe-scenes li { display: grid; grid-template-columns: 64px 1fr; gap: 8px; line-height: 1.5; }
.recipe-scenes .t { color: var(--acc); font: 600 12px "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans KR", "Malgun Gothic", system-ui, sans-serif; padding-top: 1px; white-space: nowrap; }
.recipe-cams { display: flex; flex-wrap: wrap; gap: 5px; align-items: center; margin: 0; font-size: 12px; }
.recipe-cams b { color: #8fd7f7; margin-right: 2px; }
.recipe-cams span { padding: 2px 8px; border-radius: 99px; background: rgba(56,189,248,.1); color: #bfe8fb; }

/* 광고 레퍼런스 갤러리(다시 만든 영상) */
.ref-filters { margin: 0 0 6px; }
.refs .grid { max-width: none; padding: 10px 0 28px; }
.ref-card .media .still { background-color: #07090f; }
.badge.ratio { left: auto; right: 10px; top: 10px; min-width: 0; padding: 0 8px; background: rgba(5,7,13,.75); color: #dff4ff; font-size: 11.5px; }
.ref-tech { display: flex; flex-wrap: wrap; gap: 4px; margin: 0; }
.ref-tech span { padding: 2px 8px; border-radius: 99px; background: var(--raise); color: var(--sub); font-size: 11.5px; }
.recipe-title { margin-top: 48px; }
/* 4-3. 카메라 워크 — 무대(cstage)는 480×270을 카드 폭에 맞춰 줄인다 */
.cam-opts-wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-bottom: 8px; padding: 14px 18px; border-radius: 14px;
  background: var(--panel); border: 1px solid var(--line2); }
.cam-opts-wrap > b { color: #8fd7f7; font-size: 14px; }
.cam-opts-wrap .fine { flex-basis: 100%; margin: 0; }
.cam-opts { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; }
.cam-opt { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--sub); }
.cam-opt input, .cam-opt select { height: 34px; padding: 0 10px; border-radius: 9px; border: 1px solid var(--line2); background: #0c0f16; color: var(--ink); }
.cam-opt.wide input { width: 150px; }
.camera .grid { max-width: none; padding: 10px 0 28px; }
.cam-media { cursor: default; }
.cstage { position: absolute; inset: 0; overflow: hidden; background: #05070d; }
.cfx { position: absolute; left: 0; top: 0; width: 480px; height: 270px; transform-origin: 0 0; }
.cvp { position: absolute; inset: 0; overflow: hidden; perspective-origin: 50% 50%; }
.cworld, .cset, .co { position: absolute; left: 50%; top: 50%; transform-style: preserve-3d; }
.cset { left: 0; top: 0; }
.cf, .cf2 { position: absolute; left: 0; top: 0; backface-visibility: hidden; box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); }
.cf2 { box-shadow: none; }
.cl { position: absolute; left: 0; right: 0; bottom: 10px; text-align: center; font: 700 12px "Pretendard Variable", Pretendard, sans-serif; color: rgba(255,255,255,.92); letter-spacing: .04em; }
.cscreen { position: absolute; inset: 14px 10px 30px; border-radius: 4px; overflow: hidden; box-shadow: inset 0 0 0 1px rgba(255,255,255,.3); }
.cscreen i { position: absolute; left: 50%; bottom: 34%; width: 8px; height: 14px; margin-left: -4px; background: linear-gradient(160deg,#fbbf24,#f472b6); }
.cscreen u { position: absolute; left: 0; right: 0; bottom: 0; height: 34%; background: repeating-linear-gradient(90deg,rgba(251,191,36,.25) 0 1px,transparent 1px 8px), #1a0a14; }
.orb { border-radius: 50%; }
.cring { width: 220px; height: 220px; margin: -110px 0 0 -110px; border-radius: 50%; border: 14px solid #38bdf8; box-shadow: 0 0 24px #38bdf8, inset 0 0 24px #38bdf8; }
.cring.gate { width: 130px; height: 130px; margin: -65px 0 0 -65px; border-width: 7px; border-color: #f472b6; box-shadow: 0 0 18px #f472b6, inset 0 0 18px #f472b6; }
.cfloor { position: absolute; left: -400px; top: -400px; width: 800px; height: 800px; transform: rotateX(90deg) scale(4); }
.cshadow { position: absolute; left: 0; top: 0; border-radius: 50%; background: radial-gradient(closest-side, rgba(0,0,0,.55), transparent); }
.ctint, .cflash { position: absolute; inset: 0; pointer-events: none; }
.ctint { mix-blend-mode: soft-light; }
.cflash { background: #fff; opacity: 0; }
.ctag { position: absolute; left: 50%; top: 22%; transform: translateX(-50%) rotate(-3deg); padding: 3px 10px; border-radius: 4px; background: #fde047; color: #111;
  font: 800 13px "Pretendard Variable", Pretendard, sans-serif; box-shadow: 0 4px 0 #111; }
.ccorner { position: absolute; inset: 8px; pointer-events: none; opacity: .8; background-repeat: no-repeat;
  background-image: linear-gradient(#38bdf8,#38bdf8), linear-gradient(#38bdf8,#38bdf8), linear-gradient(#38bdf8,#38bdf8), linear-gradient(#38bdf8,#38bdf8),
    linear-gradient(#38bdf8,#38bdf8), linear-gradient(#38bdf8,#38bdf8), linear-gradient(#38bdf8,#38bdf8), linear-gradient(#38bdf8,#38bdf8);
  background-size: 14px 1.5px, 1.5px 14px, 14px 1.5px, 1.5px 14px, 14px 1.5px, 1.5px 14px, 14px 1.5px, 1.5px 14px;
  background-position: 0 0, 0 0, 100% 0, 100% 0, 0 100%, 0 100%, 100% 100%, 100% 100%; }
.chud { position: absolute; right: 14px; top: 12px; padding: 2px 7px; border-radius: 5px; background: rgba(5,7,13,.6); color: #dff4ff;
  font: 600 11px "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans KR", "Malgun Gothic", system-ui, sans-serif; letter-spacing: .03em; font-variant-numeric: tabular-nums; }
.cmap { position: absolute; right: 12px; bottom: 12px; width: 40px; height: 56px; padding: 3px; border-radius: 6px; background: rgba(5,7,13,.72);
  border: 1px solid rgba(56,189,248,.35); overflow: hidden; }
.cdefs { position: absolute; width: 0; height: 0; }
.ccomp .cpane { position: absolute; overflow: hidden; }
.ccomp .cpane .cstage { position: absolute; inset: 0; }
.ccomp .cpane .cmap, .ccomp .cpane .ccorner, .ccomp .cpane .chud { display: none; }
.ccomp.split .p0 { left: 0; top: 0; width: calc(50% - 1px); height: 100%; }
.ccomp.split .p1 { right: 0; top: 0; width: calc(50% - 1px); height: 100%; }
.ccomp.split::after { content: ""; position: absolute; left: calc(50% - 1px); top: 0; width: 2px; height: 100%; background: #eef1f7; opacity: .8; }
.ccomp.pip .p0 { inset: 0; }
.ccomp.pip .p1 { right: 6%; bottom: 9%; width: 34%; height: 34%; border-radius: 6px; box-shadow: 0 0 0 2px #38bdf8, 0 8px 24px rgba(0,0,0,.6); }
/* 말 한 줄 차이 */
.cam-phrases { margin: 0 0 26px; padding: 18px 20px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line2); }
.cam-phrases h3 { margin: 0 0 4px; font-size: 18px; }
.cam-phrases > p { margin: 0 0 12px; color: var(--mute); font-size: 13px; }
.cam-phrases ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(420px, 1fr)); gap: 8px 18px; }
.cam-phrases li { display: grid; grid-template-columns: 9.5em auto 1fr auto; align-items: center; gap: 8px; padding: 8px 0; border-bottom: 1px dashed var(--line); font-size: 13.5px; }
.cam-phrases .vague { color: var(--mute); }
.cam-phrases .arrow { color: var(--acc); }
.cam-phrases .precise { color: var(--ink); }
.cam-card .cam-more summary { cursor: pointer; color: var(--acc); font-size: 12.5px; }
.cam-prompt { margin: 8px 0 0; padding: 9px 11px; border-radius: 8px; background: #0c0f16; border: 1px solid var(--line); color: var(--sub); font-size: 12.5px; line-height: 1.6; }
.ref-card .pick[aria-pressed="true"], .cam-card .pick[aria-pressed="true"] { background: rgba(56,189,248,.14); color: var(--acc); border-color: rgba(56,189,248,.5); }
.cam-bar { position: sticky; bottom: 12px; z-index: 6; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 8px; padding: 10px 14px;
  border-radius: 14px; background: rgba(13,16,23,.94); border: 1px solid var(--line2); backdrop-filter: blur(12px); box-shadow: 0 -10px 30px rgba(0,0,0,.4); }
.cam-bar #camBarInfo { margin-right: auto; color: var(--ink); font-size: 14px; }
.cam-bar .btn { height: 36px; font-size: 13.5px; }

/* 5. 자주 묻는 내용 */
.qa { max-width: 860px; border-top: 1px solid var(--line); }
.qa details { border-bottom: 1px solid var(--line); }
.qa summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; padding: 20px 4px; font-weight: 600; font-size: 16px; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: "+"; color: var(--acc); font-size: 20px; line-height: 1; }
.qa details[open] summary::after { content: "−"; }
.qa details p { margin: 0 4px 22px; color: var(--sub); line-height: 1.8; }
.qa details p b { color: var(--ink); }

/* 6. 제작 문의 */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 36px; align-items: start; }
.ask { display: grid; gap: 20px; }
.field { display: grid; gap: 8px; margin: 0; padding: 0; border: 0; min-width: 0; }
.field > span, .field legend, .field-label label { font-weight: 600; font-size: 14.5px; padding: 0; }
.field-label { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field input:not([type="checkbox"]), .field select, .field textarea {
  width: 100%; min-height: 44px; padding: 10px 14px; border-radius: 10px; border: 1px solid var(--line2); background: #0c0f16; color: var(--ink); }
.field textarea { resize: vertical; line-height: 1.6; }
.field input::placeholder, .field textarea::placeholder { color: #5b6477; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { position: relative; }
.chips input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chips span { display: inline-flex; align-items: center; height: 40px; padding: 0 16px; border-radius: 99px; border: 1px solid var(--line2);
  background: var(--panel); color: var(--sub); }
.chips input:checked + span { background: rgba(56,189,248,.14); border-color: var(--acc); color: var(--ink); }
.chips input:checked + span::before { content: "✓"; margin-right: 6px; color: var(--acc); }
.chips input:focus-visible + span { outline: 2px solid var(--acc); outline-offset: 2px; }
.summary { position: sticky; top: 76px; }
.summary-card { padding: 22px; border-radius: 16px; background: var(--panel); border: 1px solid var(--line2); }
.summary-card h3 { margin: 0 0 12px; font-size: 17px; }
#summary { width: 100%; padding: 14px 16px; border-radius: 10px; border: 1px solid var(--line); background: #0c0f16; color: var(--ink);
  line-height: 1.65; font-size: 14px; resize: vertical; }
.copy-note { min-height: 1.6em; margin: 10px 0 0; font-size: 13.5px; color: var(--sub); }
.copy-note.good { color: #86efac; }
.copy-note.bad { color: #fcd34d; }
.summary-actions { display: grid; gap: 10px; margin-top: 6px; }
.summary-actions .btn { justify-content: center; }

/* 아래 */
.foot-site { border-top: 1px solid var(--line); background: #080a0e; }
.foot-in { max-width: 1280px; margin: 0 auto; padding: 40px 28px 16px; display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.foot-in p { margin: 0; color: var(--sub); flex: 1; min-width: 220px; }
.foot-site .footer-biz { max-width: 1280px; margin: 0 auto; padding: 0 28px 10px; display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 12.5px; }
.foot-site .footer-biz > div { display: flex; gap: 6px; }
.foot-site .footer-biz dt { color: var(--mute); white-space: nowrap; flex: none; }
.foot-site .footer-biz dd { margin: 0; color: var(--sub); }
.foot-site .copy.legal { display: flex; flex-wrap: wrap; gap: 4px 16px; align-items: baseline; }
.foot-site .copy.legal a { color: var(--sub); text-decoration: none; }
.foot-site .copy.legal a:hover { color: var(--ink); text-decoration: underline; }
.foot-site .copy.legal .legal-privacy { color: var(--ink); font-weight: 700; }   /* 개인정보 처리방침은 법에 따라 다른 링크와 구분(굵게) */
.foot-site .copy { max-width: 1280px; margin: 0 auto; padding: 0 28px 32px; color: var(--mute); font-size: 12.5px; }

/* 작업물 세로 영상 창 */
.sheet.tall { --ratio: .5625; width: min(460px, 100%, max(260px, calc((100vh - 2 * var(--pad) - 290px) * var(--ratio))));
  width: min(460px, 100%, max(260px, calc((100dvh - 2 * var(--pad) - 290px) * var(--ratio)))); }
.sheet.tall video { aspect-ratio: 9 / 16; }
/* 넓은 화면의 세로 영상: 좁은 창 아래로 글이 길게 늘어지지 않게 영상 왼쪽 · 설명 오른쪽 */
@media (min-width: 721px) {
  .sheet.tall { --h: min(calc(100vh - 2 * var(--pad)), 900px); --h: min(calc(100dvh - 2 * var(--pad)), 900px);
    flex-direction: row; width: auto; max-width: 100%; }
  .sheet.tall .sheet-media { height: var(--h); }
  .sheet.tall video { width: auto; height: 100%; }
  .sheet.tall .sheet-body { width: 380px; flex: none; max-height: var(--h); align-content: start; padding-top: 58px; }
  .sheet.tall .sheet-actions { position: sticky; bottom: -22px; margin: 6px -24px -22px; padding: 12px 24px 16px; background: var(--panel); border-top: 1px solid var(--line2); }
}
/* 낮고 넓은 화면(노트북 등)의 가로 영상도 영상 왼쪽 · 설명 오른쪽 — 아래에 두면 영상이 너무 작아진다 */
@media (min-width: 1000px) and (max-height: 780px) {
  .sheet:not(.tall) { flex-direction: row; align-items: stretch;
    width: min(1320px, 100%, calc((100vh - 2 * var(--pad)) * 1.7778 + 360px));
    width: min(1320px, 100%, calc((100dvh - 2 * var(--pad)) * 1.7778 + 360px)); }
  .sheet:not(.tall) .sheet-media { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; }
  .sheet:not(.tall) .sheet-body { width: 360px; flex: none; align-content: start; padding-top: 58px; }
  .sheet:not(.tall) .sheet-actions { position: sticky; bottom: -22px; margin: 6px -24px -22px; padding: 12px 24px 16px; background: var(--panel); border-top: 1px solid var(--line2); }
}

@media (max-width: 1000px) {
  .intro { grid-template-columns: 1fr; gap: 36px; padding-top: 52px; }
  .steps { grid-template-columns: 1fr 1fr; }
  .steps li::after { display: none; }
  .contact-grid { grid-template-columns: 1fr; }
  .summary { position: static; }
}
@media (max-width: 720px) {
  .site .top { gap: 12px; padding: 0 0 0 16px; }
  .site .top { padding-right: 16px; }
  .menu { overflow: visible; gap: 4px; align-items: center; }   /* 좁은 화면: 제작 문의 · 홈 · 메뉴▾ 만 */
  .menu a.sec { display: none; }
  .more { display: block; }
  .menu a { padding: 8px 10px; font-size: 13.5px; }
  .menu a.out { margin-left: 0; }
  .fab { right: 12px; min-height: 48px; padding: 0 16px 0 14px; font-size: 14.5px; }
  .out-name, .menu .ext { display: none; }                    /* 좁은 화면에서는 "홈"만 */
  .intro { padding: 40px 16px 48px; }
  .lead { font-size: 15.5px; }
  .lead br { display: none; }
  .block { padding: 56px 16px; }
  .services { grid-template-columns: 1fr; }
  .services li, .services li:nth-child(even) { padding: 22px 0; border-left: 0; }
  .steps { grid-template-columns: 1fr; }
  .work-slots { grid-template-columns: 1fr; gap: 14px; }
  .work-slots li { grid-template-columns: 120px 1fr; column-gap: 14px; align-items: center; }
  .work-slots .slot-frame { grid-row: span 2; margin: 0; font-size: 12px; }
  .slot-media .work-play { padding: 4px 10px; font-size: 12px; }
  .field-row { grid-template-columns: 1fr; }
  .styles .grid { padding: 8px 0 24px; }
  /* 조합 예시: 좁은 화면에서는 한 장씩 넘기는 슬라이드. 지금 카드가 가운데, 양옆에 앞뒤 카드가 조금씩 보인다.
     첫·마지막 카드도 가운데에 오도록 양옆 여백 = (보이는 폭 − 카드 폭) / 2 — catalog-ui.js가 폭을 재서 넣는다(아래 16px은 넣기 전 기본값) */
  .combos { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; margin: 0 -16px; padding: 2px 16px 6px;
    scrollbar-width: none; overscroll-behavior-x: contain; }
  .combos::-webkit-scrollbar { display: none; }
  .combo { flex: 0 0 min(80vw, 340px); scroll-snap-align: center; scroll-snap-stop: always; }
  .combos-wrap { margin-top: 34px; }
  .lib-tabs { top: 52px; margin: -16px -16px 24px; padding: 8px 16px; gap: 8px; }
  .lib-tablist { overflow-x: auto; scrollbar-width: none; }
  .lib-tablist::-webkit-scrollbar { display: none; }
  .lib-tabs button { height: 40px; padding: 0 14px; font-size: 14.5px; flex: none; }
  /* 붙어 있는 동안은 리모컨처럼 작게: 개수를 빼서 세 탭 + ↑가 한 줄에 */
  .lib-tabs.stuck button { padding: 0 11px; font-size: 13.5px; }
  .lib-tabs.stuck [role=tab] span { display: none; }
  .lib-up { width: 40px; padding: 0; }
  .lib-up span { display: none; }
  .recipes { grid-template-columns: 1fr; }
  .camera .grid { padding: 8px 0 24px; }
  .cam-opt.wide { flex-basis: 100%; }
  .cam-phrases ol { grid-template-columns: 1fr; }
  .cam-phrases li { grid-template-columns: 1fr auto; }
  .cam-phrases .arrow { display: none; }
  .cam-phrases .precise { grid-column: 1; }
  .cam-opt.wide input { flex: 1; width: auto; }

  .library .tray { bottom: 8px; padding: 8px 10px; }
  .library .tray-head { gap: 4px 8px; font-size: 13px; }
  .tray.empty { padding: 8px 12px; }
  .tray.empty .tray-head b { display: none; }
  .tray.empty #trayInfo { font-size: 12.5px; flex: 1 1 0; min-width: 0; }
  .tray.empty .tray-ask { height: 32px; padding: 0 12px; font-size: 13px; }
  #trayToggle { margin-left: auto; }
  .tray-actions { margin-left: 0; width: 100%; flex-wrap: nowrap; }
  .tray-actions button { flex: 1 1 0; min-width: 0; height: auto; min-height: 38px; padding: 4px 6px; font-size: 13px; line-height: 1.25; white-space: normal; }
  .summary-card { padding: 16px; }
  .foot-in { padding: 32px 16px 12px; }
  .foot-site .copy { padding: 0 16px 28px; }
  .foot-site .footer-biz { padding: 0 16px 10px; flex-direction: column; }
}
@media (max-width: 380px) { .site .brand span { display: none; } }   /* 아주 좁으면 브랜드는 ONICSOFT.만 */

/* 막대의 담은 광고 레퍼런스 */
.picked li.ref .n { background: rgba(251,191,36,.16); color: #fcd34d; }
.picked li.prin .n { background: rgba(52,211,153,.16); color: #6ee7b7; }
