/* SIRIAI 사업소개 덱 — portfolio.siriai.co.kr 와 같은 언어 (Sales/Proposal/_docs/SPEC.md §2)
   셸 #ebeae7 위 흰 패널 · 잉크 #171310 · 보조 #6f6a5c · 헤어라인 #e4ded2 · 카드 #f5f2ec
   레드 #fa233b 는 활성·선택·주 CTA, 그리고 장마다 초점 하나(큰 숫자의 +, 잉크 면 위 핵심)에.
   (10-13 준용: 검정만 키컬러라 단조롭다 — 아이아이 덱의 주황처럼 레드를 키포인트로) 폰트 하나(SF Pro → Inter Tight → Noto Sans KR). */

:root {
  --shell: #ebeae7; --bg: #ffffff; --card: #f5f2ec;
  --ink: #171310; --muted: #6f6a5c; --ink-3: #9a948a; --ink-4: #c8c2b7;
  --line: #e4ded2; --line-2: #d2cbbe;
  --accent: #fa233b; --accent-soft: rgba(250, 35, 59, .14);
  --accent-glow: 0 12px 30px -6px rgba(250, 35, 59, .55);
  --display: -apple-system, 'SF Pro Display', 'Inter Tight', 'Noto Sans KR', Helvetica, Arial, 'Apple SD Gothic Neo', sans-serif;
  --body: -apple-system, 'SF Pro Text', 'Inter Tight', 'Noto Sans KR', Helvetica, Arial, 'Apple SD Gothic Neo', sans-serif;
  --ease: cubic-bezier(.16, 1, .3, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; overscroll-behavior-x: none; }   /* 트랙패드 가로 밀기가 뒤로 가기로 새지 않게 — 장 넘기기에 쓴다 */
body {
  font-family: var(--body); color: var(--ink); background: var(--shell);
  -webkit-font-smoothing: antialiased; letter-spacing: -.01em; line-height: 1.5;
  word-break: keep-all; overflow-wrap: break-word; overflow: hidden;
}
::selection { background: var(--accent-soft); }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; letter-spacing: inherit; text-align: inherit; }
ul, ol { list-style: none; }
img { display: block; max-width: 100%; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; letter-spacing: -.03em; line-height: 1.18; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.muted { color: var(--muted); }
.num { font-family: var(--display); font-weight: 600; letter-spacing: -.045em; line-height: 1; font-variant-numeric: tabular-nums; }
.num small { font-size: .34em; font-weight: 600; letter-spacing: -.01em; margin-left: .12em; color: var(--muted); }
.num em { font-style: normal; color: var(--accent); }
/* 영문 라벨만 대문자 — 한글에는 걸지 않는다 */
.label { font-family: var(--display); font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.label b { color: var(--ink); margin-left: 6px; }
.label-kr { font-size: 15px; font-weight: 600; color: var(--muted); }

/* ───────── 프리미티브 (Proposal globals.css 와 같은 이름) ───────── */
.pill {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; white-space: nowrap;
  padding: 10px 18px; border-radius: 999px; background: var(--accent); color: #fff;
  font-family: var(--display); font-size: 14px; font-weight: 700; transition: transform .2s var(--ease), filter .2s;
}
.pill:hover { filter: brightness(1.06); }
.pill:active { transform: scale(.98); }
.pill:disabled { filter: grayscale(.4) brightness(1.1); cursor: default; }
.pill.lg { padding: 15px 26px; font-size: 16px; font-weight: 800; box-shadow: var(--accent-glow); }
.pill svg { width: 18px; height: 18px; }
.pill-ghost {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; white-space: nowrap;
  padding: 10px 18px; border-radius: 999px; background: var(--card); border: 1px solid var(--line);
  color: var(--muted); font-family: var(--display); font-size: 14px; font-weight: 600; transition: color .15s, border-color .15s;
}
.pill-ghost:hover { color: var(--ink); border-color: var(--line-2); }
.pill-ghost.lg { padding: 14px 24px; font-size: 16px; }
.icon-btn {
  display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 10px;
  background: var(--card); color: var(--ink); transition: background .15s, opacity .15s;
}
.icon-btn:hover { background: var(--line); }
.icon-btn.round { border-radius: 50%; }
.icon-btn.dark { background: var(--ink); color: #fff; }
.icon-btn.dark:hover { background: #000; }
.icon-btn:disabled { opacity: .35; cursor: default; }
.text-btn { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: var(--muted); }
.text-btn:hover { color: var(--ink); }
.text-btn svg { width: 16px; height: 16px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { padding: 8px 14px; border-radius: 999px; background: var(--card); font-size: 15px; font-weight: 600; }
.card { background: var(--card); border-radius: 16px; padding: 28px; }
.tab, .seg button {
  padding: 9px 16px; border-radius: 999px; background: var(--card); border: 1px solid var(--line);
  font-family: var(--display); font-size: 14px; font-weight: 600; color: var(--muted); white-space: nowrap; transition: color .15s, background .15s;
}
.tab:hover, .seg button:hover { color: var(--ink); }
.tab[aria-selected="true"], .seg button[aria-pressed="true"], .seg button[aria-selected="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }
.seg { display: inline-flex; gap: 6px; }
.seg-one { padding: 7px 14px; border-radius: 999px; background: var(--accent); color: #fff; font-size: 14px; font-weight: 600; }
.input {
  width: 100%; padding: 13px 15px; border: 1px solid transparent; border-radius: 10px; background: var(--bg);
  font: inherit; font-size: 15px; color: var(--ink); outline: none; resize: none; transition: border-color .15s;
}
.input::placeholder { color: var(--ink-4); }
.input:focus { border-color: var(--accent); }
.ph {
  display: grid; place-items: center; padding: 20px; border: 1.5px dashed var(--line-2); border-radius: 12px;
  color: var(--ink-3); font-size: 14px; font-weight: 600; text-align: center;
}

/* ───────── 셸 ───────── */
#app { display: grid; grid-template-rows: 64px minmax(0, 1fr) 60px; height: 100vh; height: 100dvh; padding: 0 10px; }
.top { display: flex; align-items: center; gap: 16px; padding: 0 10px; }
.logo { display: flex; align-items: center; gap: 9px; }
.logo .sym { width: 24px; height: 24px; }
.logo .word { width: auto; height: 19px; }
.logo-sub { margin-left: 4px; padding-left: 11px; border-left: 1px solid var(--line-2); font-family: var(--display); font-size: 13px; font-weight: 600; color: var(--ink-3); }
.acts { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.acts .icon-btn { background: transparent; }
.acts .icon-btn:hover { background: rgba(255, 255, 255, .6); }

main { display: grid; place-items: center; min-height: 0; }
#frame { position: relative; overflow: hidden; background: var(--bg); border-radius: 16px; }
.stage { position: absolute; top: 0; left: 0; width: 1600px; height: 900px; transform-origin: 0 0; padding: 60px 80px 0; }
.stage.enter { animation: rise .38s var(--ease) both; }
@keyframes rise { from { opacity: 0; translate: calc(var(--dir, 0) * 36px) 0; } to { opacity: 1; translate: 0 0; } }

/* 아래 막대 — 챕터 이름이 자기 칸들 옆에 붙는다 */
.nav { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 0 10px; }
.chapnav { display: flex; align-items: center; gap: 18px; min-width: 0; }
.cg { display: flex; align-items: center; gap: 8px; }
.cg-name { font-size: 13px; font-weight: 600; color: var(--ink-3); white-space: nowrap; transition: color .15s; }
.cg-name:hover { color: var(--ink); }
.cg.on .cg-name { color: var(--ink); font-weight: 700; }
.cg-seg { display: flex; align-items: center; gap: 4px; }
.cg-seg button { width: 16px; height: 4px; padding: 6px 0; box-sizing: content-box; background-clip: content-box; border-radius: 2px; background-color: var(--line-2); transition: width .3s var(--ease), background-color .2s; }
.cg-seg button:hover { background-color: var(--ink-3); }
.cg-seg button.past { background-color: var(--ink-4); }
.cg-seg button.on { width: 44px; background-color: var(--accent); }
.pager { display: flex; align-items: center; gap: 10px; }
.counter { min-width: 64px; text-align: center; font-family: var(--display); font-size: 14px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.counter b { color: var(--ink); }
.kbd { margin-right: 6px; font-size: 12.5px; color: var(--ink-3); }

/* ───────── 장 머리 · 본문 · 각주 ───────── */
.sh { position: relative; z-index: 1; max-width: 900px; }
.kick { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.kick b { color: var(--ink); font-variant-numeric: tabular-nums; }
.sh h1 { margin-top: 18px; font-size: 56px; line-height: 1.16; letter-spacing: -.04em; }
.en {
  position: absolute; top: 38px; right: 76px; font-family: var(--display); font-size: 152px; font-weight: 600;
  line-height: .9; letter-spacing: -.055em; white-space: nowrap; pointer-events: none;
}
.sb { position: absolute; left: 80px; right: 80px; top: 272px; bottom: 76px; }
.sf { position: absolute; left: 80px; bottom: 30px; font-size: 13px; color: var(--ink-3); }

/* ───────── 영상 카드 ───────── */
.vid { position: relative; overflow: hidden; border-radius: 12px; background: var(--card); cursor: pointer; aspect-ratio: 9 / 16; }
.vid.land { aspect-ratio: 16 / 9; }
.vid.still { cursor: default; }
.vid img, .vid video, .vid iframe { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0; }
.vid video { opacity: 0; transition: opacity .4s ease; }
.vid.on video { opacity: 1; }
.snd {
  position: absolute; top: 12px; right: 12px; z-index: 2; display: grid; place-items: center; width: 34px; height: 34px;
  border-radius: 50%; background: rgba(255, 255, 255, .86); color: var(--ink); opacity: 0; transition: opacity .2s;
}
.snd svg { width: 18px; height: 18px; }
.vid:hover .snd, .snd[aria-pressed="true"], .vid:focus-within .snd { opacity: 1; }
.cap, .tcap {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; display: flex; flex-direction: column; gap: 3px;
  padding: 72px 22px 20px; color: #fff; background: linear-gradient(to top, rgba(23, 19, 16, .78), rgba(23, 19, 16, 0)); pointer-events: none;
}
.cap-type { font-size: 13px; font-weight: 600; opacity: .82; }
.cap b { font-family: var(--display); font-size: 22px; font-weight: 700; letter-spacing: -.02em; }
.cap span:last-child { font-size: 15px; opacity: .92; }
.tcap { padding: 56px 16px 14px; gap: 1px; }
.tcap b { font-family: var(--display); font-size: 16px; font-weight: 700; letter-spacing: -.01em; }
.tcap span { font-size: 13px; opacity: .88; }
.tt { display: block; padding: 0; background: #000; }
.tt iframe { opacity: 0; transition: opacity .4s ease; pointer-events: none; }
.tt.on iframe { opacity: 1; }
.tt-play {
  display: none !important;
  position: absolute; top: 50%; left: 50%; z-index: 1; display: grid; place-items: center; width: 52px; height: 52px; margin: -26px 0 0 -26px;
  border-radius: 50%; background: rgba(255, 255, 255, .9); color: var(--ink); transition: transform .2s var(--ease);
}
.tt-play svg { width: 20px; height: 20px; margin-left: 3px; }
.tt:hover .tt-play { transform: scale(1.08); }

/* ───────── 01 표지 ───────── */
.stage[data-type="cover"] { padding: 0; }
.cv { position: absolute; inset: 0; display: grid; grid-template-columns: minmax(0, 1fr) 640px; }
.cv-l { display: flex; flex-direction: column; justify-content: center; padding: 0 40px 40px 96px; }
.cv-kick { font-family: var(--display); font-size: 14px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.cv-h { margin: 24px 0 36px; font-size: 80px; line-height: 1.1; letter-spacing: -.05em; }
.cv-h .dim { color: var(--ink-3); }
.cv-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.cv-chips li { padding: 9px 16px; border-radius: 999px; background: var(--card); font-size: 16px; font-weight: 600; }
.cv-cta { display: flex; gap: 12px; margin-top: 48px; }
.cv-cta svg { width: 18px; height: 18px; }
.cv-wall {
  position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; padding-right: 40px; overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(to bottom, transparent, #000 12%, #000 88%, transparent);
}
.cw-col { overflow: hidden; }
.cw-track { display: flex; flex-direction: column; gap: 14px; animation: drift 70s linear infinite; }
.cw-col.c1 .cw-track { animation-direction: reverse; animation-duration: 82s; }
.cw-col.c2 .cw-track { animation-duration: 64s; }
.cw-track img { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 12px; background: var(--card); }
@keyframes drift { from { transform: translateY(0); } to { transform: translateY(calc(-50% - 7px)); } }

/* ───────── 02 요약 — 크리에이터 수가 주인공 ───────── */
.sum { display: grid; grid-template-columns: minmax(0, 1fr) 600px; gap: 64px; height: 100%; }
.sum-hero { display: flex; flex-direction: column; min-width: 0; }
.sum-faces { display: flex; }
.sum-faces img { width: 60px; height: 60px; margin-right: -14px; border-radius: 50%; object-fit: cover; object-position: 50% 28%; border: 3px solid var(--bg); background: var(--card); }
.sum-big { margin-top: 18px; font-size: 176px; letter-spacing: -.06em; }
.sum-big small { font-size: 44px; }
.sum-cap { margin-top: 12px; font-family: var(--display); font-size: 24px; font-weight: 700; letter-spacing: -.02em; }
.sum-subs { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 56px; margin-top: auto; padding-top: 22px; border-top: 1px solid var(--line); }
.sum-subs .num { font-size: 52px; }
.sum-subs .muted { margin-top: 8px; font-size: 15px; font-weight: 600; }
.sum-def { display: grid; grid-template-rows: repeat(4, auto); align-content: center; padding: 8px 36px; border-radius: 18px; background: var(--ink); color: #fff; }
.sum-def > div { display: grid; grid-template-columns: 76px minmax(0, 1fr); align-items: start; padding: 22px 0; }
.sum-def > div + div { border-top: 1px solid rgba(255, 255, 255, .12); }
.sum-def .label { padding-top: 8px; color: var(--accent); }
.sum-def button { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; }
.sum-def b { display: block; font-family: var(--display); font-size: 23px; font-weight: 700; letter-spacing: -.03em; }
.sum-def button > span > span { display: block; margin-top: 4px; font-size: 15px; color: rgba(255, 255, 255, .6); }
.sum-def button i { display: grid; place-items: center; flex: 0 0 auto; width: 30px; height: 30px; border-radius: 50%; background: rgba(255, 255, 255, .1); color: rgba(255, 255, 255, .7); transition: transform .3s var(--ease), background .2s; }
.sum-def button i svg { width: 16px; height: 16px; }
.sum-def button:hover i { background: rgba(255, 255, 255, .18); color: #fff; }
.sum-def .open button i { transform: rotate(45deg); background: var(--accent); color: #fff; }
.sum-def ul { display: none; flex-direction: column; gap: 7px; margin-top: 14px; }
.sum-def .open ul { display: flex; animation: pop .3s var(--ease) both; }
.sum-def li { position: relative; padding-left: 14px; font-size: 16px; font-weight: 500; color: rgba(255, 255, 255, .86); }
.sum-def li::before { content: ''; position: absolute; left: 0; top: 10px; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }

/* ───────── 03 브랜드 — 대표 카드(실제 캠페인 장면) 먼저, '전체 보기'로 업종별 전체 이름 ───────── */
.cl { display: flex; flex-direction: column; gap: 18px; height: 100%; }
.cl-top { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; flex: 0 0 488px; transition: flex-basis .4s var(--ease); }
.cl.all .cl-top { flex-basis: 200px; }
.cl-more { align-self: center; flex: 0 0 auto; }
.cl-more svg { width: 16px; height: 16px; transition: transform .3s var(--ease); }
.cl.all .cl-more svg { transform: rotate(45deg); }
.cl-f { position: relative; overflow: hidden; border-radius: 14px; background: var(--card); }
.cl-f img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; transition: transform .6s var(--ease); }
a.cl-f:hover img { transform: scale(1.04); }
.cl-fc { position: absolute; left: 0; right: 0; bottom: 0; display: flex; flex-direction: column; gap: 2px; padding: 64px 18px 16px; color: #fff; background: linear-gradient(to top, rgba(23, 19, 16, .82), rgba(23, 19, 16, 0)); }
.cl-fc b { font-family: var(--display); font-size: 24px; font-weight: 700; letter-spacing: -.03em; line-height: 1.15; }
.cl-fc span { font-size: 14px; font-weight: 600; opacity: .88; }
.cl-out { position: absolute; top: 10px; right: 10px; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: rgba(255, 255, 255, .88); color: var(--ink); opacity: 0; transition: opacity .2s; }
.cl-out svg { width: 16px; height: 16px; }
a.cl-f:hover .cl-out, a.cl-f:focus-visible .cl-out { opacity: 1; }
.cl-all { display: none; flex-direction: column; justify-content: center; flex: 1 1 auto; min-height: 0; }
.cl.all .cl-all { display: flex; animation: pop .3s var(--ease) .12s both; }
.cl-g { display: grid; grid-template-columns: 200px minmax(0, 1fr); align-items: baseline; padding: 11px 0; border-top: 1px solid var(--line); }
.cl-g:last-child { border-bottom: 1px solid var(--line); }
.cl-g ul { display: flex; flex-wrap: wrap; gap: 3px 21px; }
.cl-g li { font-family: var(--display); font-size: 17px; font-weight: 600; letter-spacing: -.015em; white-space: nowrap; }
.cl-g li a { text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 4px; transition: color .15s, text-decoration-color .15s; }
.cl-g li a:hover { color: var(--accent); text-decoration-color: var(--accent); }

/* ───────── 04 장면 ───────── */
.fm { display: flex; gap: 20px; height: 100%; }
.fm .vid { flex: 1 1 0; height: 100%; aspect-ratio: auto; }

/* ───────── 05 포트폴리오 ───────── */
.lib { display: flex; flex-direction: column; gap: 16px; height: 100%; }
.lib-tabs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; flex: 0 0 auto; }
.lib-tabs::-webkit-scrollbar { display: none; }
.lib-sub { display: flex; align-items: center; gap: 16px; }
.lib-sub .muted { font-size: 15px; font-weight: 600; }
.lib-sub .text-btn { margin-left: auto; }
.lib-sub .seg button { padding: 7px 14px; }
.lib-strip { display: flex; gap: 14px; flex: 1 1 auto; min-height: 0; overflow-x: auto; padding-bottom: 6px; scroll-snap-type: x proximity; scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; }
.lib-strip .vid { flex: 0 0 auto; height: 100%; scroll-snap-align: start; }

/* ───────── 06 발굴 — 좁아지는 깔때기 ───────── */
.dc { display: flex; flex-direction: column; gap: 30px; height: 100%; }
.dc-fun { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; height: 330px; }
.dc-s { display: flex; flex-direction: column; justify-content: center; gap: 8px; padding: 0 40px; }
.dc-s.s1 { background: var(--card); clip-path: polygon(0 0, 100% 14%, 100% 86%, 0 100%); }
.dc-s.s2 { background: var(--line-2); clip-path: polygon(0 14%, 100% 25%, 100% 75%, 0 86%); }
.dc-s.s3 { background: var(--accent); color: #fff; clip-path: polygon(0 25%, 100% 29%, 100% 71%, 0 75%); }
.dc-all { font-family: var(--display); font-size: 40px; font-weight: 700; letter-spacing: -.04em; }
.dc-s .num { font-size: 72px; }
.dc-s.s3 .num small { color: rgba(255, 255, 255, .75); }
.dc-c { font-size: 16px; font-weight: 600; color: var(--muted); }
.dc-s.s3 .dc-c { color: rgba(255, 255, 255, .85); }
.dc-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.dc-steps li { padding: 0 40px; }
.dc-steps .label b { margin: 0 8px 0 0; }
.dc-steps h3 { margin: 8px 0 14px; font-size: 26px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tags span { padding: 6px 12px; border-radius: 999px; background: var(--card); font-size: 14px; font-weight: 600; color: var(--muted); }

/* ───────── 07 차이 — 지운 줄(플랫폼) 아래 큰 말(SIRIAI) ───────── */
.df { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; height: 100%; border-radius: 18px; background: var(--ink); color: #fff; overflow: hidden; }
.df-c { display: flex; flex-direction: column; padding: 30px 44px 34px; }
.df-c:nth-child(even) { border-left: 1px solid rgba(255, 255, 255, .12); }
.df-c:nth-child(n + 3) { border-top: 1px solid rgba(255, 255, 255, .12); }
.df-k { display: flex; gap: 12px; font-size: 15px; font-weight: 600; color: rgba(255, 255, 255, .6); }
.df-k span { font-family: var(--display); color: rgba(255, 255, 255, .34); font-variant-numeric: tabular-nums; }
.df-u { display: flex; align-items: center; gap: 12px; margin-top: auto; font-family: var(--display); font-size: 26px; font-weight: 600; letter-spacing: -.03em; color: rgba(255, 255, 255, .5); }
.df-u em { padding: 4px 11px; border: 1px solid rgba(255, 255, 255, .24); border-radius: 999px; font-style: normal; font-size: 14px; font-weight: 600; letter-spacing: 0; }
.df-u s { text-decoration-thickness: 2px; text-decoration-color: rgba(255, 255, 255, .7); }
.df-c h3 { margin-top: 10px; font-size: 54px; letter-spacing: -.045em; line-height: 1.1; color: var(--accent); }
.df-s { margin-top: 12px; font-size: 16px; color: rgba(255, 255, 255, .62); }

/* ───────── 08 일정 ───────── */
.pr { display: flex; flex-direction: column; height: 100%; }
.pr-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.pr-mode button { padding: 9px 18px; font-size: 15px; }
.pr-modes { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.pr-note { font-size: 13px; color: var(--ink-3); white-space: nowrap; }
.pr-legend { display: flex; gap: 20px; }
.pr-legend span { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--muted); }
.pr-legend i { width: 22px; height: 10px; border-radius: 99px; }
.lg-siriai i, .g-siriai { background: var(--accent); }
.lg-brand i, .g-brand { background: var(--bg); box-shadow: inset 0 0 0 2px var(--ink); }
.lg-creator i, .g-creator { background: var(--line-2); }
.lg-both i, .g-both { background: var(--ink-3); }
.gantt { position: relative; --gl: 220px; --gr: 110px; }
.g-axis { position: relative; height: 30px; margin-left: var(--gl); margin-right: var(--gr); }
.g-axis span { position: absolute; bottom: 8px; transform: translateX(-50%); font-family: var(--display); font-size: 14px; font-weight: 600; color: var(--ink-3); }
.g-axis span:first-child { transform: none; }
.g-row { position: relative; z-index: 1; display: grid; grid-template-columns: var(--gl) minmax(0, 1fr) var(--gr); align-items: center; height: 58px; border-top: 1px solid var(--line); }
.g-row:last-of-type { border-bottom: 1px solid var(--line); }
.g-t { font-size: 18px; font-weight: 600; }
.g-track {
  position: relative; height: 100%;
  background-image: linear-gradient(to right, var(--line) 1px, transparent 1px); background-size: 25% 100%; background-position: -1px 0;
}
.g-bar { position: absolute; top: 50%; height: 22px; border-radius: 99px; transform: translateY(-50%); transition: left .55s var(--ease), width .55s var(--ease); }
.g-d { display: none; }
.g-track em { position: absolute; top: 50%; transform: translateY(-50%); padding: 2px 6px; margin-left: -6px; background: var(--bg); font-style: normal; font-size: 14px; font-weight: 600; color: var(--muted); white-space: nowrap; transition: left .55s var(--ease); }
/* 끝나는 지점 — 완료 깃발 */
.g-end { position: absolute; top: 30px; bottom: 0; left: calc(var(--gl) + (100% - var(--gl) - var(--gr)) * var(--p, 0)); width: 0; transition: left .55s var(--ease); pointer-events: none; }
.g-end::before { content: ''; position: absolute; top: 0; bottom: 0; left: 0; border-left: 2px solid var(--ink); }
.g-flag { z-index: 2; position: absolute; top: -34px; left: 0; transform: translateX(-50%); padding: 6px 12px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 13px; font-weight: 700; white-space: nowrap; }
.pr-out { display: flex; align-items: center; gap: 26px; margin-top: auto; padding: 16px 18px 16px 16px; border-radius: 16px; background: var(--card); }
.pr-out-h { display: flex; align-items: center; gap: 12px; font-family: var(--display); font-size: 18px; font-weight: 700; letter-spacing: -.02em; white-space: nowrap; }
.pr-out-h i { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--accent); color: #fff; }
.pr-out-h svg { width: 22px; height: 22px; }
.pr-out ul { display: flex; flex-wrap: wrap; gap: 8px; }
.pr-out li { display: flex; align-items: center; gap: 8px; padding: 9px 16px 9px 10px; border-radius: 999px; background: var(--bg); font-size: 16px; font-weight: 600; }
.pr-out li i { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); }
.pr-out li svg { width: 14px; height: 14px; stroke-width: 3; }
.pr-out .ph { margin-left: auto; padding: 10px 18px; }

/* ───────── 09 재활용 — 같은 콘텐츠 한 편이 놓이는 화면 넷 ───────── */
.ru { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 30px; height: 100%; }
.ru-c { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.ru-c > .label { margin-bottom: 10px; }
.ru-c > .label b { margin: 0; color: var(--accent); }
.ru-c figcaption { margin-top: 14px; }
.ru-c h3 { display: flex; align-items: center; gap: 8px; font-size: 21px; letter-spacing: -.03em; white-space: nowrap; }
.ru-c .muted { margin-top: 4px; font-size: 14px; font-weight: 600; }
.ru-badge { padding: 4px 10px; border-radius: 999px; background: var(--accent); color: #fff; font-size: 12px; font-weight: 700; letter-spacing: 0; }
/* 폰 화면 — 모양만 흉내 낸다 */
.mk { position: relative; display: flex; flex-direction: column; flex: 1 1 auto; min-height: 0; overflow: hidden; border: 1px solid var(--line-2); border-radius: 26px; background: var(--bg); font-size: 12px; }
.mk-l { display: block; height: 7px; margin-top: 6px; border-radius: 4px; background: var(--line); }
.mk .vid { aspect-ratio: auto; border-radius: 10px; }
.mk .snd { top: 8px; right: 8px; width: 28px; height: 28px; }
.mk .snd svg { width: 15px; height: 15px; }
/* 상세페이지 */
.mk-shop { padding: 14px 14px 12px; }
.mk-bar { display: flex; align-items: center; justify-content: space-between; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.mk-bar b { font-family: var(--display); font-size: 13px; letter-spacing: .08em; }
.mk-bar svg { width: 18px; height: 18px; }
.mk-prod { display: grid; grid-template-columns: 58px minmax(0, 1fr); gap: 10px; align-items: center; padding: 10px 0; }
.mk-pimg { width: 58px; height: 58px; border-radius: 10px; background: var(--card); }
.mk-star { display: block; margin-top: 6px; color: var(--accent); font-size: 11px; letter-spacing: 1px; }
.mk-h { font-size: 12px; font-weight: 700; margin-bottom: 6px; }
.mk-shop .vid { flex: 1 1 auto; min-height: 0; }
.mk-buy { margin-top: 10px; padding: 10px; border-radius: 10px; background: var(--accent); color: #fff; font-size: 13px; font-weight: 700; text-align: center; }
/* 인스타 광고 */
.mk-head { display: flex; align-items: center; gap: 8px; padding: 14px 12px 10px; }
.mk-head img { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; object-position: 50% 25%; }
.mk-head b { display: block; font-size: 12px; }
.mk-head span { display: block; font-size: 10.5px; color: var(--muted); }
.mk-media { position: relative; flex: 1 1 auto; min-height: 0; }
.mk-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.mk-cta { display: flex; justify-content: space-between; padding: 9px 12px; background: var(--accent); color: #fff; font-size: 12px; font-weight: 700; }
.mk-cta i { font-style: normal; }
.mk-acts { display: flex; gap: 12px; padding: 10px 12px 2px; }
.mk-acts svg { width: 18px; height: 18px; }
.mk-ig > .mk-l { margin: 6px 12px 0; }
.mk-ig > .mk-l:last-child { margin-bottom: 14px; }
/* 틱톡샵 */
.mk-tt { background: #000; }
.mk-tt .vid { position: absolute; inset: 0; border-radius: 0; }
.mk-rail { position: absolute; right: 10px; bottom: 96px; z-index: 2; display: flex; flex-direction: column; gap: 12px; pointer-events: none; }
.mk-rail i { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: rgba(255, 255, 255, .2); color: #fff; }
.mk-rail svg { width: 18px; height: 18px; }
.mk-ttc { position: absolute; left: 12px; right: 56px; bottom: 14px; z-index: 2; color: #fff; pointer-events: none; }
.mk-ttc b { font-size: 13px; }
.mk-ttc .mk-l { background: rgba(255, 255, 255, .5); }
.mk-anchor { display: inline-flex; align-items: center; gap: 5px; margin-top: 10px; padding: 6px 10px; border-radius: 6px; background: var(--accent); font-size: 11.5px; font-weight: 700; }
.mk-anchor svg { width: 14px; height: 14px; }
/* 브랜드 계정 */
.mk-pf { padding: 16px 12px 12px; }
.mk-pfh { display: flex; align-items: center; gap: 10px; }
.mk-av { display: grid; place-items: center; flex: 0 0 auto; width: 42px; height: 42px; border-radius: 50%; background: var(--ink); color: #fff; font-family: var(--display); font-weight: 800; }
.mk-pfh b { display: block; font-size: 12.5px; }
.mk-pfh div span { display: block; font-size: 10.5px; color: var(--muted); }
.mk-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; margin-top: 14px; }
.mk-grid span { position: relative; aspect-ratio: 1; overflow: hidden; background: var(--card); }
.mk-grid img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.mk-grid .on { outline: 3px solid var(--accent); outline-offset: -3px; }
.mk-grid em { position: absolute; top: 5px; right: 5px; display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: var(--accent); color: #fff; }
.mk-grid em svg { width: 11px; height: 11px; stroke-width: 3; }
.mk-tag { margin-top: auto; padding-top: 10px; font-size: 11.5px; color: var(--muted); }
.mk-tag b { color: var(--ink); }

/* ───────── 10 해외 ───────── */
.gl { display: flex; flex-direction: column; gap: 22px; height: 100%; }
.gl-tabs button { padding: 10px 22px; font-size: 16px; }
.gl-panel { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 56px; flex: 1 1 auto; min-height: 0; }
.gl-l { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
/* 이름 칸은 그 나라에서 가장 긴 이름(로고 포함)에 맞추고, 설명 칸은 줄을 맞춘다(subgrid) */
.gl-flow { display: grid; grid-template-columns: max-content minmax(0, 1fr); column-gap: 28px; }
.gl-flow li { position: relative; grid-column: 1 / -1; display: grid; grid-template-columns: subgrid; align-items: center; padding: 14px 0 14px 30px; border-top: 1px solid var(--line); }
.gl-flow li:last-child { border-bottom: 1px solid var(--line); }
.gl-flow li::before { content: ''; position: absolute; left: 4px; top: 24px; width: 9px; height: 9px; border-radius: 50%; background: var(--ink); }
.gl-flow li + li::after { content: ''; position: absolute; left: 8px; top: -24px; height: 48px; border-left: 1.5px solid var(--line-2); }
.gl-flow b { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-size: 22px; font-weight: 700; letter-spacing: -.02em; }
.gl-logos { display: inline-flex; gap: 6px; }
.gl-logo { display: block; width: auto; height: 26px; }
.gl-flow span { font-size: 17px; color: var(--muted); }
.gl-stats { display: flex; gap: 40px; margin-top: auto; }
.gl-stats .num { font-size: 56px; }
.gl-stats .muted { margin-top: 8px; font-size: 15px; font-weight: 600; }
.gl-cap { margin-top: auto; font-size: 15px; font-weight: 600; color: var(--muted); }
.gl-media { display: flex; gap: 14px; height: 100%; }
.gl-media .vid { height: 100%; }
.gl-media.land { flex-direction: column; width: 560px; }
.gl-media.land .vid { height: auto; width: 100%; }

/* ───────── 11 챌린지 — 일본 위주 ───────── */
.ch { display: grid; grid-template-columns: 380px minmax(0, 1fr); gap: 56px; height: 100%; }
.ch-l { display: flex; flex-direction: column; }
.ch-num { margin-top: 12px; }
.ch-num .num { font-size: 124px; }
.ch-num small { font-size: 30px; font-weight: 600; color: var(--muted); margin-left: 4px; }
.ch-sub { margin-top: 6px; font-size: 17px; font-weight: 600; color: var(--muted); }
.ch-mega { display: flex; flex-direction: column; gap: 4px; margin-top: 22px; padding: 16px 18px; border-radius: 14px; background: var(--card); }
.ch-mega b { font-family: var(--display); font-size: 17px; font-weight: 800; }
.ch-mega span { font-size: 15px; font-weight: 600; color: var(--muted); }
.ch-flow { margin-top: auto; }
.ch-flow li { display: flex; gap: 14px; padding: 11px 0; border-top: 1px solid var(--line); font-size: 17px; font-weight: 600; }
.ch-flow li span { font-family: var(--display); font-size: 14px; font-weight: 700; color: var(--ink-3); padding-top: 2px; font-variant-numeric: tabular-nums; }
.ch-grid { display: grid; grid-template-columns: 310px repeat(3, 152px); grid-template-rows: repeat(2, 270px); gap: 12px; justify-self: end; align-self: start; }
.ch-grid .vid { aspect-ratio: auto; width: 100%; height: 100%; }
.ch-grid .hero { grid-row: 1 / 3; }
.ch-grid .hero .tcap b { font-size: 20px; }

/* ───────── 12 셀럽 ───────── */
.ce { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 56px; height: 100%; }
.ce-l { display: flex; flex-direction: column; gap: 26px; }
.ce-l section { padding-top: 22px; border-top: 1px solid var(--line); }
.ce-l h3 { margin: 6px 0 12px; font-size: 30px; }
.ce-l li { position: relative; padding: 5px 0 5px 18px; font-size: 18px; }
.ce-l li::before { content: ''; position: absolute; left: 2px; top: 16px; width: 5px; height: 5px; border-radius: 50%; background: var(--ink-3); }
.ce-r { display: flex; gap: 14px; height: 100%; }
.ce-r .vid, .ce-r .ph { height: 100%; }
.ce-r .ph { aspect-ratio: 9 / 16; }

/* ───────── 13 브랜딩 — 골라 담기 ───────── */
.br { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 14px; height: 100%; }
.br-grid { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 1fr; gap: 14px; min-height: 0; }
.br-pack { display: flex; flex-direction: column; padding: 30px 30px 28px; border-radius: 18px; background: var(--ink); color: #fff; }
.br-pack .label { color: var(--accent); }
.br-pack ul { display: flex; flex-direction: column; gap: 10px; margin-top: 22px; }
.br-pack li { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; background: rgba(255, 255, 255, .08); font-family: var(--display); font-size: 19px; font-weight: 700; animation: pop .35s var(--ease) both; }
.br-pack li i { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--accent); }
.br-pack li i svg { width: 19px; height: 19px; }
.br-pack li.ghost { height: 58px; background: none; border: 1.5px dashed rgba(255, 255, 255, .18); animation: none; }
.br-hint { margin-top: auto; padding: 18px 0 14px; font-size: 15px; font-weight: 600; color: rgba(255, 255, 255, .62); }
.br-pack .pill { width: 100%; }
.br-pack .pill:disabled { background: rgba(255, 255, 255, .14); color: rgba(255, 255, 255, .5); box-shadow: none; filter: none; }
@keyframes pop { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.br-t {
  position: relative; display: flex; flex-direction: column; padding: 26px 28px; border-radius: 16px; background: var(--card);
  border: 1.5px solid transparent; transition: background .2s, border-color .2s, transform .2s var(--ease);
}
.br-t:hover { background: var(--bg); border-color: var(--line-2); }
.br-t[aria-pressed="true"] { background: var(--bg); border-color: var(--accent); }
.br-t[aria-pressed="true"]::after { content: ''; position: absolute; top: 22px; right: 22px; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); }
.br-n { position: absolute; top: 26px; right: 28px; font-family: var(--display); font-size: 14px; font-weight: 700; color: var(--ink-4); }
.br-t[aria-pressed="true"] .br-n { display: none; }
.br-t .ic { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 18px; background: var(--bg); transition: background .2s; }
.br-t:hover .ic, .br-t[aria-pressed="true"] .ic { background: var(--card); }
.br-t .ic svg { width: 32px; height: 32px; stroke-width: 1.6; color: var(--accent); }
.br-t b { margin-top: auto; font-family: var(--display); font-size: 28px; font-weight: 700; letter-spacing: -.03em; }
.br-t .muted { margin-top: 6px; font-size: 17px; }
.br .ph.wide { grid-column: 1 / -1; padding: 14px; }

/* ───────── 14 조건 — 정산 흐름 ───────── */
.tm { display: grid; grid-template-rows: minmax(0, 1fr) auto; gap: 22px; height: 100%; }
.tm-flow { display: grid; grid-template-columns: repeat(3, 1fr); gap: 46px; }
.tm-flow > li { position: relative; display: flex; flex-direction: column; min-height: 0; padding: 26px 30px 28px; border-radius: 18px; background: var(--card); }
.tm-flow > li + li::before {
  content: ''; position: absolute; left: -36px; top: 50%; width: 26px; height: 26px; margin-top: -13px;
  background: var(--ink-3); -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M5 12h14M13 6l6 6-6 6"/></svg>') center / contain no-repeat;
  mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M5 12h14M13 6l6 6-6 6"/></svg>') center / contain no-repeat;
}
.tm-n { font-family: var(--display); font-size: 15px; font-weight: 700; color: var(--ink-3); }
.tm-faces { display: grid; grid-template-columns: repeat(3, 84px); gap: 14px; justify-content: center; margin: auto 0; }
.tm-faces img { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; object-position: 50% 28%; border: 3px solid var(--bg); background: var(--bg); }
.tm-ups { display: grid; grid-template-columns: repeat(3, 72px); gap: 10px; justify-content: center; margin: auto 0; }
.tm-ups span { position: relative; aspect-ratio: 9 / 16; overflow: hidden; border-radius: 10px; background: var(--bg); }
.tm-ups img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tm-ups em { position: absolute; left: 6px; bottom: 6px; display: inline-flex; align-items: center; gap: 3px; padding: 3px 6px; border-radius: 999px; background: var(--ink); color: #fff; font-style: normal; font-size: 11px; font-weight: 700; }
.tm-ups em svg { width: 12px; height: 12px; stroke-width: 2.6; }
.tm-ups .swap { outline: 3px solid var(--accent); outline-offset: -3px; }
.tm-ups .swap em { background: var(--accent); }
.tm-bill { margin: auto 0; }
.tm-bill .num { font-size: 112px; color: var(--accent); }
.tm-bill .num small { color: rgba(255, 255, 255, .7); }
.tm-eq { margin-top: 8px; font-size: 17px; font-weight: 700; }
.tm-bill ul { margin-top: 18px; }
.tm-bill li { display: flex; justify-content: space-between; padding: 11px 0; border-top: 1px solid rgba(255, 255, 255, .14); font-size: 15px; font-weight: 600; color: rgba(255, 255, 255, .66); }
.tm-bill li:last-child { border-bottom: 1px solid rgba(255, 255, 255, .14); }
.tm-bill b { font-family: var(--display); color: #fff; }
.tm-flow > li > b { margin-top: 0; font-family: var(--display); font-size: 32px; font-weight: 700; letter-spacing: -.04em; line-height: 1.15; }
.tm-flow > li > span:last-child { margin-top: 8px; font-size: 17px; font-weight: 500; color: var(--muted); }
.tm-flow > li.last { background: var(--ink); color: #fff; }
.tm-flow > li.last .tm-n, .tm-flow > li.last > span:last-child { color: rgba(255, 255, 255, .62); }
.tm-in { display: flex; align-items: center; gap: 26px; padding-top: 22px; border-top: 1px solid var(--line); }
.tm-in ul { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.tm-in li { display: flex; align-items: center; gap: 7px; font-size: 17px; font-weight: 600; }
.tm-in li svg { width: 18px; height: 18px; stroke-width: 2.4; }
.tm-in .pill { margin-left: auto; }

/* ───────── 15 FAQ ───────── */
.fq { columns: 2; column-gap: 56px; }
.fq-item { break-inside: avoid; border-top: 1px solid var(--line); }
.fq-item button { display: flex; align-items: center; justify-content: space-between; gap: 20px; width: 100%; padding: 30px 0; font-family: var(--display); font-size: 24px; font-weight: 700; letter-spacing: -.03em; }
.fq-item button i { display: grid; place-items: center; transition: transform .3s var(--ease); color: var(--muted); }
.fq-item.open button i { transform: rotate(45deg); color: var(--ink); }
.fq-item p { display: none; margin-top: -8px; padding: 0 40px 30px 0; font-size: 19px; line-height: 1.6; color: var(--muted); }
.fq-item.open p { display: block; }

/* ───────── 16 문의 — 덱 안에서 접수 ───────── */
.ct { display: grid; grid-template-columns: minmax(0, 1fr) 560px; gap: 64px; height: 100%; }
.ct-l { display: flex; flex-direction: column; gap: 14px; }
.ct-l .label-kr + .chips { margin-top: 2px; }
.ct-topics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 26px; }
.choice {
  position: relative; padding: 22px 22px; border-radius: 14px; background: var(--bg); border: 1px solid var(--line);
  font-size: 18px; font-weight: 600; transition: background .15s, border-color .15s;
}
.choice:hover { background: var(--card); }
.choice[aria-pressed="true"] { border-color: var(--accent); }
.choice[aria-pressed="true"]::after { content: ''; position: absolute; top: 14px; right: 14px; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.ct-card { display: flex; flex-direction: column; gap: 12px; align-self: start; padding: 28px 30px; border-radius: 16px; background: var(--card); }
.ct-who { display: flex; align-items: center; gap: 14px; margin-bottom: 4px; }
.ct-who .sym { width: 40px; height: 40px; }
.ct-who p { font-size: 17px; }
.ct-who b { font-family: var(--display); font-size: 21px; letter-spacing: -.02em; margin-right: 2px; }
.ct-who .muted { font-size: 14px; }
.ct-card label { display: flex; flex-direction: column; gap: 6px; }
.ct-card label > span { font-size: 13px; font-weight: 600; color: var(--muted); }
.ct-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ct-card .pill { width: 100%; margin-top: 2px; }
.ct-err { min-height: 0; font-size: 14px; font-weight: 600; color: var(--accent); }
.ct-err:empty { display: none; }
.ct-mail { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 4px; }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.ct-done { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 18px 0 6px; outline: none; }
.ct-ok { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--ink); color: #fff; }
.ct-ok svg { stroke-width: 2.4; }
.ct-done b { font-family: var(--display); font-size: 24px; letter-spacing: -.03em; }

/* ───────── 목차 · 토스트 ───────── */
dialog { margin: auto; width: min(920px, calc(100vw - 32px)); max-height: calc(100vh - 64px); padding: 28px 30px 32px; border: 0; border-radius: 16px; background: var(--bg); color: var(--ink); }
dialog::backdrop { background: rgba(23, 19, 16, .32); }
.dh { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.dh h2 { font-size: 24px; }
.dh .icon-btn svg { transform: rotate(45deg); }
.ov { display: flex; flex-direction: column; }
.ov > li { display: grid; grid-template-columns: 190px minmax(0, 1fr); align-items: center; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); }
.ov h3 { display: flex; align-items: center; gap: 12px; font-size: 19px; letter-spacing: -.03em; }
.ov h3 span { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--card); font-size: 13px; font-weight: 700; color: var(--muted); }
.ov .here h3 span { background: var(--ink); color: #fff; }
.ov > li > div { display: flex; flex-wrap: wrap; gap: 6px; }
.ov button { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 999px; background: var(--card); font-size: 15px; font-weight: 600; transition: background .15s; }
.ov button:hover { background: var(--line); }
.ov button span { font-family: var(--display); font-size: 12px; font-weight: 600; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.ov button.on { background: var(--accent); color: #fff; }
.ov button.on span { color: rgba(255, 255, 255, .75); }
.toast {
  position: fixed; left: 50%; bottom: 80px; z-index: 50; padding: 11px 20px; border-radius: 999px; background: var(--ink); color: #fff;
  font-size: 14px; font-weight: 600; opacity: 0; transform: translate(-50%, 8px); transition: opacity .25s, transform .25s var(--ease); pointer-events: none;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* 좁은 PC·태블릿 — 아래 막대가 넘치지 않게 키 안내를 빼고, 더 좁으면 지금 챕터 이름만 */
@media (max-width: 1180px) { .kbd { display: none; } }
@media (max-width: 1000px) { .cg-name { display: none; } .cg.on .cg-name { display: inline; } }

@media (prefers-reduced-motion: reduce) {
  .cw-track { animation: none; }
  .stage.enter { animation: none; }
}

/* ───────── 모바일 — 줄이지 않고 세로로 흐른다 ───────── */
@media (max-width: 760px) {
  body { overflow: auto; }
  #app { display: block; height: auto; padding: 0; }
  .top { position: sticky; top: 0; z-index: 20; height: 56px; padding: 0 12px 0 16px; background: rgba(235, 234, 231, .92); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
  .hide-m { display: none; }
  .logo .word { height: 17px; }
  .logo-sub { display: none; }
  main { display: block; place-items: normal; padding: 0 8px 84px; }
  #frame { width: auto !important; height: auto !important; }
  .stage { position: relative; width: auto; height: auto; padding: 28px 20px 30px; transform: none !important; }
  .en { display: none; }
  .sh h1 { margin-top: 12px; font-size: 30px; }
  .sb { position: static; margin-top: 24px; }
  .sf { position: static; margin-top: 22px; font-size: 12px; }
  .nav { position: fixed; left: 8px; right: 8px; bottom: 8px; z-index: 20; height: 60px; padding: 0 10px 0 16px; border-radius: 16px; background: rgba(255, 255, 255, .92); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: 0 12px 32px -12px rgba(0, 0, 0, .18); }
  .chapnav { gap: 6px; overflow: hidden; }
  .cg { gap: 6px; }
  .cg-name { display: none; font-size: 12px; }
  .cg.on .cg-name { display: inline; }
  .cg-seg { gap: 3px; }
  .cg-seg button { width: 6px; }
  .cg-seg button.on { width: 20px; }

  .stage[data-type="cover"] { padding: 0; }
  .cv { position: static; display: flex; flex-direction: column-reverse; }
  .cv-l { padding: 28px 22px 32px; }
  .cv-h { margin: 14px 0 22px; font-size: 38px; }
  .cv-chips li { font-size: 14px; padding: 7px 13px; }
  .cv-cta { flex-direction: column; margin-top: 26px; }
  .cv-wall { height: 340px; padding: 0; gap: 8px; }
  .cw-track { gap: 8px; }
  .cw-track img { border-radius: 8px; }

  .sum { grid-template-columns: 1fr; gap: 26px; height: auto; }
  .sum-faces img { width: 44px; height: 44px; margin-right: -11px; }
  .sum-big { margin-top: 12px; font-size: 84px; }
  .sum-big small { font-size: 24px; }
  .sum-cap { margin-top: 6px; font-size: 18px; }
  .sum-subs { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 22px; padding-top: 18px; }
  .sum-subs .num { font-size: 24px; white-space: nowrap; }
  .sum-subs .muted { font-size: 12px; }
  .sum-def { padding: 4px 20px; }
  .sum-def > div { grid-template-columns: 52px minmax(0, 1fr); padding: 16px 0; }
  .sum-def .label { padding-top: 3px; }
  .sum-def b { font-size: 17px; }
  .sum-def button > span > span { font-size: 13px; }
  .sum-def button i { width: 26px; height: 26px; }
  .sum-def ul { margin-top: 10px; gap: 5px; }
  .sum-def li { font-size: 14px; }
  .sum-def li::before { top: 8px; }

  .cl { height: auto; }
  .cl-top, .cl.all .cl-top { display: flex; flex: none; overflow-x: auto; gap: 10px; margin: 0 -20px; padding: 0 20px 6px; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .cl-f { flex: 0 0 44vw; aspect-ratio: 3 / 4; scroll-snap-align: start; }
  .cl-fc { padding: 48px 12px 12px; }
  .cl-fc b { font-size: 18px; }
  .cl-fc span { font-size: 12px; }
  .cl-g { grid-template-columns: 1fr; gap: 10px; padding: 16px 0; }
  .cl-g ul { gap: 6px 18px; }
  .cl-g li { font-size: 16px; }

  .fm, .lib-strip, .gl-media, .ce-r, .ch-grid { display: flex; overflow-x: auto; height: auto; gap: 10px; scroll-snap-type: x mandatory; margin: 0 -20px; padding: 0 20px 6px; scrollbar-width: none; aspect-ratio: auto; }
  .fm .vid, .lib-strip .vid, .gl-media .vid, .ce-r .vid, .ch-grid .vid { flex: 0 0 62vw; width: auto; height: auto; aspect-ratio: 9 / 16; scroll-snap-align: start; }
  .lib-strip .vid.land, .gl-media.land .vid { flex-basis: 80vw; aspect-ratio: 16 / 9; }
  .gl-media.land { flex-direction: row; width: auto; }
  .lib { height: auto; }
  .lib-sub { flex-wrap: wrap; gap: 10px; }
  .lib-sub .text-btn { margin-left: 0; }

  .ch, .ce, .ct, .gl-panel { grid-template-columns: 1fr; gap: 26px; height: auto; }
  .dc { height: auto; gap: 22px; }
  .dc-fun { grid-template-columns: 1fr; height: auto; gap: 6px; }
  .dc-s { padding: 18px 20px; border-radius: 12px; clip-path: none !important; margin: 0 auto; width: 100%; }
  .dc-s.s2 { width: 86%; }
  .dc-s.s3 { width: 72%; }
  .dc-all { font-size: 24px; }
  .dc-s .num { font-size: 40px; }
  .dc-c { font-size: 13px; }
  .dc-steps { grid-template-columns: 1fr; gap: 0; }
  .dc-steps li { padding: 16px 0; border-top: 1px solid var(--line); }
  .dc-steps h3 { font-size: 20px; margin: 6px 0 10px; }

  .df { grid-template-columns: 1fr; grid-template-rows: none; height: auto; border-radius: 14px; }
  .df-c { padding: 20px 20px 22px; }
  .df-c:nth-child(even) { border-left: 0; }
  .df-c + .df-c { border-top: 1px solid rgba(255, 255, 255, .12); }
  .df-k { font-size: 13px; }
  .df-u { margin-top: 18px; font-size: 18px; flex-wrap: wrap; gap: 8px; }
  .df-u em { font-size: 12px; padding: 3px 9px; }
  .df-c h3 { font-size: 30px; margin-top: 8px; }
  .df-s { font-size: 13px; margin-top: 8px; }

  .pr { height: auto; }
  .pr-top { flex-direction: column; align-items: flex-start; gap: 12px; }
  .pr-legend { flex-wrap: wrap; gap: 12px; }
  .pr-legend span { font-size: 13px; }
  .gantt { --gl: 0px; --gr: 0px; }
  .g-axis { height: 24px; }
  .g-axis span { font-size: 11px; bottom: 6px; }
  .g-axis span:last-child { transform: translateX(-100%); }
  .g-row { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: 't d' 'bar bar'; row-gap: 8px; height: auto; padding: 12px 0 14px; }
  .g-t { grid-area: t; font-size: 15px; }
  .g-d { grid-area: d; display: block; font-size: 14px; font-weight: 600; color: var(--muted); }
  .g-track { grid-area: bar; height: 12px; background-size: 25% 100%; }
  .g-track em { display: none; }
  .g-bar { height: 12px; }
  .g-end { display: none; }
  .pr-out { flex-direction: column; align-items: flex-start; gap: 14px; margin-top: 22px; padding: 18px; }
  .pr-out-h { font-size: 16px; }
  .pr-out-h i { width: 38px; height: 38px; border-radius: 10px; }
  .pr-out li { font-size: 14px; padding: 7px 13px 7px 8px; }

  .ru { grid-template-columns: 1fr 1fr; height: auto; gap: 22px 12px; }
  .ru-c .mk { flex: 0 0 auto; height: 340px; border-radius: 20px; }
  .ru-c h3 { font-size: 15px; white-space: normal; flex-wrap: wrap; gap: 4px 6px; }
  .ru-c .muted { font-size: 12px; }
  .ru-badge { font-size: 10.5px; padding: 3px 8px; }
  .mk { font-size: 10.5px; }
  .mk-rail { bottom: 84px; }

  .gl { height: auto; }
  .gl-tabs { overflow-x: auto; }
  .gl-flow { grid-template-columns: 1fr; }
  .gl-flow li { grid-template-columns: 1fr; gap: 2px; padding-left: 26px; }
  .gl-flow b { font-size: 18px; gap: 8px; }
  .gl-logo { height: 20px; }
  .gl-flow span { font-size: 14px; }
  .gl-stats { gap: 24px; }
  .gl-stats .num { font-size: 36px; }

  .ch-num .num { font-size: 84px; }
  .ch-flow li { font-size: 15px; }
  .ch-grid .hero { grid-row: auto; }
  .ch-grid { justify-self: stretch; min-width: 0; }
  .tt:not(.on) .tt-play { display: grid !important; }

  .ce-l h3 { font-size: 22px; }
  .ce-l li { font-size: 15px; }

  .br { grid-template-columns: 1fr; height: auto; }
  .br-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .br-pack { padding: 20px; }
  .br-pack li.ghost { display: none; }
  .br-pack ul:has(.ghost) { margin-top: 0; }
  .br-hint { padding-top: 10px; }
  .br-t { padding: 16px; min-height: 160px; }
  .br-t .ic { width: 44px; height: 44px; border-radius: 12px; }
  .br-t .ic svg { width: 24px; height: 24px; }
  .br-t b { font-size: 18px; }
  .br-t .muted { font-size: 13px; }

  .tm { display: block; }
  .tm-flow { grid-template-columns: 1fr; gap: 10px; }
  .tm-flow > li { padding: 20px; min-height: 120px; gap: 14px; }
  .tm-faces { grid-template-columns: repeat(6, 1fr); gap: 6px; margin: 0; }
  .tm-faces img { width: 100%; height: auto; aspect-ratio: 1; }
  .tm-ups { grid-template-columns: repeat(6, 1fr); gap: 6px; margin: 0; }
  .tm-ups em { left: 3px; bottom: 3px; padding: 2px 4px; font-size: 9px; }
  .tm-ups em svg { width: 9px; height: 9px; }
  .tm-bill { margin: 0; }
  .tm-bill .num { font-size: 64px; }
  .tm-flow > li + li::before { display: none; }
  .tm-flow > li > b { font-size: 22px; }
  .tm-in { flex-direction: column; align-items: flex-start; margin-top: 18px; }
  .tm-in .pill { margin-left: 0; }

  .fq { columns: 1; }
  .fq-item button { font-size: 17px; padding: 18px 0; }
  .fq-item p { font-size: 15px; padding-right: 0; }

  .ct-topics { grid-template-columns: 1fr 1fr; }
  .choice { padding: 16px; font-size: 15px; }
  .ct-card { padding: 20px; }
  .ct-row { grid-template-columns: 1fr; }

  dialog { padding: 22px 18px 24px; }
  .ov > li { grid-template-columns: 1fr; gap: 10px; padding: 12px 0; }
  .ov h3 { font-size: 17px; }
  .ov button { font-size: 14px; padding: 8px 12px; }
}
