/* 플레이어 공간(메인, 작품, 서재). 캐릭터 카드와 가로 줄로 작품을 고르는 어두운 앱 화면.
   tokens.css와 base.css 다음에 불러온다. 창작 공간(create, project)은 이 파일 위에 creator.css를 더한다.
   선보다 면의 밝기 차이로 나눈다. 테두리는 꼭 필요한 곳(점선 추가, 입력 포커스)에만 쓴다. */
body { padding-bottom: calc(var(--nav-h) + var(--safe-b)); }
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 var(--gutter); }

/* ── 상단 바 ── */
.appbar { position: sticky; top: 0; z-index: 40; background: var(--glass); backdrop-filter: saturate(1.5) blur(16px); -webkit-backdrop-filter: saturate(1.5) blur(16px); padding-top: var(--safe-t); }
.appbar .wrap { display: flex; align-items: center; gap: var(--sp-2); height: var(--bar-h); }
.logo { display: inline-flex; align-items: center; min-height: var(--h-lg); gap: var(--sp-2); margin-right: auto; font-size: var(--fs-20); line-height: var(--lh-20); font-weight: var(--fw-bold); letter-spacing: -0.035em; }
.logo i { position: relative; display: block; width: 24px; height: 24px; border-radius: 7px; background: var(--accent); }
.logo i::after { content: ''; position: absolute; left: 6px; right: 6px; top: 11px; height: 2px; border-radius: 1px; background: var(--on-accent); transform: rotate(-24deg); }
.topnav { display: none; }
.bar-tools { display: flex; align-items: center; gap: var(--sp-1); }
.icon-btn { width: var(--h-lg); height: var(--h-lg); display: grid; place-items: center; border-radius: var(--r-md); color: var(--text-2); background: transparent; border: 0; transition: background-color var(--dur-1) var(--ease), color var(--dur-1) var(--ease); }
.icon-btn:hover { background: var(--surface-1); color: var(--text-1); }
.icon-btn svg { width: var(--icon-24); height: var(--icon-24); stroke-width: var(--stroke-24); }

/* 작은 알약 버튼 (36px, 누르는 자리는 44px) */
.pill-btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: var(--h-md); padding: 0 var(--sp-4); border: 0; border-radius: var(--r-pill); background: var(--surface-2); color: var(--text-1); font-size: var(--fs-14); line-height: var(--lh-14); font-weight: var(--fw-semibold); white-space: nowrap; transition: background-color var(--dur-1) var(--ease), filter var(--dur-1) var(--ease); }
.pill-btn:hover { background: var(--surface-3); }
.pill-btn svg { width: var(--icon-16); height: var(--icon-16); stroke-width: var(--stroke-16); }
.pill-btn::after { content: ''; position: absolute; inset: -4px 0; }
.make-btn svg { margin-left: -2px; }

/* ── 서재 탭 ── */
.lib-tabs { display: flex; gap: var(--sp-2); overflow-x: auto; scrollbar-width: none; max-width: 1180px; margin: 0 auto; padding: var(--sp-1) var(--gutter) var(--sp-3); }
.lib-tabs::-webkit-scrollbar { display: none; }
.tab { position: relative; flex: none; height: var(--h-md); padding: 0 var(--sp-4); border: 0; border-radius: var(--r-pill); background: var(--surface-1); color: var(--text-2); font-size: var(--fs-14); line-height: var(--lh-14); font-weight: var(--fw-semibold); transition: background-color var(--dur-1) var(--ease), color var(--dur-1) var(--ease); }
.tab:hover { color: var(--text-1); }
.tab[aria-pressed="true"] { background: var(--text-1); color: var(--bg); }
.tab::after { content: ''; position: absolute; inset: -4px 0; }
/* 화면 읽기 프로그램에만 들리는 글 */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ── 넘겨 보는 큰 카드 ── */
.hero { display: flex; gap: var(--sp-3); overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 var(--gutter); scrollbar-width: none; max-width: 1180px; margin: 0 auto; padding: var(--sp-2) var(--gutter) var(--sp-2); }
.hero::-webkit-scrollbar { display: none; }
.hero-card { position: relative; flex: none; width: 86%; max-width: 560px; aspect-ratio: 4 / 5; border-radius: var(--r-lg); overflow: hidden; scroll-snap-align: center; background: var(--surface-1); isolation: isolate; }
.hero-card .art { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.hero-card::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(10,11,15,.42) 0, rgba(10,11,15,0) 22%, rgba(10,11,15,0) 36%, rgba(10,11,15,.6) 60%, var(--image-fade) 100%); }
.hero-card .who { position: absolute; right: -6%; bottom: 26%; z-index: -1; width: 68%; filter: drop-shadow(0 12px 28px rgba(0,0,0,.5)); }
/* 큰 카드의 글자 자리는 카드마다 같다. 배지는 왼쪽 위에, 제목(두 줄 자리)과 첫 문장(두 줄 자리)과 버튼 줄은 아래에 고정한다.
   배지와 제목의 왼쪽 끝은 같은 안쪽 여백(--hero-pad)에 맞춘다 */
