/* 백팩 — 할인정보 탭 v3
   원칙(docs/design-research.md): 무채색 바탕, Steam식 초록 할인 블록 하나, 모서리 2~4px, 장식 모션 없음.
   표는 놓인 영역 폭(container) 기준으로 열을 줄인다. */
.deals { container-type: inline-size; padding: 18px 22px 40px; }
.deals button { font: inherit; color: inherit; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- 머리 ---------- */
.dv-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; margin-bottom: 16px; }
.dv-h { margin: 0; font-size: 24px; font-weight: 700; letter-spacing: -.03em; }
.dv-meta { margin: 4px 0 0; font-size: 13px; color: var(--tx2); }
.dv-meta b { color: var(--tx); font-weight: 600; }
.dv-fresh { display: flex; flex-wrap: wrap; gap: 4px 12px; margin: 4px 0 0; font-size: 12px; color: var(--tx3); }
.dv-fresh span.plain::before { display: none; }
.dv-fresh span::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #7DBA5A; margin-right: 5px; vertical-align: 1px; }
.dv-fresh span.bad::before { background: var(--hot); }

/* ---------- 역대 최저가 대표 띠 ---------- */
.dv-spot { margin-bottom: 18px; }
.dv-sh { display: flex; align-items: baseline; gap: 10px; margin-bottom: 8px; }
.dv-sh h2 { margin: 0; font-size: 15px; font-weight: 700; white-space: nowrap; }
.dv-sh > span { font-size: 12px; color: var(--tx3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.dv-link { margin-left: auto; background: none; border: 0; padding: 0; color: var(--acc); font-size: 12.5px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.dv-link:hover { text-decoration: underline; }
.dv-spots { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.dv-sp { display: flex; flex-direction: column; padding: 0; border: 0; background: var(--bg1); border-radius: 4px; overflow: hidden; text-align: left; cursor: pointer; min-width: 0; }
.dv-sp:hover { background: var(--bg2); }
.dv-sp.is-sel { box-shadow: inset 0 0 0 2px var(--tx2); }
.dv-spi { position: relative; display: block; aspect-ratio: 616 / 353; background: var(--bg3); overflow: hidden; }
.dv-spb { display: flex; flex-direction: column; gap: 5px; padding: 8px 9px 9px; min-width: 0; }
.dv-spn { font-size: 13px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dv-spp { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-variant-numeric: tabular-nums; }
.dv-spp b { font-size: 13.5px; }
.dv-sps { display: inline-flex; align-items: center; gap: 4px; margin-left: auto; font-size: 11.5px; color: #BEEE11; font-weight: 600; }

/* ---------- 탭·도구 ---------- */
.dv-tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin-bottom: 12px; overflow-x: auto; scrollbar-width: none; scroll-margin-top: 8px; }
.dv-tabs::-webkit-scrollbar { display: none; }
.dv-tab { position: relative; display: inline-flex; align-items: baseline; gap: 6px; padding: 9px 12px 10px; background: none; border: 0; font-size: 14px; font-weight: 600; color: var(--tx2); white-space: nowrap; cursor: pointer; }
.dv-tab .n { font-size: 12px; font-weight: 500; color: var(--tx3); font-variant-numeric: tabular-nums; }
.dv-tab:hover { color: var(--tx); }
.dv-tab[aria-selected="true"] { color: var(--tx); }
.dv-tab[aria-selected="true"]::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: -1px; height: 2px; background: var(--tx); }
.dv-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 8px; }
.dv-q { display: flex; align-items: center; gap: 7px; height: 32px; padding: 0 10px; border-radius: 4px; background: var(--bg1); border: 1px solid var(--line2); width: 220px; }
.dv-q:focus-within { border-color: var(--acc); }
.dv-q svg { width: 15px; height: 15px; color: var(--tx3); fill: none; stroke: currentColor; stroke-width: 1.8; flex: none; }
.dv-q input { border: 0; outline: none; background: none; min-width: 0; flex: 1; font-size: 13.5px; color: var(--tx); }
.dv-seg { display: inline-flex; border: 1px solid var(--line2); border-radius: 4px; overflow: hidden; }
.dv-seg button { height: 30px; padding: 0 10px; background: var(--bg1); border: 0; border-left: 1px solid var(--line2); font-size: 12.5px; color: var(--tx2); cursor: pointer; white-space: nowrap; }
.dv-seg button:first-child { border-left: 0; }
.dv-seg button[aria-pressed="true"] { background: var(--bg4); color: var(--tx); font-weight: 600; }
.dv-seg svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; vertical-align: -3px; }
.dv-sel { height: 32px; padding: 0 26px 0 9px; border-radius: 4px; border: 1px solid var(--line2); background: var(--bg1) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23A2A8B3' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right 9px center; appearance: none; font-size: 12.5px; color: var(--tx); max-width: 180px; cursor: pointer; }
.dv-sel:focus { outline: 2px solid var(--acc); outline-offset: -1px; }
.dv-sel option { background: var(--bg2); color: var(--tx); }
.dv-sp-r { flex: 1; }
.dv-active { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 10px; }
.dv-active:empty { display: none; }
.dv-ac { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 8px 0 10px; border-radius: 3px; background: var(--bg3); border: 0; font-size: 12px; color: var(--tx); cursor: pointer; }
.dv-ac:hover { background: var(--bg4); }
.dv-ac span[aria-hidden] { color: var(--tx3); font-size: 14px; line-height: 1; }
.dv-active .dv-link { margin-left: 4px; }

/* ---------- 공통 조각 ---------- */
.dv-si { width: 16px; height: 16px; border-radius: 2px; flex: none; }
.dv-si-x { display: inline-block; background: var(--bg4); }
.dv-disc { display: inline-flex; align-items: center; height: 22px; padding: 0 5px; border-radius: 2px; background: #4C6B22; color: #BEEE11; font-weight: 700; font-size: 12.5px; font-variant-numeric: tabular-nums; flex: none; }
.dv-disc.lo { background: var(--bg4); color: var(--tx); }
.dv-pc { display: flex; flex-direction: column; line-height: 1.15; font-variant-numeric: tabular-nums; min-width: 0; }
.dv-pc b { font-size: 14px; font-weight: 700; white-space: nowrap; }
.dv-pc s { font-size: 12px; color: var(--tx3); text-decoration: none; white-space: nowrap; }
.dv-steam .dv-pc s { text-decoration: line-through; }
.dv-tag { display: inline-flex; align-items: center; height: 20px; padding: 0 5px; border-radius: 2px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.dv-tag.hl { background: #3B5418; color: #BEEE11; }
.dv-tag.near { background: rgba(217, 174, 74, .16); color: var(--warn); }
.dv-none { font-size: 12px; color: var(--tx3); }
.dv-m { display: inline-flex; align-items: center; flex: none; }
.dv-m.own { font-size: 12px; font-weight: 600; color: var(--tx2); background: rgba(255, 255, 255, .08); padding: 1px 5px; border-radius: 2px; }
.dv-m svg { width: 13px; height: 13px; fill: currentColor; stroke: none; }
.dv-m.wish { color: #6AA8DC; } .dv-m.int { color: #D98AB0; }
.dv-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.dv-ph { display: grid; place-items: center; padding: 4px; font-size: 10.5px; color: var(--tx3); text-align: center; background: var(--bg3); }

/* 가격 위치 막대: 역대 최저 ─ 지금 ─ 정가 */
.dv-pos { display: flex; flex-direction: column; gap: 3px; width: 100%; max-width: 130px; }
.dv-pos-bar { position: relative; height: 4px; border-radius: 2px; background: var(--bg4); }
.dv-pos-bar::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 12%; border-radius: 2px 0 0 2px; background: #4C6B22; }
.dv-pos-bar i { position: absolute; top: 50%; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: var(--tx); border: 2px solid var(--bg1); }
.dv-pos-lb { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; color: var(--tx3); font-variant-numeric: tabular-nums; }
.dv-pos.big { max-width: none; margin: 2px 0 12px; }
.dv-pos.big .dv-pos-bar { height: 6px; }
.dv-pos.big .dv-pos-bar i { width: 12px; height: 12px; margin: -6px 0 0 -6px; border-color: var(--bg0); }
.dv-pos.big .dv-pos-lb span:first-child::before { content: "역대 최저"; margin-right: 4px; }
.dv-pos.big .dv-pos-lb span:last-child::before { content: "정가"; margin-right: 4px; }
.dv-lowtx { display: flex; flex-direction: column; line-height: 1.2; font-variant-numeric: tabular-nums; }
.dv-lowtx b { font-size: 13px; } .dv-lowtx span { font-size: 12px; color: var(--tx3); }

/* ---------- 표 ---------- */
.dv-table { --thw: 184px; --nfs: 15px; background: var(--bg1); border-radius: 4px; }
.dv-table.d-compact { --thw: 120px; --nfs: 14px; }
.dv-table.d-large { --thw: 240px; --nfs: 16px; }
.dv-row { display: grid; grid-template-columns: var(--thw) minmax(160px, 1fr) 140px 176px 150px 92px 58px; align-items: center; gap: 0 12px; min-height: 48px; padding: 6px 12px 6px 6px; border-top: 1px solid var(--line); cursor: pointer; outline: none; }
.dv-row:hover { background: var(--bg2); }
.dv-row.is-sel { background: var(--bg3); box-shadow: inset 2px 0 0 var(--tx2); }
.dv-row:focus-visible { box-shadow: inset 0 0 0 2px var(--acc); }
.dv-hd { min-height: 34px; border-top: 0; cursor: default; position: sticky; top: 0; z-index: 2; background: var(--bg1); border-radius: 4px 4px 0 0; }
.dv-hd:hover { background: var(--bg1); }
.dv-hd button { display: inline-flex; align-items: baseline; gap: 4px; padding: 0; background: none; border: 0; font-size: 12px; font-weight: 600; color: var(--tx3); cursor: pointer; white-space: nowrap; }
.dv-hd button:hover, .dv-hd button.on { color: var(--tx); }
.dv-hd button.on::after { content: "▼"; font-size: 8px; }
.dv-hd i { font-style: normal; font-weight: 500; font-size: 11px; }
.dv-th { position: relative; width: var(--thw); aspect-ratio: 460 / 215; border-radius: 2px; background: var(--bg3); overflow: hidden; }
.dv-hd > :first-child { width: var(--thw); }
.dv-name { min-width: 0; }
.dv-n { display: flex; align-items: center; gap: 6px; min-width: 0; height: 22px; font-weight: 600; font-size: var(--nfs, 14px); line-height: 22px; }
.dv-t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* 마우스를 올리면 큰 미리보기 대신 이름 줄만 굵고 크게(줄 높이는 고정 → 행이 흔들리지 않음) */
@media (hover: hover) { .dv-row:hover .dv-n, .cv-row:hover .dv-n { font-size: calc(var(--nfs, 14px) + 1px); font-weight: 700; } }
.dv-en { font-size: 12px; line-height: 17px; color: var(--tx2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dv-sub { margin-top: 2px; font-size: 12px; color: var(--tx3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.d-compact .dv-sub { display: none; }
.dv-sale { color: var(--tx2); margin-right: 6px; }
.dv-steam, .dv-best { display: flex; align-items: center; gap: 8px; min-width: 0; }
.dv-store { display: inline-flex; align-items: center; gap: 6px; min-width: 0; flex: 1; font-size: 12.5px; color: var(--tx2); }
.dv-store span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* v11 판매처 분류: 키샵은 이름표(글자)로 구분하고 색은 차분한 보조색 하나만 */
#dealsView, #inspBody { --ks: #A79CC2; }
.dv-ks { flex: none; font-style: normal; font-size: 10.5px; font-weight: 600; color: var(--ks); border: 1px solid currentColor; border-radius: 2px; padding: 0 4px; line-height: 15px; }
.dv-store span.dv-ks, .dv-cl .dv-ks { overflow: visible; }
.dv-ksnote { margin: 8px 0 0; font-size: 12px; color: var(--tx2); }
.dv-kl { display: grid; gap: 4px; margin: 0 0 10px; font-size: 12.5px; }
.dv-kl div { display: grid; grid-template-columns: 64px minmax(0, 1fr); align-items: center; gap: 8px; }
.dv-kl dt { color: var(--tx3); font-size: 12px; }
.dv-kl div.ks dt { color: var(--ks); }
.dv-kl dd { margin: 0; display: flex; align-items: center; gap: 6px; min-width: 0; color: var(--tx2); }
.dv-kl dd b { margin-left: auto; color: var(--tx); font-variant-numeric: tabular-nums; }
.dv-st tr.is-ks td:first-child { color: var(--tx2); }
.dv-st td:first-child em.dv-ks { font-size: 10.5px; color: var(--ks); }
.dv-best .dv-pc { align-items: flex-end; flex: none; }
.dv-low { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; min-width: 0; }
.dv-end { display: flex; flex-direction: column; font-size: 12.5px; color: var(--tx2); white-space: nowrap; line-height: 1.25; }
.dv-end small { font-size: 12px; color: var(--tx3); }
.dv-end.hot { color: var(--hot); }
.dv-rv { display: flex; flex-direction: column; line-height: 1.2; font-variant-numeric: tabular-nums; }
.dv-rv b { font-size: 13px; }
.dv-rv b.good { color: #7DBA5A; } .dv-rv b.mid { color: var(--warn); } .dv-rv b.low { color: var(--hot); }
.dv-rv span { font-size: 12px; color: var(--tx3); }

/* ---------- 카드 ---------- */
.dv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(var(--cardw, 220px), 1fr)); gap: 12px; }
/* v24 카드 크기 슬라이더(카드 보기에서만) */
.dv-cw { display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 4px 0 8px; font-size: 12px; color: var(--tx2); white-space: nowrap; }
.dv-cw[hidden] { display: none; }
.dv-cw input { width: 96px; accent-color: var(--acc); }
@media (max-width: 720px) { .dv-cw { display: none; } }
.dv-card { display: flex; flex-direction: column; background: var(--bg1); border-radius: 4px; overflow: hidden; cursor: pointer; outline: none; min-width: 0; }
.dv-card:hover { background: var(--bg2); }
.dv-card.is-sel { box-shadow: inset 0 0 0 2px var(--tx2); }
.dv-card:focus-visible { box-shadow: inset 0 0 0 2px var(--acc); }
.dv-cimg { position: relative; aspect-ratio: 616 / 353; background: var(--bg3); overflow: hidden; }
.dv-strip { position: absolute; right: 0; bottom: 0; z-index: 1; display: inline-flex; align-items: center; gap: 6px; padding: 3px 7px 3px 3px; background: rgba(18, 20, 24, .92); font-variant-numeric: tabular-nums; }
.dv-strip b { font-size: 13.5px; }
.dv-cflag { position: absolute; left: 6px; top: 6px; z-index: 1; }
.dv-cb { display: flex; flex-direction: column; gap: 6px; padding: 8px 10px 10px; min-width: 0; }
.dv-cn { margin: 0; font-size: 14px; font-weight: 600; line-height: 20px; height: 40px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
@media (hover: hover) { .dv-card:hover .dv-cn { font-weight: 700; } }
.dv-cp { display: flex; align-items: center; gap: 7px; min-width: 0; font-variant-numeric: tabular-nums; }
.dv-cp b { font-size: 15px; white-space: nowrap; }
.dv-cp s { font-size: 12px; color: var(--tx3); white-space: nowrap; }
.dv-cm { display: inline-flex; gap: 5px; margin-left: auto; }
.dv-cl { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--tx2); font-variant-numeric: tabular-nums; min-width: 0; }
.dv-cl > span:not(.dv-ce) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dv-cl b { color: var(--tx); }
.dv-ce { margin-left: auto; white-space: nowrap; color: var(--tx3); }
.dv-ce.hot { color: var(--hot); }

/* ---------- 더 보기·빈 상태 ---------- */
.dv-more { display: flex; justify-content: center; padding: 14px 0 4px; }
.dv-morebtn { height: 34px; padding: 0 16px; border-radius: 4px; background: var(--bg3); border: 0; font-weight: 600; font-size: 13px; cursor: pointer; }
.dv-morebtn:hover { background: var(--bg4); }
.dv-morebtn span { color: var(--tx3); font-weight: 500; margin-left: 6px; }
.dv-count { font-size: 12px; color: var(--tx3); }
.dv-foot { margin: 14px 0 0; font-size: 12px; color: var(--tx3); max-width: 920px; line-height: 1.6; }
.dv-empty { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 36px; color: var(--tx2); background: var(--bg1); border-radius: 4px; }
.dv-empty .dv-link { margin: 0; }

/* ---------- 오른쪽 상세 ---------- */
.dv-ihero { margin: 0; aspect-ratio: 616 / 353; background: var(--bg3); border-radius: 4px; overflow: hidden; position: relative; }
.dv-iimg { width: 100%; height: 100%; object-fit: cover; display: block; }
.dv-in { margin: 12px 0 2px; font-size: 18px; font-weight: 700; letter-spacing: -.02em; }
.dv-isub { margin: 0; font-size: 12.5px; color: var(--tx2); }
.dv-imine { display: flex; gap: 6px; margin: 8px 0 0; }
.dv-verdict { display: flex; flex-direction: column; gap: 2px; margin-top: 12px; padding: 10px 12px; border-radius: 4px; background: var(--bg2); border-left: 3px solid var(--tx3); }
.dv-verdict b { font-size: 14px; }
.dv-verdict span { font-size: 12px; color: var(--tx2); }
.dv-verdict.good { border-left-color: #8DBF2E; background: rgba(76, 107, 34, .22); }
.dv-verdict.good b { color: #BEEE11; }
.dv-verdict.near { border-left-color: var(--warn); }
.dv-blk { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.dv-blk h3 { margin: 0 0 8px; font-size: 13px; font-weight: 700; display: flex; align-items: baseline; gap: 6px; }
.dv-cur { font-size: 12px; font-weight: 500; color: var(--tx3); }
.dv-kr { display: flex; align-items: center; gap: 8px; font-variant-numeric: tabular-nums; }
.dv-kr b { font-size: 22px; font-weight: 700; }
.dv-kr s { font-size: 12.5px; color: var(--tx3); }
.dv-small { margin: 6px 0 0; font-size: 12px; color: var(--tx2); }
.dv-src { color: var(--tx3); }
.dv-acts { display: flex; gap: 6px; margin-top: 10px; flex-wrap: wrap; }
.dv-btn { display: inline-flex; align-items: center; height: 32px; padding: 0 12px; border-radius: 4px; background: var(--bg3); border: 1px solid var(--line2); font-weight: 600; font-size: 13px; text-decoration: none; color: var(--tx); cursor: pointer; }
.dv-btn:hover { background: var(--bg4); }
.dv-btn.pri { background: #5C8A1E; border-color: #5C8A1E; color: #fff; }
.dv-btn.pri:hover { background: #6A9C24; }
.dv-st { width: 100%; border-collapse: collapse; font-size: 13px; font-variant-numeric: tabular-nums; }
.dv-st td { padding: 6px 4px; border-top: 1px solid var(--line); vertical-align: middle; }
.dv-st tr:first-child td { border-top: 0; }
.dv-st td:first-child { display: flex; align-items: center; gap: 7px; color: var(--tx2); min-height: 34px; }
.dv-st td:first-child em { font-style: normal; font-size: 12px; color: var(--tx3); }
.dv-st td:nth-child(3) { text-align: right; white-space: nowrap; }
.dv-st td:nth-child(3) s { display: block; font-size: 12px; color: var(--tx3); }
.dv-st td:last-child { text-align: right; width: 36px; }
.dv-st a { color: var(--acc); font-size: 12px; text-decoration: none; }
.dv-st a:hover { text-decoration: underline; }
.dv-st tr.is-best td { background: rgba(76, 107, 34, .16); }
.dv-st tr.is-best td:first-child { color: var(--tx); font-weight: 600; }
.dv-oh { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.dv-oh > div { display: flex; flex-direction: column; gap: 1px; background: var(--bg2); border-radius: 4px; padding: 8px 10px; min-width: 0; }
.dv-oh span { font-size: 12px; color: var(--tx3); }
.dv-oh b { font-size: 16px; font-variant-numeric: tabular-nums; }
.dv-oh small { font-size: 12px; color: var(--tx2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dv-spark { display: block; width: 100%; height: 70px; margin-top: 8px; background: var(--bg2); border-radius: 4px; }
.dv-spark path { fill: none; stroke: #8DBF2E; stroke-width: 2; vector-effect: non-scaling-stroke; }

/* ---------- 영역 폭 기준 반응형 ----------
   좁아지면 평가 → 종료까지 → 역대 최저 대비 순서로 뺀다(판단에 중요한 열을 오래 남김). */
@container (max-width: 1060px) {
  .dv-spots { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .dv-spots > :nth-child(n+5) { display: none; }
  .dv-row { grid-template-columns: var(--thw) minmax(150px, 1fr) 134px 168px 136px 84px; }
  .dv-row > .dv-rv, .dv-hd > :nth-child(7) { display: none; }
}
@container (max-width: 900px) {
  .dv-row { grid-template-columns: var(--thw) minmax(140px, 1fr) 128px 158px 124px; gap: 0 10px; }
  .dv-row > .dv-end, .dv-hd > :nth-child(6) { display: none; }
  .dv-sp-r { display: none; }
  .dv-q { width: 180px; }
}
@container (max-width: 760px) {
  .dv-row { grid-template-columns: var(--thw) minmax(0, 1fr) 126px 158px; }
  .dv-table.d-large { --thw: 200px; }
  .dv-row > .dv-low, .dv-hd > :nth-child(5) { display: none; }
  .dv-spots { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .dv-spots > :nth-child(n+4) { display: none; }
}
@container (max-width: 640px) {
  .dv-cw { display: none; }   /* v24: 좁으면 카드는 늘 2열 — 크기 슬라이더 숨김 */
  .dv-spots { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dv-spots > :nth-child(n+3) { display: none; }
  .dv-sh > span { display: none; }
  .dv-q { width: 100%; }
  .dv-sel { flex: 1 1 40%; max-width: none; }
  /* 좁은 화면(390): 썸네일 132px(촘촘 96 · 크게 160) 왼쪽, 오른쪽에 이름 두 줄 → 영어 원제 → Steam 가격 → 다른 스토어 */
  .dv-table { --thw: 132px; } .dv-table.d-compact { --thw: 96px; } .dv-table.d-large { --thw: 160px; }
  .dv-row { grid-template-columns: var(--thw) minmax(0, 1fr); grid-template-rows: auto; gap: 3px 10px; padding: 8px 10px 8px 8px; align-items: start; }
  .dv-row > .dv-th { grid-row: 1 / 5; }
  .dv-row > .dv-name { grid-column: 2; }
  .dv-row > .dv-steam { grid-column: 2; }
  .dv-row > .dv-best { grid-column: 2; }
  .dv-row .dv-n { height: auto; line-height: 20px; }
  .dv-row .dv-t { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
  .dv-row .dv-sub { display: none; }
  .dv-row .dv-pc { flex-direction: row; align-items: baseline; gap: 6px; }
  .dv-row .dv-best .dv-pc { align-items: baseline; }
  .dv-row .dv-store { flex: none; }
  .dv-hd { display: none; }
  .dv-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .dv-vl { display: none; }
}
@media (max-width: 720px) { .deals { padding: 14px 12px 32px; } }

/* 지역 전환 · 받은 시각 */
.dv-hrow { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.dv-region button { height: 28px; padding: 0 10px; font-weight: 600; }
.dv-region button:disabled { opacity: .4; cursor: not-allowed; }
.dv-fresh b { font-weight: 600; color: var(--tx2); }

/* ===== 가로 선반 (할인정보 위쪽 · 내 할인 · 전체 게임 신작) — 2026-10-19 개선 =====
   근거: 모션 프롬프트 사전 layoutfx
   - ly-cqcard: 카드 수를 화면이 아니라 선반 폭(컨테이너 쿼리)으로 정한다 — 5 / 4 / 3 / 2 / 1.5장
   - ly-slidesview: 다음 카드가 살짝 보이는 피크(--peek) + 머리글의 '1–5 / 12' 범위 + 한 화면씩 넘기는 버튼(shelf.js)
   - ly-subgrid: 카드들이 선반의 4줄 트랙(이미지·이름·가격·사유)을 같이 써서, 이름이 한 줄이든 두 줄이든 가격 줄이 가로로 맞는다
   - ly-cls: 이미지 칸은 aspect-ratio 로 미리 잡아 늦게 와도 밀리지 않음
   스크롤은 브라우저 기본(scroll-snap, 관성)에 맡기고 휠을 가로채지 않는다. 스크롤바는 숨기고 버튼·범위·키보드로 대신한다. */
.shelves { display: flex; flex-direction: column; gap: 22px; margin-bottom: 22px; }
.shelf { container: shelf / inline-size; --g: 10px; --peek: 32px; --n: 5; min-width: 0; }
.sh-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; min-width: 0; min-height: 28px; }
.sh-head h2 { margin: 0; font-size: 16px; font-weight: 700; white-space: nowrap; }
.sh-cnt { font-size: 12px; font-weight: 500; color: var(--tx3); font-variant-numeric: tabular-nums; }
.sh-note { font-size: 12px; color: var(--tx2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.sh-nav { margin-left: auto; display: inline-flex; align-items: center; gap: 4px; flex: none; }
.sh-nav[hidden] { display: none; }
.sh-nav + .dv-link { margin-left: 10px; }
.sh-pos { min-width: 64px; margin-right: 4px; text-align: right; font-size: 12px; color: var(--tx2); font-variant-numeric: tabular-nums; white-space: nowrap; }
.sh-btn { width: 28px; height: 28px; display: inline-flex; align-items: center; justify-content: center; padding: 0; border: 1px solid var(--line2); border-radius: 4px; background: var(--bg1); color: var(--tx); cursor: pointer; }
.sh-btn svg { width: 16px; height: 16px; stroke-width: 2; }
.sh-btn:hover:not(:disabled) { background: var(--bg3); border-color: var(--line3); }
.sh-btn:disabled { color: var(--tx3); cursor: default; opacity: .5; }
.sh-btn:focus-visible { outline: 2px solid var(--acc); outline-offset: 1px; }
.sh-row { display: grid; grid-auto-flow: column; grid-template-rows: auto auto auto auto; column-gap: var(--g); row-gap: 0;
  grid-auto-columns: calc((100cqi - (var(--n) - 1) * var(--g) - var(--peek)) / var(--n));
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: 0;
  scrollbar-width: none; padding-bottom: 2px; }
.sh-row::-webkit-scrollbar { display: none; }
.sh-row:focus-visible { outline: 2px solid var(--acc); outline-offset: 2px; }
@media (prefers-reduced-motion: no-preference) { .sh-row { scroll-behavior: smooth; } }
.sh-card { display: grid; grid-row: span 4; grid-template-rows: subgrid; row-gap: 6px; align-content: start; padding: 0 0 10px; border: 0; border-radius: 4px; background: var(--bg1); color: inherit; text-align: left; text-decoration: none; cursor: pointer; overflow: hidden; min-width: 0; scroll-snap-align: start; font: inherit; }
.sh-card:hover { background: var(--bg2); }
.sh-card:focus-visible { outline: 2px solid var(--acc); outline-offset: -2px; }
.sh-card.is-sel { box-shadow: inset 0 0 0 2px var(--tx2); }
@media (hover: hover) { .sh-card:hover .sh-n { text-decoration: underline; text-underline-offset: 3px; } }
.sh-im { position: relative; display: block; aspect-ratio: 616 / 353; background: var(--bg3); overflow: hidden; }
.sh-n { margin: 2px 10px 0; font-size: 14px; font-weight: 600; line-height: 20px; align-self: start; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sh-p { display: flex; align-items: center; gap: 6px; padding: 0 10px; font-variant-numeric: tabular-nums; min-width: 0; align-self: end; }
.sh-p b { font-size: 15px; white-space: nowrap; }
.sh-p s { font-size: 12px; color: var(--tx3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sh-r { padding: 0 10px; font-size: 12px; color: var(--tx2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }
.sh-r .hot { color: var(--hot); }
/* 선반 폭에 따른 카드 수 (화면이 아니라 선반 자신의 폭) */
@container shelf (max-width: 1180px) { .sh-row { --n: 4; } }
@container shelf (max-width: 900px)  { .sh-row { --n: 3; } }
@container shelf (max-width: 640px) {
  .sh-row { --n: 2; --g: 8px; --peek: 28px; }
  .sh-note { display: none; }
  .sh-head h2 { font-size: 15px; }
  .sh-p b { font-size: 14px; }
}
@container shelf (max-width: 440px) {
  .sh-row { --n: 1.5; --peek: 0px; }
  .sh-pos { min-width: 0; }
}
/* 터치 화면: 손가락으로 넘기니 버튼은 숨기고 범위만 */
@media (hover: none) and (pointer: coarse) { .sh-btn { display: none; } }
  .sh-note { display: none; }
  .sh-head h2 { font-size: 15px; }
  .sh-p b { font-size: 14px; }
}

/* 내 할인(feed-view.js): 머리·동기화 중 안내 */
.fv-head { margin-bottom: 18px; }
.fv-sync { margin: 8px 0 0; padding: 8px 10px; border-radius: 4px; background: var(--bg2); border-left: 3px solid var(--acc); font-size: 13px; color: var(--tx); }
.fv-load { padding: 24px 0; }
.fv .cv-note { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 18px; background: var(--bg1); border-radius: 4px; border-left: 3px solid var(--tx3); font-size: 13px; color: var(--tx2); }
.fv .cv-note b { color: var(--tx); font-size: 14px; }
.fv .cv-note .dv-btn { margin-top: 4px; }

/* ===== v16 (2026-10-19): 할인정보 하위 메뉴(#/deals/<종류>) — 머리 '할인정보 › 새 할인', 설명 한 줄, 정렬 고정(머리 글자만) ===== */
.dv-h .dv-up { color: var(--tx2); font-weight: 600; text-decoration: none; }
.dv-h .dv-up:hover { color: var(--tx); text-decoration: underline; }
.dv-hsep { margin: 0 8px; color: var(--tx3); font-weight: 500; }
.dv-hd .dv-hl { font-size: 12px; font-weight: 600; color: var(--tx3); white-space: nowrap; }
.dv-hd .dv-hl i { font-style: normal; font-weight: 500; font-size: 11px; }
.dv-empty > span { display: block; margin-top: 4px; font-size: 13px; color: var(--tx2); }
.sh-head a.dv-link { text-decoration: none; }
.sh-head a.dv-link:hover { text-decoration: underline; }
@media (max-width: 720px) { .dv-head.is-sub .dv-h { font-size: 20px; } }

/* ---------- v36 상세 필터(장르 포함·제외·평가) — 툴바 단추 + 펼침 패널 ---------- */
.dv-fbtn { display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 10px; border-radius: 4px; border: 1px solid var(--line2); background: var(--bg1); color: var(--tx); font-size: 12.5px; font-weight: 600; cursor: pointer; }
.dv-fbtn svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; color: var(--tx2); }
.dv-fbtn:hover { border-color: var(--line3); }
.dv-fbtn.on { border-color: color-mix(in srgb, var(--acc) 55%, transparent); background: color-mix(in srgb, var(--acc) 10%, var(--bg1)); }
.dv-fbtn.on svg { color: var(--acc); fill: color-mix(in srgb, var(--acc) 30%, transparent); }
.dv-fn { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--acc); color: #071018; font-size: 11px; line-height: 18px; text-align: center; }
.dv-fcar { width: 7px; height: 7px; margin-left: 1px; border-right: 1.6px solid var(--tx3); border-bottom: 1.6px solid var(--tx3); transform: translateY(-2px) rotate(45deg); transition: transform .2s; }
.dv-fbtn[aria-expanded="true"] .dv-fcar { transform: translateY(1px) rotate(-135deg); }
.dv-fp { margin: 0 0 12px; padding: 16px 18px; border: 1px solid var(--line2); border-radius: 6px; background: var(--bg1); }
.dv-fp[hidden] { display: none; }
.dv-fph { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 12px; }
.dv-fph h2 { margin: 0 0 3px; font-size: 14px; font-weight: 700; }
.dv-fph p { margin: 0; font-size: 12px; color: var(--tx2); }
.dv-fpr { display: flex; align-items: center; gap: 12px; flex: none; }
.dv-fres { font-size: 12.5px; color: var(--tx2); font-variant-numeric: tabular-nums; }
.dv-fsel { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; padding: 10px 12px; border-radius: 4px; background: var(--bg2); }
.dv-fgrp { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.dv-fgrp > b { font-size: 12px; margin-right: 4px; }
.dv-fgrp > b.inc { color: var(--ok); } .dv-fgrp > b.exc { color: var(--hot); }
.dv-fmode { margin-left: 6px; }
.dv-fmode button { height: 24px; font-size: 11.5px; }
.dv-fc { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 8px 0 9px; border-radius: 13px; border: 1px solid; font-size: 12px; cursor: pointer; background: none; }
.dv-fc.inc { color: var(--ok); border-color: color-mix(in srgb, var(--ok) 45%, transparent); background: var(--ok-d); }
.dv-fc.exc { color: var(--hot); border-color: color-mix(in srgb, var(--hot) 45%, transparent); background: var(--hot-d); text-decoration: line-through; text-decoration-thickness: 1px; }
.dv-fc span[aria-hidden] { font-size: 14px; line-height: 1; opacity: .7; text-decoration: none; }
.dv-fc:hover span[aria-hidden] { opacity: 1; }
.dv-fbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.dv-fq { width: 260px; }
.dv-flg { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--tx3); }
.dv-flg i { width: 10px; height: 10px; border-radius: 50%; margin-left: 6px; }
.dv-flg i.inc { background: var(--ok); } .dv-flg i.exc { background: var(--hot); }
.dv-ftags { display: flex; flex-wrap: wrap; gap: 6px; max-height: 260px; overflow-y: auto; padding: 2px; }
.dv-ft { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px 0 8px; border-radius: 14px; border: 1px solid var(--line2); background: var(--bg2); color: var(--tx); font-size: 12.5px; cursor: pointer; transition: border-color .15s, background .15s, color .15s; }
.dv-ft i { width: 12px; height: 12px; border-radius: 50%; border: 1.5px solid var(--line3); flex: none; position: relative; }
.dv-ft small { color: var(--tx3); font-size: 11px; }
.dv-ft:hover { border-color: var(--line3); background: var(--bg3); }
.dv-ft:focus-visible { outline: 2px solid var(--acc); outline-offset: 1px; }
.dv-ft.inc { border-color: color-mix(in srgb, var(--ok) 55%, transparent); background: var(--ok-d); color: var(--ok); }
.dv-ft.inc i { border-color: var(--ok); background: var(--ok); }
.dv-ft.inc i::after { content: ""; position: absolute; left: 3.5px; top: 1px; width: 3px; height: 6px; border: solid #04140C; border-width: 0 1.6px 1.6px 0; transform: rotate(45deg); }
.dv-ft.exc { border-color: color-mix(in srgb, var(--hot) 55%, transparent); background: var(--hot-d); color: var(--hot); }
.dv-ft.exc span { text-decoration: line-through; }
.dv-ft.exc i { border-color: var(--hot); background: var(--hot); }
.dv-ft.exc i::after { content: ""; position: absolute; left: 2px; right: 2px; top: 4.2px; height: 1.6px; background: #1A0503; }
.dv-fall { align-self: center; margin-left: 4px; }
.dv-fmore { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.dv-fmore > div { display: flex; align-items: center; gap: 10px; }
.dv-fmore > div > span { font-size: 12px; color: var(--tx2); }
.dv-fnote { margin: 10px 0 0; font-size: 11.5px; color: var(--tx3); }
@media (max-width: 720px) {
  .dv-fp { padding: 12px; }
  .dv-fph { flex-direction: column; gap: 8px; }
  .dv-fq { width: 100%; }
  .dv-ftags { max-height: 220px; }
}
/* v36.2 활성 칩: 상세 필터 '이것만'(초록)·'빼기'(빨강) */
.dv-ac.inc { color: var(--ok); background: var(--ok-d); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ok) 40%, transparent); }
.dv-ac.exc { color: var(--hot); background: var(--hot-d); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--hot) 40%, transparent); }
.dv-ac.inc:hover, .dv-ac.exc:hover { filter: brightness(1.15); }

/* v62 다른 스토어 '+N곳' — 올리거나(초점) 누르면 싼 순 전체 목록 */
.dv-best, .dv-cl { position: relative; }
.dv-more { position: relative; flex: none; display: inline-flex; align-items: center; padding: 0 6px; border-radius: 999px; border: 1px solid var(--line2);
  font-size: 11px; font-weight: 700; line-height: 18px; color: var(--tx2); background: var(--bg2); cursor: pointer; font-variant-numeric: tabular-nums; }
.dv-more:hover, .dv-more:focus-visible, .dv-more.open { color: var(--acc); border-color: var(--acc); outline: none; }
.dv-mlist { display: none; position: absolute; z-index: 40; top: calc(100% + 6px); right: -8px; width: 260px; max-height: 320px; overflow: auto; padding: 8px 10px;
  border-radius: 10px; background: var(--bg3); border: 1px solid var(--line2); box-shadow: 0 10px 30px rgba(0, 0, 0, .35); cursor: default; text-align: left; }
.dv-more:hover .dv-mlist, .dv-more:focus .dv-mlist, .dv-more:focus-within .dv-mlist, .dv-more.open .dv-mlist { display: block; }
.dv-mh { display: block; margin: 0 0 6px; font-size: 11px; color: var(--tx3); font-weight: 700; }
.dv-mlist ol { list-style: none; margin: 0; padding: 0; }
.dv-mlist li { display: flex; align-items: center; gap: 6px; padding: 5px 0; border-top: 1px solid var(--line); font-size: 12px; color: var(--tx2); font-weight: 400; }
.dv-mlist li:first-child { border-top: 0; }
.dv-mlist li.top b { color: var(--ok); }
.dv-mn { display: inline-flex; align-items: center; gap: 6px; flex: 1; min-width: 0; }
.dv-mn > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dv-mlist em { font-style: normal; font-size: 11px; color: var(--acc); }
.dv-mlist b { color: var(--tx); font-variant-numeric: tabular-nums; white-space: nowrap; }
.dv-pl { display: inline-flex; align-items: center; gap: 5px; }
.dv-pl .dv-more { line-height: 15px; font-size: 10.5px; padding: 0 5px; }
