/* drawer-tab.css — V14 「서랍」 탭. 씬탭과 같은 다크·금장 문법(변수 폴백 포함). */

#screen-drawer { background: var(--bg, #0d0b08); }
.dw-wrap { max-width: 480px; margin: 0 auto; padding: 18px 16px 90px; }

.dw-cap { font-family: 'Playfair Display', serif; font-style: italic; font-size: 11px;
  color: var(--brass, #C89B4A); letter-spacing: .22em; }
.dw-title { font-family: 'Noto Serif KR', serif; font-weight: 800; font-size: 24px;
  color: var(--tx, #E8DFD4); margin-top: 2px; }
.dw-sub { color: var(--sub, #A08B6F); font-size: 12.5px; margin-top: 4px; }

.dw-sum { display: flex; gap: 6px; margin-top: 12px; }
.dw-sum span { background: linear-gradient(165deg, #221a10, #16110b); border: 1px solid #3a2f1e;
  border-radius: 16px; padding: 5px 11px; font-size: 11.5px; color: var(--sub, #A08B6F); }
.dw-sum b { color: var(--tx, #E8DFD4); margin-right: 2px; }

.dw-sect { margin-top: 22px; }
.dw-sect-h { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 9px; }
.dw-sect-t { font-family: 'Noto Serif KR', serif; font-weight: 800; font-size: 15.5px; color: var(--tx, #E8DFD4); margin-bottom: 9px; }
.dw-sect-h .dw-sect-t { margin-bottom: 0; }
.dw-sect-t em { font-style: normal; color: #6B645C; font-weight: 400; font-size: 11px; margin-left: 7px; letter-spacing: .08em; }
.dw-sect-c { color: #6B645C; font-size: 12px; }

/* 최근 줄 */
.dw-strip { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.dw-strip::-webkit-scrollbar { display: none; }
.dw-strip-it { position: relative; flex: 0 0 84px; padding: 0; border: 0; background: none; }
.dw-strip-it img { width: 84px; height: 112px; object-fit: cover; border-radius: 10px;
  border: 1px solid #33291a; display: block; }
.dw-tp { position: absolute; top: 6px; left: 6px; font-size: 9.5px; font-weight: 700;
  background: rgba(10,8,4,.78); border-radius: 8px; padding: 2px 7px; color: var(--tx, #E8DFD4); }
/* V14.2 사진 칩 = 로즈 — 밸런스 게임에서 확정한 시각 언어(로즈=사진의 순간). 색이 먼저 가르고 글자가 확정한다 */
.dw-tp.photo { background: rgba(216, 112, 144, .92); color: #fff; }
.dw-nm { position: absolute; left: 6px; bottom: 6px; font-size: 10px; color: #fff;
  text-shadow: 0 1px 4px rgba(0,0,0,.85); }

/* 인물 필터 칩 */
.dw-chips { display: flex; gap: 6px; margin-bottom: 9px; overflow-x: auto; scrollbar-width: none; }
.dw-chips::-webkit-scrollbar { display: none; }
.dw-chip { border: 1px solid #3a2f1e; border-radius: 15px; padding: 4px 11px; font-size: 11px;
  color: var(--sub, #A08B6F); background: none; white-space: nowrap; }
.dw-chip.on { background: linear-gradient(135deg, #D8AB5A, #B3833A); color: #1c1408;
  font-weight: 700; border-color: transparent; }
/* V14.1 사진 없는 인물 = 흐린 칩. 선택되면 금테 윤곽으로 «깔때기 상태»를 표시 */
.dw-chip.off { opacity: .45; }
.dw-chip.off.on { opacity: 1; background: none; border-color: var(--brass, #C89B4A);
  color: var(--brass, #C89B4A); }

/* V14.1 깔때기 패널 — 빈 그리드 대신 대화 직행 */
.dw-funnel { background: linear-gradient(165deg, #221a10, #16110b); border: 1px solid #3a2f1e;
  border-radius: 16px; padding: 26px 18px; text-align: center; }
.dw-funnel-face { width: 76px; height: 76px; border-radius: 50%; object-fit: cover;
  border: 2px solid #4a3a1e; margin-bottom: 12px; }
.dw-funnel-1 { font-family: 'Noto Serif KR', serif; font-weight: 600; font-size: 15.5px; color: var(--tx, #E8DFD4); }
.dw-funnel-2 { color: var(--sub, #A08B6F); font-size: 12px; margin-top: 5px; line-height: 1.7; white-space: pre-line; }
.dw-funnel-btn { margin-top: 15px; border: none; border-radius: 12px; padding: 11px 26px;
  font-size: 13px; font-weight: 700; background: linear-gradient(135deg, #D8AB5A, #B3833A); color: #1c1408; }

/* 사진 그리드 */
.dw-pgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.dw-ph { position: relative; padding: 0; border: 0; background: none; }
.dw-ph img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 10px;
  border: 1px solid #33291a; display: block; }
.dw-ph .dw-nm { left: 7px; bottom: 6px; }
.dw-more { border: 1px dashed #4a3a1e; border-radius: 10px; color: #6B645C; font-size: 11.5px;
  aspect-ratio: 3 / 4; white-space: pre-line; line-height: 1.5; }

/* 씬 — V14.1 시리즈 스택 3열 그리드. 사진(3:4)과 같은 3열 리듬, 9:16 으로 매체 구분 */
.dw-sgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.dw-scard { position: relative; padding: 0; border: 0; background: none; }
.dw-scard img { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 10px;
  border: 1px solid #33291a; display: block; }
/* 스택 = 뒤에 겹친 장 — «여러 편이 들었다»를 모양이 말한다 */
.dw-scard.stack { margin-top: 6px; }
.dw-scard.stack img { box-shadow: 3px -3px 0 -1px #2c2315, 6px -6px 0 -2px #1e1810; }
.dw-scnt { position: absolute; top: 6px; right: 6px; font-size: 9.5px; font-weight: 800;
  background: linear-gradient(135deg, #D8AB5A, #B3833A); color: #1c1408; border-radius: 8px; padding: 2px 7px; }
.dw-sgold { position: absolute; top: 6px; right: 6px; font-size: 9px; font-weight: 800; letter-spacing: .06em;
  background: rgba(10,8,4,.78); color: #D8AB5A; border-radius: 8px; padding: 2px 6px; }
.dw-smore { aspect-ratio: 9 / 16; border: 1px dashed #4a3a1e; border-radius: 10px; color: #6B645C;
  font-size: 11.5px; white-space: pre-line; line-height: 1.6; margin-top: 6px; }
.dw-ep { position: absolute; top: 6px; right: 6px; font-size: 9px; background: rgba(10,8,4,.75);
  border-radius: 8px; padding: 2px 6px; color: var(--tx, #E8DFD4); }

.dw-deckbtn { margin-top: 9px; width: 100%; border: none; border-radius: 12px; padding: 12px 0;
  font-size: 13px; font-weight: 700; background: linear-gradient(135deg, #D8AB5A, #B3833A); color: #1c1408; }

/* 빈 상태 · 획득 경로 안내 */
.dw-empty { padding: 46px 0 10px; text-align: center; }
.dw-orn { color: var(--brass, #C89B4A); font-size: 18px; margin-bottom: 10px; }
.dw-e1 { font-family: 'Noto Serif KR', serif; font-weight: 600; font-size: 16.5px; color: var(--tx, #E8DFD4); }
.dw-e2 { color: var(--sub, #A08B6F); font-size: 12.5px; margin-top: 6px; margin-bottom: 18px; }

.dw-how { display: flex; gap: 12px; align-items: center; width: 100%; text-align: left;
  background: linear-gradient(165deg, #221a10, #16110b); border: 1px solid #3a2f1e;
  border-radius: 13px; padding: 12px 14px; margin-top: 9px; }
.dw-how-ic { font-size: 18px; }
.dw-how-bd { flex: 1; min-width: 0; }
.dw-how-t { font-size: 13px; font-weight: 700; color: var(--tx, #E8DFD4); }
.dw-how-p { font-size: 11.5px; color: var(--sub, #A08B6F); margin-top: 2px; }
.dw-how-cta { margin-left: auto; color: var(--brass, #C89B4A); font-size: 11.5px; white-space: nowrap; }

.dw-fail { padding: 60px 0; text-align: center; color: var(--sub, #A08B6F); font-size: 13px; line-height: 1.8; }

/* V15 게스트 보존 배너 — 자기 것 위에서 «보장되지 않는다»를 말한다 */
.dw-guest-keep {
  width: 100%; margin-top: 14px; padding: 11px 13px; text-align: left;
  border: 1px solid rgba(216, 112, 144, .35); border-radius: 12px;
  background: rgba(216, 112, 144, .08);
  font-size: 11.5px; line-height: 1.6; color: var(--sub, #A08B6F);
}
.dw-guest-keep b { color: var(--tx, #E8DFD4); }