.hero-card { --hero-pad: var(--sp-5); }
.hero-badges { position: absolute; top: var(--hero-pad); left: var(--hero-pad); right: var(--hero-pad); z-index: 1; flex-wrap: nowrap; overflow: hidden; }
.hero-body { position: absolute; left: 0; right: 0; bottom: 0; display: grid; gap: var(--sp-2); padding: var(--hero-pad); }
.badges { display: flex; flex-wrap: wrap; gap: 6px; }
.badge { display: inline-flex; align-items: center; height: var(--h-xs); padding: 0 var(--sp-2); border-radius: var(--r-xs); background: rgba(255,255,255,.14); color: var(--text-1); font-size: var(--fs-12); line-height: var(--lh-12); font-weight: var(--fw-semibold); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.badge.free { background: var(--accent); color: var(--on-accent); }
.hero-title { display: flex; align-items: flex-end; min-height: calc(var(--lh-28) * 2); font-size: var(--fs-28); line-height: var(--lh-28); letter-spacing: var(--ls-28); font-weight: var(--fw-bold); }
.hero-title span { display: -webkit-box; overflow: hidden; -webkit-line-clamp: 2; -webkit-box-orient: vertical; text-wrap: balance; }
.hero-hook { display: -webkit-box; height: calc(var(--lh-15) * 2); overflow: hidden; -webkit-line-clamp: 2; -webkit-box-orient: vertical; color: var(--text-on-image); font-size: var(--fs-15); line-height: var(--lh-15); }
.hero-row { display: flex; align-items: center; gap: var(--sp-2); height: var(--h-lg); margin-top: var(--sp-2); }
.faces { display: flex; }
.faces canvas, .faces img { width: 28px; height: 28px; margin-left: -6px; border-radius: 50%; object-fit: cover; background: var(--surface-3); box-shadow: 0 0 0 2px var(--bg); }
.faces canvas { image-rendering: pixelated; }
.faces > :first-child { margin-left: 0; }
/* 폰 폭에서는 얼굴을 셋까지만 보여 '인물 N명'이 잘리지 않게 한다 */
@media (max-width: 420px) { .faces > :nth-child(n+4) { display: none; } }
@media (max-width: 370px) { .faces > :nth-child(n+3) { display: none; } }
.faces-txt { min-width: 0; overflow: hidden; color: var(--text-2); font-size: var(--fs-13); line-height: var(--lh-13); font-weight: var(--fw-medium); text-overflow: ellipsis; white-space: nowrap; }
.play-btn { display: inline-flex; flex: none; align-items: center; justify-content: center; gap: 6px; height: var(--h-lg); margin-left: auto; padding: 0 var(--sp-5) 0 var(--sp-4); border-radius: var(--r-pill); background: var(--accent); color: var(--on-accent); font-size: var(--fs-15); line-height: var(--lh-15); font-weight: var(--fw-bold); white-space: nowrap; transition: background-color var(--dur-1) var(--ease), transform var(--dur-1) var(--ease); }
.play-btn:hover { background: var(--accent-hover); }
.play-btn:active { background: var(--accent-pressed); transform: scale(.98); }
.play-btn svg { width: 18px; height: 18px; }
.dots { display: flex; justify-content: center; gap: 6px; padding: var(--sp-2) 0 0; }
.dots i { width: 6px; height: 6px; border-radius: 3px; background: var(--surface-3); transition: width var(--dur-2) var(--ease), background-color var(--dur-2) var(--ease); }
.dots i.on { width: 18px; background: var(--text-2); }

/* ── 줄 (가로로 넘기기) ── */
.section { padding: var(--sp-8) 0 0; }
.sec-head { display: flex; align-items: baseline; gap: var(--sp-2); max-width: 1180px; margin: 0 auto; padding: 0 var(--gutter) var(--sp-3); }
.sec-head h2 { font-size: var(--fs-20); line-height: var(--lh-20); letter-spacing: var(--ls-20); font-weight: var(--fw-bold); }
.sec-head small { color: var(--text-3); font-size: var(--fs-13); line-height: var(--lh-13); font-weight: var(--fw-medium); }
.sec-head a { display: inline-flex; align-items: center; justify-content: center; min-width: var(--h-lg); min-height: var(--h-lg); margin-left: auto; color: var(--text-2); font-size: var(--fs-13); font-weight: var(--fw-medium); }
.page-title { font-size: var(--fs-24) !important; line-height: var(--lh-24); letter-spacing: var(--ls-24); }
.rail, .shots { display: flex; gap: var(--sp-3); overflow-x: auto; scroll-snap-type: x proximity; scroll-padding: 0 var(--gutter); scrollbar-width: none; max-width: 1180px; margin: 0 auto; padding: 0 var(--gutter) var(--sp-1); }
.rail::-webkit-scrollbar, .shots::-webkit-scrollbar { display: none; }
.rail > *, .shots > * { flex: none; scroll-snap-align: start; }
/* 줄 끝을 부드럽게 흐린다. 첫 칸은 여백 안이라 가려지지 않는다 */
.rail, .shots, .hero { -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 var(--gutter), #000 calc(100% - 28px), transparent); mask-image: linear-gradient(90deg, transparent 0, #000 var(--gutter), #000 calc(100% - 28px), transparent); }

/* 이어 하기: 큰 카드 바로 아래, 다른 줄보다 큰 썸네일 */
.continue .tile { width: 280px; }
.continue .sec-head h2::before { content: ''; display: inline-block; width: 8px; height: 8px; margin: 0 var(--sp-2) 3px 0; border-radius: 50%; background: var(--accent); vertical-align: middle; }
/* 주제 줄은 서로 붙여 한 흐름으로 읽히게 한다 */
.shelf { padding-top: var(--sp-6); }

/* ── 움직이는 썸네일 (platform/motion.js) ── 정지 표지 위에 겹치고, 재생이 시작되면(.on) 나타난다 */
.motion { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; pointer-events: none; transition: opacity var(--dur-3) var(--ease); }
.motion.on { opacity: 1; }
.hero-card .motion { z-index: -2; }
.detail-hero .motion { z-index: 0; }
@media (prefers-reduced-motion: reduce) { .motion { display: none; } }

/* ── 인물 카드 ── */
.char { position: relative; display: block; width: 148px; border-radius: var(--r-md); overflow: hidden; background: var(--surface-1); transition: transform var(--dur-2) var(--ease); }
.char .pic { position: relative; display: grid; place-items: end center; aspect-ratio: 3 / 4; overflow: hidden; }
.char .pic canvas, .char .pic img { width: 112%; margin-bottom: -4%; }
.char .pic canvas { image-rendering: pixelated; }
.char .pic img.smooth { width: 96%; margin-bottom: 0; }
.char .pic::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,11,15,0) 52%, var(--image-fade)); }
.char .nm { position: absolute; left: var(--sp-3); right: var(--sp-3); bottom: 56px; z-index: 1; display: grid; gap: 2px; }
.char .nm b { font-size: var(--fs-17); line-height: var(--lh-17); letter-spacing: var(--ls-17); font-weight: var(--fw-bold); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.char .nm span { color: var(--text-2); font-size: var(--fs-12); line-height: var(--lh-12); font-weight: var(--fw-medium); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* 첫마디는 두 줄(18px × 2)에 맞춰 높이를 고정한다 */
.char .q { display: -webkit-box; height: 56px; margin: 0; padding: var(--sp-2) var(--sp-3) var(--sp-3); overflow: hidden; -webkit-line-clamp: 2; -webkit-box-orient: vertical; color: var(--text-on-image); font-size: var(--fs-13); line-height: 18px; }
.char .from { position: absolute; top: var(--sp-2); left: var(--sp-2); z-index: 1; max-width: calc(100% - 16px); height: var(--h-xs); display: inline-flex; align-items: center; padding: 0 var(--sp-2); border-radius: var(--r-xs); background: rgba(10,11,15,.6); color: var(--text-1); font-size: var(--fs-12); line-height: var(--lh-12); font-weight: var(--fw-medium); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.char.big { width: 176px; }

/* ── 작품 썸네일 ── */
.tile { display: block; width: 252px; }
.tile .thumb { position: relative; aspect-ratio: 16 / 9; border-radius: var(--r-md); overflow: hidden; background: var(--surface-1); }
.tile .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur-3) var(--ease); }
.tile .thumb .go { z-index: 1; position: absolute; right: var(--sp-2); bottom: var(--sp-2); display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: rgba(10,11,15,.62); color: var(--text-1); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.tile .thumb .go svg { width: var(--icon-16); height: var(--icon-16); margin-left: 2px; }
.tile .bar { z-index: 1; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255,255,255,.2); }
.tile .bar i { display: block; height: 100%; background: var(--accent); }
.tile h3 { display: -webkit-box; min-height: calc(var(--lh-15) * 2); margin: var(--sp-2) 2px 2px; overflow: hidden; -webkit-line-clamp: 2; -webkit-box-orient: vertical; font-size: var(--fs-15); line-height: var(--lh-15); letter-spacing: var(--ls-15); font-weight: var(--fw-semibold); }
.tile .meta { display: flex; flex-wrap: nowrap; align-items: center; gap: 6px; height: var(--lh-13); margin: 0 2px; overflow: hidden; white-space: nowrap; color: var(--text-3); font-size: var(--fs-13); line-height: var(--lh-13); font-weight: var(--fw-medium); font-variant-numeric: tabular-nums; }
.tile .meta > span:not(.dot) { overflow: hidden; text-overflow: ellipsis; }
.tile .meta .dot { flex: none; }
.tile .meta .tag { color: var(--text-2); }
.tile .meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--text-4); }
.tile .done-mark { position: absolute; left: var(--sp-2); top: var(--sp-2); display: inline-flex; align-items: center; height: var(--h-xs); padding: 0 var(--sp-2); border-radius: var(--r-xs); background: rgba(10,11,15,.66); color: var(--success); font-size: var(--fs-12); font-weight: var(--fw-semibold); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.row.done .thumb img, .tile.done .thumb img { filter: saturate(.6) brightness(.8); }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-5) var(--sp-3); max-width: 1180px; margin: 0 auto; padding: 0 var(--gutter); }
.grid .tile { width: auto; }
.empty { padding: var(--sp-6) var(--gutter) 0; color: var(--text-3); font-size: var(--fs-14); line-height: var(--lh-14); text-align: center; }
.empty + .empty { padding-top: var(--sp-4); }
@media (hover: hover) {
  .char:hover { transform: translateY(-2px); }
  .tile:hover .thumb img { transform: scale(1.03); }
}

/* ── 아래 탭 ── */
.bottomnav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; padding-bottom: var(--safe-b); background: var(--glass); backdrop-filter: saturate(1.5) blur(16px); -webkit-backdrop-filter: saturate(1.5) blur(16px); box-shadow: inset 0 var(--hair) 0 var(--line-1); }
.bottomnav nav { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; max-width: 560px; height: var(--nav-h); margin: 0 auto; }
.bottomnav a { display: grid; place-items: center; align-content: center; gap: 2px; color: var(--text-3); font-size: 11px; line-height: 14px; font-weight: var(--fw-medium); transition: color var(--dur-1) var(--ease); }
.bottomnav a svg { width: var(--icon-24); height: var(--icon-24); stroke-width: var(--stroke-24); }
.bottomnav a[aria-current="page"] { color: var(--text-1); font-weight: var(--fw-semibold); }
.bottomnav a[aria-current="page"] svg { color: var(--accent); }

/* ── 작품 상세 ── */
.detail-hero { position: relative; width: 100%; aspect-ratio: 4 / 5; max-height: 72vh; overflow: hidden; background: var(--surface-1); }
.detail-hero .art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.detail-hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(13,14,18,.5) 0%, rgba(13,14,18,0) 18%, rgba(13,14,18,0) 48%, var(--bg) 100%); }
.detail-hero .who { position: absolute; right: -4%; bottom: 8%; z-index: 1; width: 62%; filter: drop-shadow(0 12px 28px rgba(0,0,0,.5)); }
.floatbar { position: absolute; left: 0; right: 0; top: 0; z-index: 3; display: flex; justify-content: space-between; padding: calc(var(--safe-t) + var(--sp-2)) var(--sp-3); }
.round { display: grid; place-items: center; width: var(--h-lg); height: var(--h-lg); border: 0; border-radius: 50%; background: rgba(10,11,15,.56); color: #fff; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); transition: background-color var(--dur-1) var(--ease); }
.round:hover { background: rgba(10,11,15,.7); }
.round svg { width: var(--icon-24); height: var(--icon-24); stroke-width: var(--stroke-24); }
.round[aria-pressed="true"] { color: var(--danger); }
.detail-head { position: relative; z-index: 2; max-width: 1180px; margin: -96px auto 0; padding: 0 var(--gutter); }
.detail-head h1 { margin: var(--sp-3) 0 var(--sp-2); font-size: var(--fs-28); line-height: var(--lh-28); letter-spacing: var(--ls-28); font-weight: var(--fw-bold); text-wrap: balance; }
.detail-head .hook { color: var(--text-on-image); font-size: var(--fs-15); line-height: 24px; }
.by { display: flex; align-items: center; gap: var(--sp-2); margin-top: var(--sp-4); color: var(--text-2); font-size: var(--fs-13); line-height: var(--lh-13); font-weight: var(--fw-medium); }
.by i { width: 24px; height: 24px; border-radius: 7px; background: var(--accent); }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 1148px; margin: var(--sp-5) var(--gutter) 0; padding: var(--sp-3) 0; border-radius: var(--r-md); background: var(--surface-1); }
.facts div { display: grid; gap: 2px; padding: 0 var(--sp-2); text-align: center; }
.facts div + div { box-shadow: inset var(--hair) 0 0 var(--line-1); }
.facts b { font-size: var(--fs-14); line-height: var(--lh-14); font-weight: var(--fw-semibold); font-variant-numeric: tabular-nums; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.facts span { color: var(--text-3); font-size: var(--fs-12); line-height: var(--lh-12); font-weight: var(--fw-medium); }
.about { max-width: 1180px; margin: 0 auto; padding: 0 var(--gutter); color: var(--text-on-image); font-size: var(--fs-15); line-height: 26px; }
.about p { margin: 0; }
.about ul { margin: var(--sp-3) 0 0; padding-left: 18px; color: var(--text-2); }
.about li + li { margin-top: var(--sp-1); }
.shots img { width: 260px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--r-md); background: var(--surface-1); }
.note { max-width: 1180px; margin: 0 auto; padding: var(--sp-6) var(--gutter) 0; color: var(--text-3); font-size: var(--fs-13); line-height: var(--lh-13); }
.playbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 55; display: flex; gap: var(--sp-2); max-width: 760px; margin: 0 auto; padding: var(--sp-6) var(--gutter) calc(var(--safe-b) + var(--sp-3)); background: linear-gradient(180deg, rgba(13,14,18,0), var(--bg) 40%); }
.playbar .play-btn { flex: 1; height: var(--h-xl); margin: 0; font-size: var(--fs-17); }
.playbar .sq { display: grid; place-items: center; width: var(--h-xl); height: var(--h-xl); border: 0; border-radius: var(--r-md); background: var(--surface-2); transition: background-color var(--dur-1) var(--ease); }
.playbar .sq:hover { background: var(--surface-3); }
.playbar .sq svg { width: var(--icon-24); height: var(--icon-24); stroke-width: var(--stroke-24); }
.playbar .sq[aria-pressed="true"] { color: var(--danger); }
body[data-page="world"] { padding-bottom: calc(96px + var(--safe-b)); }
body[data-page="world"] .bottomnav { display: none; }

/* ── 짧은 알림 ── */
.toast { position: fixed; left: 50%; bottom: calc(var(--nav-h) + var(--safe-b) + var(--sp-4)); z-index: 70; max-width: calc(100vw - 32px); padding: var(--sp-3) var(--sp-4); border-radius: var(--r-md); background: var(--surface-3); color: var(--text-1); box-shadow: var(--shadow-2); font-size: var(--fs-14); line-height: var(--lh-14); font-weight: var(--fw-medium); opacity: 0; transform: translate(-50%, 8px); transition: opacity var(--dur-2) var(--ease), transform var(--dur-2) var(--ease); pointer-events: none; }
.toast.on { opacity: 1; transform: translate(-50%, 0); }
body[data-page="world"] .toast { bottom: calc(96px + var(--safe-b)); }

/* ── 서재 ── */
.lib-tabs { padding-top: 0; padding-bottom: var(--sp-2); }
.row { display: flex; align-items: center; gap: var(--sp-3); max-width: 1180px; margin: 0 auto; padding: var(--sp-3) var(--gutter); }
.row > a:nth-child(2) { flex: 1; min-width: 0; display: grid; gap: 2px; }
.row .thumb { flex: none; width: 112px; aspect-ratio: 16 / 9; border-radius: var(--r-sm); overflow: hidden; background: var(--surface-1); }
.row .thumb img { width: 100%; height: 100%; object-fit: cover; }
.row b { font-size: var(--fs-15); line-height: var(--lh-15); letter-spacing: var(--ls-15); font-weight: var(--fw-semibold); }
.row span { color: var(--text-3); font-size: var(--fs-13); line-height: var(--lh-13); font-weight: var(--fw-medium); font-variant-numeric: tabular-nums; }
.row .pill-btn { flex: none; margin-left: auto; }
.row .pill-btn.go { background: var(--accent); color: var(--on-accent); }
.row .pill-btn.go:hover { background: var(--accent-hover); }
.row .row-acts { flex: none; display: flex; flex-direction: column; align-items: stretch; gap: var(--sp-2); margin-left: auto; }
.row .row-acts .pill-btn { margin-left: 0; }
.row + .row { box-shadow: inset 0 var(--hair) 0 var(--line-1); }

/* ── 칩 (탐색 필터, 작품 태그) ── 36px, 누르는 자리는 위아래로 넓혀 44px */
.chips { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.chip { position: relative; display: inline-flex; align-items: center; gap: 6px; height: var(--h-md); padding: 0 14px; border: 0; border-radius: var(--r-pill); background: var(--surface-2); color: var(--text-1); font-size: var(--fs-14); line-height: var(--lh-14); font-weight: var(--fw-medium); white-space: nowrap; transition: background-color var(--dur-1) var(--ease), color var(--dur-1) var(--ease); }
.chip::after { content: ''; position: absolute; inset: -4px 0; }
.chip:hover { background: var(--surface-3); }
.chip small { color: var(--text-3); font-size: var(--fs-12); font-weight: var(--fw-medium); }
.chip.quiet { color: var(--text-3); }
.chip[aria-pressed="true"], .chip.on { background: var(--text-1); color: var(--bg); }
.chip[aria-pressed="true"] small { color: var(--text-4); }
.chip svg { width: 14px; height: 14px; stroke-width: var(--stroke-16); }
.chip.on svg { margin-right: -4px; }

/* ── 탐색 ──
   휴대폰: 위 한 줄(검색, 필터, 정렬) → 고른 조건 칩 → 결과 격자. 필터는 아래에서 올라오는 판(묶음별 칩 격자, 아래에 고정된 'N개 작품 보기').
   960px 이상: 같은 판이 왼쪽에 붙은 사이드바가 되고 오른쪽이 결과 격자다. 가로로 끝없이 넘기는 줄은 두지 않는다 */
.explore { max-width: 1180px; margin: 0 auto; }
.ex-head { padding: var(--sp-2) var(--gutter) 0; display: grid; gap: var(--sp-3); }
.ex-top { display: flex; align-items: center; gap: var(--sp-2); }
.search-field { position: relative; display: block; flex: 1; min-width: 0; }
.search-field > svg { position: absolute; left: 12px; top: 12px; width: var(--icon-20); height: var(--icon-20); stroke-width: var(--stroke-20); color: var(--text-3); pointer-events: none; }
.search-field input { width: 100%; height: var(--h-lg); padding: 0 var(--h-lg) 0 40px; border: 1px solid transparent; border-radius: var(--r-md); background: var(--field); color: var(--text-1); font-size: 16px; font-weight: var(--fw-medium); text-overflow: ellipsis; transition: border-color var(--dur-1) var(--ease), background-color var(--dur-1) var(--ease); }
.search-field input:placeholder-shown { padding-right: var(--sp-3); }
.search-field input::placeholder { color: var(--text-3); }
.search-field input:focus { outline: none; border-color: var(--accent-line); background: var(--field-hover); }
.search-field input:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.search-field input::-webkit-search-cancel-button { display: none; }
.search-field .clear { position: absolute; right: 0; top: 0; display: grid; place-items: center; width: var(--h-lg); height: var(--h-lg); border: 0; border-radius: var(--r-md); background: transparent; color: var(--text-3); }
.search-field .clear svg { width: var(--icon-16); height: var(--icon-16); stroke-width: var(--stroke-16); }
.ex-toggle { flex: none; height: var(--h-lg); padding: 0 var(--sp-3); }
.ex-toggle b { min-width: 20px; height: 20px; margin-left: 2px; padding: 0 6px; border-radius: 10px; background: var(--accent); color: var(--on-accent); font-size: var(--fs-12); line-height: 20px; text-align: center; }
.ex-toggle[aria-expanded="true"] { background: var(--surface-3); }
.sort-field { position: relative; flex: none; display: block; }
.sort-field > svg { position: absolute; left: 12px; top: 14px; width: var(--icon-16); height: var(--icon-16); stroke-width: var(--stroke-16); color: var(--text-2); pointer-events: none; }
.sort-field select { height: var(--h-lg); max-width: 132px; padding: 0 var(--sp-3) 0 34px; border: 0; border-radius: var(--r-pill); background: var(--surface-2); color: var(--text-1); font-size: var(--fs-14); font-weight: var(--fw-semibold); appearance: none; -webkit-appearance: none; cursor: pointer; transition: background-color var(--dur-1) var(--ease); }
.sort-field select:hover { background: var(--surface-3); }
.sort-field select option { background: var(--elevated); color: var(--text-1); }
/* 휴대폰: 정렬은 아이콘 단추(44px). 고른 정렬은 위의 칩과 점으로 보인다 */
@media (max-width: 559px) {
  .sort-field > svg { left: 14px; }
  .sort-field select { width: var(--h-lg); padding: 0; color: transparent; }
  .sort-field select option { color: var(--text-1); }
  .sort-field.set::after { content: ''; position: absolute; top: 9px; right: 9px; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); pointer-events: none; }
  .ex-toggle { padding: 0 var(--sp-3) 0 var(--sp-3); }
}
.sort-chip svg:first-child { width: 14px; height: 14px; margin-left: -2px; }
@media (min-width: 560px) { .sort-chip, .active.only-sort { display: none; } }
.chips.hint .chip { background: var(--accent-soft); color: var(--accent); }
.active-chips { align-items: center; }
.active:empty, #hint:empty { display: none; }
.reset { min-height: var(--h-lg); padding: 0 var(--sp-2); border: 0; border-radius: var(--r-sm); background: transparent; color: var(--text-2); font-size: var(--fs-13); font-weight: var(--fw-medium); }
.reset:hover { color: var(--text-1); }
.reset:disabled { color: var(--text-4); cursor: default; }
.ex-results { min-width: 0; padding: 0 var(--gutter); }
.ex-results .grid { padding: 0; }
.ex-bar { display: flex; align-items: center; min-height: var(--h-lg); }
.ex-count { color: var(--text-2); font-size: var(--fs-14); line-height: var(--lh-14); font-weight: var(--fw-semibold); }
.ex-empty { display: grid; justify-items: center; gap: var(--sp-2); padding: var(--sp-10) var(--sp-4); border-radius: var(--r-md); background: var(--surface-1); text-align: center; }
.ex-empty b { font-size: var(--fs-15); line-height: var(--lh-15); }
.ex-empty p { color: var(--text-3); font-size: var(--fs-14); line-height: var(--lh-14); }
.ex-empty .pill-btn { margin-top: var(--sp-2); }

/* 필터 판 (휴대폰과 태블릿: 아래에서 올라오는 판) */
.ex-filters { position: fixed; left: 0; right: 0; bottom: 0; z-index: 80; display: flex; flex-direction: column; max-width: 720px; max-height: min(86dvh, 760px); margin: 0 auto; border-radius: var(--r-lg) var(--r-lg) 0 0; background: var(--elevated); box-shadow: var(--shadow-3); transform: translateY(100%); visibility: hidden; transition: transform var(--dur-3) var(--ease), visibility 0s linear var(--dur-3); }
.ex-filters.open { transform: none; visibility: visible; transition: transform var(--dur-3) var(--ease), visibility 0s; }
.ex-filters:focus { outline: none; }
.scrim { position: fixed; inset: 0; z-index: 79; background: var(--scrim); }
body.sheet-open { overflow: hidden; }
.sheet-head { position: relative; flex: none; display: flex; align-items: center; min-height: var(--bar-h); padding: var(--sp-2) var(--sp-2) 0 var(--gutter); }
.sheet-head h2 { margin-right: auto; font-size: var(--fs-17); line-height: var(--lh-17); letter-spacing: var(--ls-17); font-weight: var(--fw-bold); }
.sheet-head .grab { position: absolute; top: 6px; left: 50%; width: 36px; height: 4px; margin-left: -18px; border-radius: 2px; background: var(--line-3); }
.sheet-body { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 0 var(--gutter) var(--sp-2); }
.sheet-foot { flex: none; display: flex; align-items: center; gap: var(--sp-2); padding: var(--sp-3) var(--gutter) calc(var(--sp-3) + var(--safe-b)); box-shadow: inset 0 var(--hair) 0 var(--line-1); }
.apply-btn { flex: 1; height: var(--h-xl); border: 0; border-radius: var(--r-pill); background: var(--accent); color: var(--on-accent); font-size: var(--fs-17); line-height: var(--lh-17); font-weight: var(--fw-bold); transition: background-color var(--dur-1) var(--ease); }
.apply-btn:hover { background: var(--accent-hover); }
.apply-btn:active { background: var(--accent-pressed); }
.fgroup { padding: var(--sp-4) 0; }
.fgroup + .fgroup { box-shadow: inset 0 var(--hair) 0 var(--line-1); }
.fg-title { display: flex; align-items: center; gap: 6px; font-size: var(--fs-15); line-height: var(--lh-15); font-weight: var(--fw-semibold); }
.fg-title .fg-k { color: var(--text-3); font-weight: var(--fw-medium); }
.fg-title b { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--accent); color: var(--on-accent); font-size: var(--fs-12); line-height: 20px; text-align: center; }
.fg-note { margin-top: 2px; color: var(--text-3); font-size: var(--fs-13); line-height: var(--lh-13); }
.fgroup .chips { margin-top: var(--sp-3); }
.chip.avoid[aria-pressed="true"] { background: var(--danger-soft); color: var(--danger); box-shadow: inset 0 0 0 var(--hair) var(--danger-line); text-decoration: line-through; }
.chip.avoid[aria-pressed="true"] small { color: var(--danger); text-decoration: none; }
.more-btn { display: inline-flex; align-items: center; gap: 4px; min-height: var(--h-lg); margin-top: var(--sp-1); padding: 0 var(--sp-1); border: 0; border-radius: var(--r-sm); background: transparent; color: var(--text-2); font-size: var(--fs-13); line-height: var(--lh-13); font-weight: var(--fw-semibold); }
.more-btn:hover { color: var(--text-1); }
.more-btn svg { width: var(--icon-16); height: var(--icon-16); stroke-width: var(--stroke-16); transition: transform var(--dur-2) var(--ease); }
.more-btn[aria-expanded="true"] svg { transform: rotate(180deg); }

/* 접는 묶음 머리: 프로젝트 화면의 장르·키워드 고르기(creator.css)가 쓴다 */
.fhead { display: flex; align-items: center; gap: var(--sp-2); width: 100%; min-height: var(--h-lg); padding: 0; border: 0; background: transparent; color: var(--text-1); font-size: var(--fs-15); line-height: var(--lh-15); font-weight: var(--fw-semibold); text-align: left; }
.fhead b { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--accent); color: var(--on-accent); font-size: var(--fs-12); line-height: 20px; text-align: center; }
.fhead svg { width: var(--icon-20); height: var(--icon-20); margin-left: auto; color: var(--text-3); transition: transform var(--dur-2) var(--ease); }
.fhead[aria-expanded="true"] svg { transform: rotate(180deg); }

/* 넓은 화면: 왼쪽 사이드바 + 오른쪽 결과 */
@media (min-width: 960px) {
  .ex-head { padding-bottom: var(--sp-2); }
  .ex-layout { display: grid; grid-template-columns: 288px minmax(0, 1fr); gap: var(--sp-6); padding: 0 var(--gutter); }
  .ex-filters, .ex-filters.open { position: sticky; top: calc(var(--bar-h) + var(--safe-t) + var(--sp-3)); left: auto; right: auto; bottom: auto; z-index: auto; align-self: start; max-width: none; max-height: calc(100dvh - var(--bar-h) - var(--sp-8)); margin: 0; border-radius: var(--r-md); background: var(--surface-1); box-shadow: none; transform: none; visibility: visible; transition: none; }
  .sheet-head { min-height: var(--h-lg); padding: var(--sp-2) var(--sp-4) 0; }
  .sheet-head .grab, #sheetClose, .sheet-foot, .ex-toggle, .scrim { display: none; }
  .sheet-body { padding: 0 var(--sp-4) var(--sp-2); scrollbar-width: thin; }
  .ex-results { padding: 0; }
}

/* ── 작품 상세의 태그 ── */
.taglist { display: grid; gap: var(--sp-3); max-width: 1180px; margin: 0 auto; padding: 0 var(--gutter); }
.tag-row { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: var(--sp-2); align-items: start; }
.tag-k { color: var(--text-3); font-size: var(--fs-13); line-height: var(--h-md); font-weight: var(--fw-medium); }
.taglist a.chip { color: var(--text-1); }
.warn-note { display: grid; gap: 2px; margin-top: var(--sp-1); padding: var(--sp-3) var(--sp-4); border-radius: var(--r-md); background: var(--surface-1); color: var(--text-2); font-size: var(--fs-14); line-height: var(--lh-14); }
.warn-note b { color: var(--text-1); font-weight: var(--fw-semibold); }
@media (min-width: 960px) {
  .tag-row { grid-template-columns: 72px minmax(0, 1fr); }
}
/* 넓은 화면의 작품 상세: 플레이 버튼은 아래에 떠 있지 않고 제목 아래 제자리에 둔다(가게 상세 화면처럼) */
@media (min-width: 960px) {
  .playbar { position: static; max-width: 1180px; margin: var(--sp-5) auto 0; padding: 0 var(--gutter); background: none; }
  .playbar .play-btn { flex: 0 0 320px; }
  body[data-page="world"] { padding-bottom: var(--sp-8); }
  body[data-page="world"] .toast { bottom: var(--sp-8); }
}

/* ── 넓은 화면 ── */
@media (min-width: 760px) {
  :root { --gutter: 24px; }
  /* 글자 자리(배지, 두 줄 제목, 두 줄 첫 문장, 버튼 줄)가 겹치지 않게 높이를 정한다 */
  .hero-card { width: 46%; aspect-ratio: auto; height: clamp(360px, 32vw, 420px); }
  .hero-card .who { width: 40%; right: 2%; bottom: 8%; }
  .hero-title { min-height: calc(var(--lh-34) * 2); font-size: var(--fs-34); line-height: var(--lh-34); letter-spacing: var(--ls-34); }
  .char { width: 168px; }
  .tile { width: 300px; }
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-6) var(--sp-4); }
  .detail-hero { aspect-ratio: 21 / 9; max-height: 520px; }
  .detail-hero .who { width: 30%; right: 6%; }
  .detail-head h1 { font-size: var(--fs-34); line-height: var(--lh-34); letter-spacing: var(--ls-34); }
  .facts { margin-left: auto; margin-right: auto; width: calc(100% - 2 * var(--gutter)); }
  .bottomnav { display: none; }
  .logo { margin-right: var(--sp-6); }
  .topnav { display: flex; gap: var(--sp-1); margin-right: auto; }
  .topnav a { display: inline-flex; align-items: center; gap: var(--sp-2); height: var(--h-lg); padding: 0 var(--sp-3); border-radius: var(--r-sm); color: var(--text-2); font-size: var(--fs-15); line-height: var(--lh-15); font-weight: var(--fw-semibold); transition: background-color var(--dur-1) var(--ease), color var(--dur-1) var(--ease); }
  .topnav a svg { width: var(--icon-20); height: var(--icon-20); stroke-width: var(--stroke-20); }
  .topnav a:hover { background: var(--surface-1); color: var(--text-1); }
  .topnav a[aria-current="page"] { background: var(--surface-1); color: var(--text-1); }
  .topnav a[aria-current="page"] svg { color: var(--accent); }
  .make-btn { display: none; }
  body { padding-bottom: var(--sp-8); }
  .toast { bottom: var(--sp-8); }
}
@media (min-width: 760px) { .hero-card { --hero-pad: var(--sp-6); } }

/* 도감 진행 (플레이어가 남긴 작품 기록의 요약) */
.facts.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.dexline { display: flex; align-items: center; gap: var(--sp-2); margin-top: 2px; }
.dexbar { flex: 0 1 96px; height: 4px; border-radius: var(--r-pill); background: var(--surface-2); overflow: hidden; }
.dexbar i { display: block; height: 100%; border-radius: var(--r-pill); background: var(--accent); }
.dexline small { white-space: nowrap; color: var(--text-3); font-size: var(--fs-12); line-height: var(--lh-12); font-weight: var(--fw-medium); }

/* 가로 줄 넘기기 버튼: 마우스가 있는 화면에서만 보인다 */
.scroller { position: relative; }
.scroll-btn { display: none; position: absolute; top: 50%; z-index: 3; width: 44px; height: 44px; margin-top: -22px; border: 0; border-radius: var(--r-pill); background: var(--glass, rgba(22,24,30,.82)); color: var(--text-1); box-shadow: var(--shadow-2); cursor: pointer; place-items: center; transition: background-color var(--dur-1) var(--ease), opacity var(--dur-1) var(--ease); }
.scroll-btn svg { width: 20px; height: 20px; }
.scroll-btn:hover { background: var(--surface-3); }
.scroll-btn.prev { left: max(var(--sp-2), calc(50% - 590px + var(--sp-2))); }
.scroll-btn.next { right: max(var(--sp-2), calc(50% - 590px + var(--sp-2))); }
.scroll-btn[hidden] { display: none !important; }
@media (hover: hover) and (pointer: fine) {
  .scroll-btn { display: grid; }
  .hero, .rail, .shots { cursor: grab; }
  .hero.dragging, .rail.dragging, .shots.dragging { cursor: grabbing; scroll-snap-type: none; user-select: none; }
  .hero.dragging a, .rail.dragging a { pointer-events: none; }
}
.dots i { cursor: pointer; }

/* 출처(2026-10-18): 작품 상세의 접는 출처, 라이선스 화면, 화면 아래 라이선스 링크 */
.credits-box { max-width: 1180px; margin: 0 auto; padding: 0 var(--gutter); }
.credits-box > summary { display: flex; align-items: baseline; gap: var(--sp-2); min-height: var(--h-lg); padding: var(--sp-2) 0; cursor: pointer; list-style: none; color: var(--text-1); font-size: var(--fs-20); line-height: var(--lh-20); font-weight: var(--fw-bold); }
.credits-box > summary::-webkit-details-marker { display: none; }
.credits-box > summary::after { content: '+'; margin-left: auto; color: var(--text-3); font-weight: var(--fw-regular); }
.credits-box[open] > summary::after { content: '−'; }
.credits-box > summary small { color: var(--text-3); font-size: var(--fs-13); line-height: var(--lh-13); font-weight: var(--fw-medium); }
.credits-wait, .credits-more { margin: var(--sp-2) 0 0; color: var(--text-3); font-size: var(--fs-13); line-height: var(--lh-13); }
.credits-more a, .credit a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.credit-h { margin: var(--sp-4) 0 var(--sp-2); color: var(--text-2); font-size: var(--fs-14); line-height: var(--lh-14); font-weight: var(--fw-semibold); }
.credit-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--sp-2); }
.credit { display: grid; gap: 2px; padding: var(--sp-3) var(--sp-4); border-radius: var(--r-md); background: var(--surface-1); color: var(--text-2); font-size: var(--fs-13); line-height: var(--lh-13); overflow-wrap: anywhere; }
.credit-title { color: var(--text-1); font-size: var(--fs-14); line-height: var(--lh-14); font-weight: var(--fw-semibold); }
.credit-count { margin-left: 6px; color: var(--text-3); }
.credit-lic a { display: inline-flex; align-items: center; min-height: 32px; }
.credit-mod, .credit-note { color: var(--text-2); }
.credit-note { color: var(--info); }
.site-foot { max-width: 1180px; margin: 0 auto; padding: var(--sp-6) var(--gutter) var(--sp-6); color: var(--text-3); font-size: var(--fs-13); line-height: var(--lh-13); }
.site-foot a { display: inline-flex; align-items: center; min-height: var(--h-lg); color: var(--text-2); text-decoration: underline; text-underline-offset: 2px; }
.lic-page { max-width: 1180px; margin: 0 auto; padding: var(--sp-4) var(--gutter) 0; }
.lic-page h1 { margin: 0 0 var(--sp-2); color: var(--text-1); font-size: var(--fs-24); line-height: var(--lh-24); }
.lic-page > p { margin: 0 0 var(--sp-3); color: var(--text-2); font-size: var(--fs-14); line-height: var(--lh-14); }
.lic-page h2 { margin: var(--sp-8) 0 var(--sp-2); color: var(--text-1); font-size: var(--fs-20); line-height: var(--lh-20); }
.lic-page .lic-summary { display: grid; gap: var(--sp-2); margin: var(--sp-3) 0 0; padding: var(--sp-3) var(--sp-4); border-radius: var(--r-md); background: var(--surface-1); color: var(--text-2); font-size: var(--fs-13); line-height: var(--lh-13); }
.lic-page .lic-summary b { color: var(--text-1); }
.lic-back { display: inline-flex; align-items: center; min-height: var(--h-lg); color: var(--text-2); }
.credit-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 6px; }

/* 프로젝트 화면의 움직이는 썸네일 고르기(studio/motion-pick.js). 썸네일과 같은 16:9 */
.motion-box { display: grid; place-items: center; width: 100%; max-width: 360px; aspect-ratio: 16 / 9; margin: var(--sp-2) 0; border-radius: var(--r-md); overflow: hidden; background: var(--surface-2); }
.motion-preview { width: 100%; height: 100%; object-fit: cover; }
.motion-empty { padding: var(--sp-4); color: var(--text-3); font-size: var(--fs-13); line-height: var(--lh-13); text-align: center; }
/* 카드와 이어 하기(2026-10-20 H2-2, ui.md U2): 카드(표지)는 작품 소개로, 이어 하기는 카드 밖 형제 단추다. 큰 링크 안에 단추를 넣지 않는다 */
.hero-link { position: absolute; inset: 0; z-index: 0; border-radius: inherit; }
.hero-link:focus-visible { outline: 2px solid var(--accent); outline-offset: -4px; }
.hero-badges, .hero-body { pointer-events: none; }
.hero-body .play-btn { pointer-events: auto; position: relative; z-index: 1; }
.tile-box { position: relative; width: 252px; }
.grid .tile-box { width: auto; }
.tile-box .tile { width: 100%; }
.tile-box .tile .go { display: none; }
.tile-cont { position: absolute; right: var(--sp-2); top: var(--sp-2); z-index: 2; display: inline-flex; align-items: center; gap: 4px; min-height: 44px; padding: 0 var(--sp-3); border-radius: var(--r-pill); background: var(--accent); color: var(--on-accent); font-size: var(--fs-13); font-weight: var(--fw-semibold); text-decoration: none; box-shadow: 0 4px 12px rgba(0,0,0,.35); }
.tile-cont svg { width: var(--icon-16); height: var(--icon-16); }
.playbar .restart { flex: none; height: var(--h-xl); padding: 0 var(--sp-4); }
.facts .dex-link { display: grid; align-content: center; min-height: var(--h-lg); gap: 2px; padding: 0 var(--sp-2); text-align: center; color: inherit; text-decoration: none; border-radius: var(--r-sm); box-shadow: inset var(--hair) 0 0 var(--line-1); }
.facts .dex-link:focus-visible { outline: 2px solid var(--accent); }

/* 낮은 가로 폰에서도 첫 제목이 하단 시작 버튼 위에 보이게 한다. */
@media (orientation: landscape) and (max-height: 500px) {
  .detail-hero { max-height: 44dvh; }
  .detail-head { margin-top: -48px; }
  .detail-head h1 { font-size: var(--fs-28); line-height: var(--lh-28); letter-spacing: var(--ls-28); }
}

/* 작품별 도감 페이지(dex.html, 2026-10-20 H3-2, 결정 D-5): 본 것만 그림, 안 본 칸은 실루엣과 '?' */
.dx-body #content { padding-bottom: calc(var(--safe-b) + var(--sp-8)); }
.dx-body .floatbar { position: sticky; top: 0; z-index: 5; display: flex; padding: calc(var(--safe-t) + var(--sp-2)) var(--gutter) var(--sp-2); }
.dx-head { max-width: 1148px; margin: 0 var(--gutter); display: grid; gap: var(--sp-2); }
.dx-kicker { color: var(--text-3); font-size: var(--fs-13); }
.dx-head h1 { font-size: var(--fs-28); line-height: var(--lh-28); }
.dx-progress { display: flex; align-items: center; gap: var(--sp-2); }
.dx-progress .dexbar { flex: 1; }
.dx-note { color: var(--text-3); font-size: var(--fs-13); line-height: var(--lh-13); }
.dx-group .dx-note { margin: var(--sp-2) var(--gutter) 0; }
.dx-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: var(--sp-3); margin: 0 var(--gutter); padding: 0; list-style: none; }
.dx-cell { display: grid; gap: var(--sp-1); align-content: start; min-width: 0; }
.dx-pic { display: grid; place-items: center; aspect-ratio: 1; border-radius: var(--r-md); overflow: hidden; background: var(--surface-1); box-shadow: inset 0 0 0 1px var(--line-1); }
.dx-cell.tall .dx-pic { aspect-ratio: 3 / 4; }
.dx-cell.small .dx-pic { aspect-ratio: 1; }
.dx-pic img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 15%; }
.dx-q { color: var(--text-3); font-size: var(--fs-20); font-weight: var(--fw-semibold); }
.dx-cell.locked .dx-pic { background: var(--surface-2); }
.dx-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: var(--fs-13); line-height: var(--lh-13); }
.dx-cell.locked .dx-name { color: var(--text-3); }
.dx-text { display: -webkit-box; overflow: hidden; -webkit-line-clamp: 2; -webkit-box-orient: vertical; color: var(--text-3); font-size: var(--fs-12); line-height: var(--lh-12); }
.dx-person { margin: var(--sp-4) var(--gutter) 0; }
.dx-person > b { display: block; margin-bottom: var(--sp-1); font-size: var(--fs-15); }
.dx-gallery summary { min-height: 44px; display: flex; align-items: center; gap: var(--sp-2); cursor: pointer; color: var(--text-2); }
.dx-gallery summary small { color: var(--text-3); }
.dx-gallery h4 { margin: var(--sp-2) 0; font-size: var(--fs-13); color: var(--text-3); }
.dx-gallery .dx-grid { margin: 0; }
