/* 백팩 시안 01 — 백팩 : 다크 커맨드센터 */
:root {
  --bg0: #0A0C10; --bg1: #0D1015; --bg2: #11151C; --bg3: #161B24; --bg4: #1C2230;
  --line: rgba(255, 255, 255, .07); --line2: rgba(255, 255, 255, .12); --line3: rgba(255, 255, 255, .18);
  --tx: #E6E9EF; --tx2: #8B93A5; --tx3: #5D6576;
  --acc: #4FE3FF; --acc-d: rgba(79, 227, 255, .12); --acc-dd: rgba(79, 227, 255, .22);
  --ok: #3DDC97; --ok-d: rgba(61, 220, 151, .12);
  --hot: #FF6B5A; --hot-d: rgba(255, 107, 90, .14);
  --steam: #66C0F4; --warn: #FFC857; --int: #FF7AB6;
  --mono: "JetBrains Mono", "Geist Mono", "Pretendard Variable", Pretendard, ui-monospace, SFMono-Regular, Consolas, monospace;
  --sans: "Pretendard Variable", Pretendard, -apple-system, "Segoe UI", system-ui, sans-serif;
  --railw: 208px; --inspw: clamp(420px, 32vw, 560px); --toph: 48px; --stath: 24px;   /* v22: --inspw = 서랍 폭(본문 열이 아님) */
  --cols: 72px minmax(168px, 1fr) 124px 108px 128px 86px 56px 72px;   /* v23: 마지막 칸 = 보유 체크 + 하트 */
  --ease: cubic-bezier(.16, 1, .3, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  color-scheme: dark;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; height: 100%; background: var(--bg0); color: var(--tx); }
body { font: 13.5px/1.45 var(--sans); -webkit-font-smoothing: antialiased; overflow: hidden; letter-spacing: -.005em; }
.num, .mono, kbd { font-family: var(--mono); font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
button, input, select { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; }
svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
:focus-visible { outline: 2px solid var(--acc); outline-offset: 2px; border-radius: 4px; }
kbd { display: inline-block; padding: 0 5px; border: 1px solid var(--line2); border-bottom-width: 2px; border-radius: 4px; font-size: 10.5px; line-height: 16px; color: var(--tx2); background: var(--bg2); }
s { color: var(--tx3); text-decoration-thickness: 1px; }
.muted { color: var(--tx2); }
.pad { padding: 16px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.only-m { display: none !important; }
.zp-demo { color: var(--warn); opacity: .85; font-family: var(--mono); }
.src-tag { font: 500 10.5px/1.4 var(--mono); color: var(--tx3); letter-spacing: 0; white-space: nowrap; }
.ok-t { color: var(--ok); display: inline-flex; align-items: center; gap: 3px; font-weight: 600; }
.ok-t svg { width: 13px; height: 13px; stroke-width: 2.4; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .09); border-radius: 4px; border: 3px solid transparent; background-clip: content-box; }
::-webkit-scrollbar-thumb:hover { background-color: rgba(255, 255, 255, .18); }
::-webkit-scrollbar-track { background: transparent; }
* { scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .12) transparent; }

/* ---------- 앱 셸 ---------- */
.app {
  display: grid; height: 100vh; height: 100dvh;
  /* v22(사용자 요청 2026-10-20): '선택한 게임' 미리보기는 모든 폭에서 서랍 — 본문 그리드에 미리보기 열이 없어 목록이 전체 폭을 쓴다 */
  grid-template-columns: var(--railw) minmax(0, 1fr);
  grid-template-rows: var(--toph) minmax(0, 1fr) var(--stath);
  grid-template-areas: "top top" "rail main" "stat stat";
}
.top { grid-area: top; }
.rail { grid-area: rail; }
.main { grid-area: main; }
.status { grid-area: stat; }

/* 공통 버튼 */
.icon-btn { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 4px; color: var(--tx2); transition: background .15s, color .15s; }
.icon-btn:hover { background: var(--bg3); color: var(--tx); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 34px; padding: 0 12px; border-radius: 4px; font-weight: 600; font-size: 13px; border: 1px solid var(--line2); background: var(--bg3); text-decoration: none; transition: background .15s, border-color .15s, color .15s, transform .15s; white-space: nowrap; }
.btn:hover { border-color: var(--line3); background: var(--bg4); }
.btn:active { transform: scale(.97); }
.btn.acc { background: var(--acc); border-color: var(--acc); color: #04141A; }
.btn.acc:hover { filter: brightness(1.08); }
.btn.ghost { background: transparent; }
.btn.sm { height: 28px; padding: 0 10px; font-size: 12px; }
.btn svg { width: 15px; height: 15px; }
.steam-ic { color: var(--steam); }

/* ---------- 1. 상단 바 ---------- */
.top {
  display: flex; align-items: center; gap: 14px; padding: 0 14px 0 16px;
  background: var(--bg1); border-bottom: 1px solid var(--line); position: relative; z-index: 30;
}
/* v34(2026-10-20 사용자: 게임 서랍이 열린 채 내 정보 메뉴를 열면 서랍 뒤에 숨는다) — 머리 줄의 펼침 메뉴가 열려 있는 동안만 서랍(50)·가림막 위로 */
.top:has([aria-expanded="true"]) { z-index: 70; }
.brand { display: flex; align-items: center; gap: 9px; text-decoration: none; flex: none; min-width: calc(var(--railw) - 30px); white-space: nowrap; }
.brand-name { white-space: nowrap; flex: none; font-weight: 800; font-size: 16px; letter-spacing: -.03em; }
.brand-tag { font: 500 10px/1 var(--mono); color: var(--tx3); border: 1px solid var(--line); padding: 3px 5px; border-radius: 4px; white-space: nowrap; }
.radar { position: relative; width: 22px; height: 22px; border-radius: 50%; flex: none; overflow: hidden; border: 1px solid rgba(79, 227, 255, .55);
  background: radial-gradient(circle, transparent 0 28%, rgba(79, 227, 255, .3) 29% 31%, transparent 32% 61%, rgba(79, 227, 255, .3) 62% 64%, transparent 65%), #08131A; }
.radar::before { content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: conic-gradient(from 0deg, rgba(79, 227, 255, 0) 0 250deg, rgba(79, 227, 255, .65) 360deg); animation: r-sweep 2.4s linear infinite; }
.radar::after { content: ""; position: absolute; left: 50%; top: 0; bottom: 50%; width: 1px; background: rgba(79, 227, 255, .25); }
.radar i { position: absolute; left: 64%; top: 28%; width: 3px; height: 3px; border-radius: 50%; background: #B8FF5C; box-shadow: 0 0 6px #B8FF5C; animation: r-blip 2.4s linear infinite; }
@keyframes r-sweep { to { transform: rotate(1turn); } }
@keyframes r-blip { 0%, 8% { opacity: 0; } 12% { opacity: 1; } 60%, 100% { opacity: 0; } }

/* 검색창 뒤 묶음(보유 게임 제외·알림·프로필)은 오른쪽 끝으로(2026-10-20 사용자). 휴대폰 폭은 아래 720px 규칙이 덮어쓴다 */
.search-trig { flex: 1 1 auto; max-width: 440px; margin-right: auto; display: flex; align-items: center; gap: 9px; height: 32px; padding: 0 8px 0 11px; border-radius: 4px; border: 1px solid var(--line2); background: var(--bg0); color: var(--tx2); text-align: left; transition: border-color .15s, background .15s; }
.search-trig:hover { border-color: var(--line3); background: var(--bg2); color: var(--tx); }
.search-trig .st-label { flex: 1; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }

/* v22: 상단 동기화 상자(.sync) 규칙은 뺐다 — 내 설정 계정 절(config-view.css .cf-sync-st)로 옮김 */
@keyframes spin { to { transform: rotate(1turn); } }
@keyframes pulse { 50% { opacity: .35; } }
@keyframes sweepbg { from { background-position: 100% 0; } to { background-position: -100% 0; } }

.switch { display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 10px 0 8px; border-radius: 4px; color: var(--tx2); font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.switch:hover { background: var(--bg3); color: var(--tx); }
.sw-track { position: relative; width: 30px; height: 18px; border-radius: 99px; background: var(--bg4); border: 1px solid var(--line2); transition: background .2s, border-color .2s; }
.sw-knob { position: absolute; top: 2px; left: 2px; width: 12px; height: 12px; border-radius: 50%; background: var(--tx2); transition: transform .32s var(--spring), background .2s; }
.switch[aria-checked="true"] { color: var(--tx); }
.switch[aria-checked="true"] .sw-track { background: var(--acc-dd); border-color: rgba(79, 227, 255, .6); }
.switch[aria-checked="true"] .sw-knob { transform: translateX(12px); background: var(--acc); }

/* ---------- 2. 왼쪽 레일 ---------- */
.rail { display: flex; flex-direction: column; justify-content: space-between; gap: 16px; padding: 12px 10px; background: var(--bg1); border-right: 1px solid var(--line); overflow-y: auto; }
.rail-nav { position: relative; display: flex; flex-direction: column; gap: 2px; }
.rail-ind { position: absolute; left: 0; top: 0; border-radius: 4px; background: var(--bg3); box-shadow: inset 2px 0 0 var(--acc), inset 0 0 0 1px var(--line); opacity: 0; transition: transform .42s var(--ease), height .42s var(--ease), width .42s var(--ease), opacity .2s; pointer-events: none; }
.rail-ind.is-on { opacity: 1; }
.rail-item { position: relative; display: flex; align-items: center; gap: 10px; height: 36px; padding: 0 10px 0 12px; border-radius: 4px; color: var(--tx2); text-align: left; transition: color .15s; }
.rail-item:hover { color: var(--tx); background: rgba(255, 255, 255, .025); }
.rail-item.is-on { color: var(--tx); font-weight: 600; }
.rail-item.is-on svg { color: var(--acc); }
.ri-label { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ri-cnt { display: inline-block; font-size: 11.5px; color: var(--tx3); font-weight: 500; }
.rail-item.is-on .ri-cnt { color: var(--acc); }

.rail-card { border: 1px solid var(--line); border-radius: 4px; padding: 12px; background: linear-gradient(180deg, var(--bg2), var(--bg1)); font-size: 12px; }
.rc-title { margin: 0 0 8px; font: 600 10.5px/1 var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--tx3); }
.rc-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.rc-list li { display: flex; align-items: center; gap: 7px; color: var(--tx2); }
.rc-list li > span:nth-child(2) { flex: 1; }
.rc-list b { color: var(--tx); font-weight: 600; font-size: 11.5px; }
.dot { width: 6px; height: 6px; border-radius: 50%; flex: none; }
.dot.ok { background: var(--ok); }
.dot.warn { background: var(--warn); }
.dot.demo { background: transparent; border: 1px dashed var(--warn); }
.rc-note { margin: 10px 0 8px; color: var(--tx3); font-size: 11px; line-height: 1.5; }
.rc-reset { font-size: 11px; color: var(--tx2); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line3); }
.rc-reset:hover { color: var(--tx); }

/* ---------- 메인 ---------- */
.main { overflow-y: auto; overflow-x: hidden; background: var(--bg0); outline: none; scroll-padding-top: 12px; }

/* ---------- 3. 히어로 (wf-pixelgrid) ---------- */
.hero { position: relative; isolation: isolate; overflow: hidden; border-bottom: 1px solid var(--line);
  background: var(--bg0); }
.hero-grid { position: absolute; left: 0; top: 0; display: block; pointer-events: none; }
.hero-in { position: relative; padding: 20px 22px 18px; }
.eyebrow { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; font: 500 11px/1 var(--mono); color: var(--tx2); letter-spacing: 0; }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 rgba(61, 220, 151, .6); animation: live 2s ease-out infinite; }
@keyframes live { 0% { box-shadow: 0 0 0 0 rgba(61, 220, 151, .55); } 70%, 100% { box-shadow: 0 0 0 8px rgba(61, 220, 151, 0); } }
.hl { margin: 0 0 16px; font-size: clamp(20px, 2.1vw, 28px); line-height: 1.25; font-weight: 700; letter-spacing: -.035em; color: #fff; max-width: 900px; }
.hl b { font-weight: 700; letter-spacing: -.04em; }
.hl .hl-acc { color: var(--acc); }
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; border: 1px solid var(--line); border-radius: 4px; background: rgba(13, 16, 21, .72); backdrop-filter: blur(6px); }
.kpi { padding: 10px 14px 11px; border-left: 1px solid var(--line); min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.kpi:first-child { border-left: 0; }
.kpi dt { font-size: 11.5px; color: var(--tx2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpi dd { margin: 0; font-size: 22px; font-weight: 600; letter-spacing: -.04em; color: var(--tx); white-space: nowrap; }
.kpi dd small { font-size: 13px; color: var(--tx3); font-weight: 500; }
.kpi .kh { font-size: 10.5px; color: var(--tx3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpi:first-child dd { color: var(--acc); }
.kpi-hot dd { color: var(--hot); }
.kpi-ok dd #kReached { color: var(--ok); }

/* ---------- 4. 곧 끝나는 할인 (ec-flashsale) ---------- */
.ending { border-bottom: 1px solid var(--line); padding: 12px 0 14px; }
.sec-bar { display: flex; align-items: center; gap: 12px; padding: 0 22px 10px; }
.sec-bar h2 { margin: 0; font-size: 14px; font-weight: 700; letter-spacing: -.02em; display: flex; align-items: baseline; gap: 8px; }
.sec-bar h2 .num { font-size: 11px; font-weight: 500; color: var(--hot); }
.sec-note { font: 500 10.5px/1 var(--mono); color: var(--tx3); letter-spacing: 0; }
.strip-nav { margin-left: auto; display: flex; gap: 2px; }
.strip { display: grid; grid-auto-flow: column; grid-auto-columns: 236px; gap: 10px; overflow-x: auto; padding: 0 22px 4px; scroll-snap-type: x mandatory; scroll-padding: 0 22px; scrollbar-width: none; }
.strip::-webkit-scrollbar { display: none; }
.ecard { position: relative; scroll-snap-align: start; display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 4px 10px; padding: 8px; border: 1px solid var(--line); border-radius: 4px; background: var(--bg2); transition: border-color .2s, background .2s, transform .25s var(--ease); }
.ecard:hover { border-color: var(--line3); background: var(--bg3); transform: translateY(-2px); }
.ecard.is-int { border-color: rgba(255, 122, 182, .35); }
.ecard-hit { position: absolute; inset: 0; z-index: 2; border-radius: inherit; }
.ecard-img { position: relative; width: 84px; height: 48px; border-radius: 6px; overflow: hidden; background: var(--bg4); }
.ecard-img > img, .ecard-img > .ph { width: 100%; height: 100%; object-fit: cover; display: block; }
.ecard-img .disc { position: absolute; left: 3px; bottom: 3px; font-size: 10.5px; }
.ecard-tx { min-width: 0; }
.ec-name { margin: 0; font-size: 12.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ec-price { margin: 1px 0 0; font-size: 12px; white-space: nowrap; }
.ec-price b { font-weight: 600; }
.ec-price s { font-size: 10.5px; }
.ec-cd { margin: 2px 0 0; display: flex; align-items: center; gap: 4px; color: var(--tx2); }
.ec-cd svg { width: 12px; height: 12px; }
.cd { display: inline-flex; min-width: 11ch; font-size: 12.5px; font-weight: 600; color: var(--tx); white-space: pre; }
/* 카운트다운 자릿수: 칸 폭 고정, 바뀐 자리만 300ms 롤 (투명도 없음 → 비어 보이지 않음) */
.cd-d { display: inline-block; overflow: hidden; height: 1.25em; line-height: 1.25em; white-space: pre; }
.cd-in { display: inline-block; animation: cd-roll .3s cubic-bezier(.16, 1, .3, 1); }
@keyframes cd-roll { from { transform: translateY(-100%); } }
.cd.hot { color: var(--hot); }
.cd.crit { animation: crit .8s ease-in-out infinite; }
@keyframes crit { 50% { color: #fff; text-shadow: 0 0 10px var(--hot); } }
.cd-bar { grid-column: 1 / -1; height: 3px; border-radius: 2px; background: rgba(255, 255, 255, .06); overflow: hidden; margin-top: 2px; }
.cd-bar i { display: block; height: 100%; width: calc(var(--k, .5) * 100%); border-radius: 2px;
  background: repeating-linear-gradient(45deg, var(--acc) 0 6px, rgba(79, 227, 255, .45) 6px 12px); background-size: 16.97px 16.97px; animation: stripe 1s linear infinite; transition: width .6s var(--ease); }
.cd-bar i.hot { background-image: repeating-linear-gradient(45deg, var(--hot) 0 6px, rgba(255, 107, 90, .45) 6px 12px); }
@keyframes stripe { to { background-position: 16.97px 0; } }

/* ---------- 5. 목록 ---------- */
.list { padding: 16px 0 28px; }
.list-head { display: flex; align-items: flex-end; gap: 16px; padding: 0 22px 10px; }
.lh-text { flex: 1; min-width: 0; }
.list-head h2 { margin: 0; font-size: 18px; font-weight: 700; letter-spacing: -.03em; display: flex; align-items: baseline; gap: 8px; }
.lh-desc { margin: 3px 0 0; color: var(--tx2); font-size: 12.5px; }
.lh-desc .src-tag { margin-left: 4px; }
.sort-m { display: flex; flex-direction: column; gap: 3px; font-size: 11px; color: var(--tx2); }
.sort-m select, .f-grid select { height: 30px; border-radius: 4px; border: 1px solid var(--line2); background: var(--bg2); padding: 0 8px; }
/* v20: 내 목록(관심·위시·보유)은 모든 폭에서 정렬 선택을 보인다(보유 게임 목록과 같은 자리·모양) */
.sort-m.sort-all { display: flex !important; }
.sort-m.sort-all select { min-width: 176px; }
.sort-m.sort-all[hidden] { display: none !important; }

.chips { position: relative; display: flex; flex-wrap: wrap; gap: 4px; margin: 0 22px 10px; padding: 3px; border: 1px solid var(--line); border-radius: 4px; background: var(--bg1); width: max-content; max-width: calc(100% - 44px); }
.chip-pill { position: absolute; left: 0; top: 0; border-radius: 4px; background: var(--acc-d); box-shadow: inset 0 0 0 1px rgba(79, 227, 255, .5); transition: transform .42s var(--ease), width .42s var(--ease), height .42s var(--ease); pointer-events: none; opacity: 0; }
.chip-pill.is-on { opacity: 1; }
.chip { position: relative; display: inline-flex; align-items: center; gap: 7px; height: 28px; padding: 0 11px; border-radius: 4px; color: var(--tx2); font-weight: 600; font-size: 12.5px; transition: color .2s; }
.chip:hover { color: var(--tx); }
.chip.is-on { color: var(--acc); }
.chip-n { font-size: 11px; font-weight: 500; color: var(--tx3); }
.chip.is-on .chip-n { color: var(--acc); }
.chip.has-ok:not(.is-on) .chip-n { color: var(--ok); }

.table { margin: 0 12px; border: 1px solid var(--line); border-radius: 4px; background: var(--bg1); }
.row-grid { display: grid; grid-template-columns: var(--cols); column-gap: 10px; align-items: center; }
.thead { position: sticky; top: 0; z-index: 3; height: 34px; border-radius: 4px 10px 0 0; padding: 0 12px; background: rgba(13, 16, 21, .94); backdrop-filter: blur(6px); border-bottom: 1px solid var(--line2); font-size: 11px; color: var(--tx3); }
.th { min-width: 0; }
.sorth { display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 4px; margin-left: -4px; border-radius: 5px; color: var(--tx2); font-size: 11px; font-weight: 600; letter-spacing: .01em; white-space: nowrap; }
.sorth:hover { color: var(--tx); background: var(--bg3); }
.sorth.on { color: var(--acc); }
.sorth .zp-demo { font-size: 9px; padding: 0 4px; }
.sort-ic { display: inline-flex; flex-direction: column; gap: 2px; }
.sort-ic i { width: 0; height: 0; border-left: 3.5px solid transparent; border-right: 3.5px solid transparent; opacity: .35; transition: opacity .2s, transform .3s var(--spring); }
.sort-ic i:first-child { border-bottom: 4px solid currentColor; }
.sort-ic i:last-child { border-top: 4px solid currentColor; }
.sorth[data-dir="1"] .sort-ic i:first-child, .sorth[data-dir="-1"] .sort-ic i:last-child { opacity: 1; transform: scale(1.25); }

.tbody { position: relative; }
.row { position: relative; min-height: 58px; padding: 8px 12px; border-bottom: 1px solid var(--line); transition: background .2s; }
.row:last-child { border-bottom: 0; border-radius: 0 0 10px 10px; }
@media (hover: hover) { .row:hover { background: rgba(255, 255, 255, .025); } }
.row.is-sel { background: rgba(79, 227, 255, .05); box-shadow: inset 2px 0 0 var(--acc); }
.row.is-reached { background: linear-gradient(90deg, rgba(61, 220, 151, .15), rgba(61, 220, 151, .03) 55%, transparent); box-shadow: inset 3px 0 0 var(--ok); }
.row.is-reached.is-sel { box-shadow: inset 3px 0 0 var(--ok), inset 0 0 0 1px rgba(79, 227, 255, .35); }
body:not(.ex-owned) .row.is-owned { opacity: .55; }
.c { min-width: 0; position: static; }
.c-cover .cov, .c-cover .ph { display: block; width: 72px; height: 34px; border-radius: 5px; object-fit: cover; background: var(--bg4); }
.row-open { display: block; max-width: 100%; text-align: left; font-weight: 600; font-size: 13.5px; letter-spacing: -.015em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; position: static; }
.row-open::after { content: ""; position: absolute; inset: 0; z-index: 0; }
.row-open:hover { color: var(--acc); }
.row-open:focus-visible { outline: none; }
.row-open:focus-visible::after { outline: 2px solid var(--acc); outline-offset: -2px; border-radius: 4px; }
.c-cover { position: static; }
.c-name { position: static; }
.tags { display: flex; gap: 4px; margin-top: 3px; overflow: hidden; flex-wrap: nowrap; }
.nb { display: contents; }
.tag { flex: none; font-size: 10.5px; line-height: 16px; padding: 0 5px; border-radius: 4px; color: var(--tx2); background: rgba(255, 255, 255, .04); border: 1px solid var(--line); white-space: nowrap; }
.bdg { flex: none; display: inline-flex; align-items: center; gap: 3px; font-size: 10.5px; line-height: 16px; padding: 0 5px; border-radius: 4px; font-weight: 700; white-space: nowrap; color: var(--tx2); border: 1px solid var(--line2); }
.bdg svg { width: 11px; height: 11px; stroke-width: 2.6; }
.bdg.ok { color: #04140C; background: var(--ok); border-color: var(--ok); }
.bdg.own { color: var(--warn); border-color: rgba(255, 200, 87, .4); }
.bdg.hot { color: var(--hot); border-color: rgba(255, 107, 90, .45); }
.bdg.bun { color: #B57DFF; border-color: rgba(181, 125, 255, .45); }
.bdg.int { color: var(--int); border-color: rgba(255, 122, 182, .45); }

.pz-line { display: flex; align-items: center; gap: 6px; }
.pz { font-family: var(--mono); font-variant-numeric: tabular-nums; font-weight: 600; font-size: 14px; letter-spacing: -.03em; white-space: nowrap; }
.pz.free { color: var(--ok); font-family: var(--sans); }
.pz.na { color: var(--tx3); font-family: var(--sans); font-weight: 500; font-size: 12px; }
.pz-o { display: block; font-size: 11px; color: var(--tx3); }
.disc { display: inline-flex; align-items: center; height: 18px; padding: 0 5px; border-radius: 4px; font: 700 11.5px/1 var(--mono); font-variant-numeric: tabular-nums; letter-spacing: -.03em; color: var(--acc); background: var(--acc-d); border: 1px solid rgba(79, 227, 255, .35); white-space: nowrap; }
.disc.deep { color: #04141A; background: var(--acc); border-color: var(--acc); }
.ext-line { display: flex; align-items: center; gap: 5px; }
.ext-p { font-size: 12.5px; font-weight: 600; color: var(--tx); opacity: .85; }
.ext-line .zp-demo { font-size: 8.5px; padding: 0 3px; line-height: 13px; }
.ext-st { display: flex; align-items: center; gap: 4px; font-size: 10.5px; color: var(--tx3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ext-st i, .of-st i { width: 6px; height: 6px; border-radius: 2px; flex: none; }

.tgt { position: relative; z-index: 1; display: inline-flex; align-items: center; height: 26px; width: 100%; max-width: 116px; border: 1px solid var(--line2); border-radius: 6px; background: var(--bg0); padding: 0 6px; transition: border-color .15s, box-shadow .15s; }
.tgt:hover { border-color: var(--line3); }
.tgt:focus-within { border-color: var(--acc); box-shadow: 0 0 0 3px var(--acc-d); }
.tgt-cur { font: 500 11px var(--mono); color: var(--tx3); }
.tgt input { width: 100%; min-width: 0; border: 0; background: none; outline: none; font: 600 12.5px var(--mono); font-variant-numeric: tabular-nums; letter-spacing: -.03em; padding: 0 0 0 3px; }
.tgt-gap { display: block; margin-top: 2px; font-size: 10.5px; }
.gap { color: var(--tx3); white-space: nowrap; }
.gap.ok { color: var(--ok); font-weight: 700; display: inline-flex; align-items: center; gap: 2px; font-family: var(--sans); }
.gap.ok svg { width: 11px; height: 11px; stroke-width: 2.6; }
.row.is-reached .tgt { border-color: rgba(61, 220, 151, .7); background: rgba(61, 220, 151, .08); }
.tgt-add { position: relative; z-index: 1; font-size: 11.5px; color: var(--tx3); padding: 3px 6px; border-radius: 5px; border: 1px dashed var(--line2); }
.tgt-add:hover { color: var(--int); border-color: rgba(255, 122, 182, .5); }
.end { font-size: 12px; font-weight: 600; display: block; white-space: nowrap; }
.end.hot { color: var(--hot); }
.end-d { font-size: 10.5px; color: var(--tx3); }
.rv { font-size: 12px; font-weight: 600; display: block; }
.rv.good { color: #7FD3FF; }
.rv.mid { color: #C3CBD9; }
.rv.low { color: #E8A15A; }
.rc { font-size: 10.5px; color: var(--tx3); }

.heart { position: relative; z-index: 1; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 4px; color: var(--tx3); transition: color .15s, background .15s; }
.heart:hover { color: var(--int); background: rgba(255, 122, 182, .1); }
.heart.on { color: var(--int); }
.heart.on svg { fill: currentColor; }
.heart.sm { width: 26px; height: 26px; }
.spark { position: fixed; z-index: 10001; width: 5px; height: 5px; border-radius: 50%; background: var(--int); pointer-events: none; }

.empty { padding: 36px 16px; text-align: center; color: var(--tx2); }
.more { display: flex; justify-content: center; padding: 14px 12px 0; }
.more-btn { height: 34px; padding: 0 16px; border-radius: 4px; border: 1px solid var(--line2); background: var(--bg2); font-weight: 600; font-size: 12.5px; }
.more-btn:hover { border-color: var(--acc); color: var(--acc); }
.more-end { font-size: 11px; color: var(--tx3); }

/* ---------- 6. 인스펙터 ---------- */
.insp { display: flex; flex-direction: column; min-height: 0; background: var(--bg1); border-left: 1px solid var(--line); outline: none; }
.insp-top { display: flex; align-items: center; height: 36px; padding: 0 8px 0 14px; border-bottom: 1px solid var(--line); flex: none; }
.insp-cap { font: 600 10.5px/1 var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--tx3); flex: 1; }
/* v22 서랍(모든 폭): 오른쪽에서 밀려 나옴. 기본 닫힘(inert), 게임을 고르면 열림 — 열린 채 다른 게임을 고르면 내용만 바뀜(app.js openInsp) */
.insp { position: fixed; z-index: 50; top: var(--toph); right: 0; bottom: var(--stath); width: var(--inspw); max-width: 92vw; transform: translateX(104%); visibility: hidden; transition: transform .42s var(--ease), visibility 0s linear .42s; box-shadow: -24px 0 60px rgba(0, 0, 0, .5); }
body.insp-open .insp { transform: none; visibility: visible; transition: transform .42s var(--ease), visibility 0s; }
.insp-close { display: inline-grid; }
/* 넓은 화면: 스크림은 거의 투명하고 누르기를 막지 않는다(목록을 보며 다른 게임으로 바꿀 수 있게 — 닫기는 닫기 단추·Esc). 좁은 화면(≤1279)은 아래에서 어둡게·눌러서 닫기 */
@media (min-width: 1280px) { body.insp-open .scrim { opacity: .25; pointer-events: none; } }
@media (prefers-reduced-motion: reduce) { .insp { transition: visibility 0s; } }
.insp-body { overflow-y: auto; padding: 12px 14px 24px; min-height: 0; flex: 1; }
.i-hero { position: relative; margin: 0; border-radius: 4px; overflow: hidden; aspect-ratio: 616 / 353; background: var(--bg4); border: 1px solid var(--line); }
.i-hero.is-reached { border-color: var(--ok); box-shadow: 0 0 0 3px rgba(61, 220, 151, .15); }
.i-hero > img, .i-hero > .ph { width: 100%; height: 100%; object-fit: cover; display: block; }
.i-flags { position: absolute; left: 8px; bottom: 8px; display: flex; flex-wrap: wrap; gap: 4px; }
.i-flags .bdg { background: rgba(10, 12, 16, .82); backdrop-filter: blur(4px); }
.i-flags .bdg.ok { background: var(--ok); }
.i-name { margin: 12px 0 2px; font-size: 18px; line-height: 1.3; font-weight: 700; letter-spacing: -.03em; }
.i-meta { margin: 0; color: var(--tx2); font-size: 12px; }
.i-tags { flex-wrap: wrap; margin-top: 7px; }
.i-actions { display: flex; gap: 6px; margin: 12px 0 4px; flex-wrap: wrap; }
.i-actions .btn { flex: 1 1 auto; }
.heart-btn.on { color: var(--int); border-color: rgba(255, 122, 182, .45); background: rgba(255, 122, 182, .08); }
.heart-btn.on svg { fill: currentColor; }
.i-sec { margin-top: 12px; padding: 12px; border: 1px solid var(--line); border-radius: 4px; background: var(--bg2); }
.i-h { display: flex; align-items: center; gap: 8px; margin-bottom: 9px; }
.i-h h3 { margin: 0; font-size: 12.5px; font-weight: 700; flex: 1; display: flex; align-items: center; gap: 6px; letter-spacing: -.01em; }
.i-price { display: flex; align-items: center; gap: 10px; }
.big { margin: 0; font: 600 24px/1.1 var(--mono); font-variant-numeric: tabular-nums; letter-spacing: -.04em; }
.big-disc { height: 34px; padding: 0 8px; font-size: 18px; border-radius: 4px; }
.i-price s { font-size: 12px; }
.i-price .muted { font-size: 11.5px; }
.i-end { display: flex; align-items: center; gap: 8px; margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--line2); font-size: 12px; color: var(--tx2); }
.i-end > span:first-child { display: inline-flex; align-items: center; gap: 4px; flex: 1; }
.i-end svg { width: 13px; height: 13px; }
.i-end .cd { font-size: 14px; }
.i-end .muted { font-size: 10.5px; }
.i-rev { display: flex; align-items: center; gap: 7px; margin-top: 8px; font-size: 12px; color: var(--tx2); flex-wrap: wrap; }
.i-rev .rv { display: inline; font-size: 13px; }
.i-rev .muted { font-size: 11px; }
.rv-bar { flex: 1 0 100%; height: 3px; border-radius: 2px; background: rgba(255, 255, 255, .06); overflow: hidden; }
.rv-bar i { display: block; height: 100%; width: calc(var(--k) * 100%); background: linear-gradient(90deg, #3F7FD8, #7FD3FF); }

.i-target.is-reached { border-color: rgba(61, 220, 151, .55); background: linear-gradient(180deg, rgba(61, 220, 151, .1), var(--bg2) 70%); }
.tg-row { display: flex; align-items: center; gap: 10px; }
.tg-row input[type=range] { flex: 1; min-width: 0; accent-color: var(--acc); height: 20px; }
.tg-in { display: inline-flex; align-items: center; gap: 2px; height: 30px; width: 112px; padding: 0 8px; border: 1px solid var(--line2); border-radius: 4px; background: var(--bg0); font: 500 11px var(--mono); color: var(--tx3); }
.tg-in:focus-within { border-color: var(--acc); box-shadow: 0 0 0 3px var(--acc-d); }
.tg-in input { width: 100%; min-width: 0; border: 0; background: none; outline: none; font: 600 13px var(--mono); font-variant-numeric: tabular-nums; color: var(--tx); }
.prog { position: relative; height: 8px; margin: 12px 0 5px; border-radius: 4px; background: rgba(255, 255, 255, .06); overflow: visible; }
.prog > i { position: absolute; left: 0; top: 0; bottom: 0; width: calc(var(--k, 0) * 100%); border-radius: 4px; background: linear-gradient(90deg, rgba(79, 227, 255, .35), var(--acc)); transition: width .45s var(--ease), background .3s; }
.prog-now { position: absolute; top: -3px; left: calc(var(--k, 0) * 100%); width: 2px; height: 14px; margin-left: -1px; background: #fff; border-radius: 1px; transition: left .45s var(--ease); }
.prog.ok > i { background: linear-gradient(90deg, rgba(61, 220, 151, .45), var(--ok)); }
.prog-lab { display: flex; justify-content: space-between; gap: 6px; font-size: 10.5px; color: var(--tx3); }
.prog-lab span:nth-child(2) { color: var(--tx2); }
.tg-msg { margin: 8px 0 0; font-size: 12.5px; color: var(--tx2); }
.tg-msg b { color: var(--tx); font-weight: 600; }
.tg-msg .muted { font-size: 11px; }
.i-target .btn { margin-top: 8px; width: 100%; }
.i-target .muted { margin: 0; font-size: 12px; }

/* v11 미리보기: 공식 최저 / 키샵 최저 두 줄(구분은 이름표, 키샵은 차분한 보조색) */
.i-kl { display: grid; gap: 4px; margin: 0 0 10px; font-size: 12.5px; }
.i-kl div { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 8px; align-items: baseline; }
.i-kl dt { color: var(--tx2); font-size: 12px; }
.i-kl .ks dt { color: #A79CC2; }
.i-kl dd { margin: 0; display: flex; flex-wrap: wrap; gap: 2px 12px; min-width: 0; }
.i-kl dd b { font-weight: 700; }
.offers { list-style: none; margin: 0; padding: 0; display: grid; }
.of { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; grid-template-areas: "st p d" "reg reg reg"; gap: 2px 8px; align-items: center; padding: 8px 0; border-top: 1px solid var(--line); }
.of:first-child { border-top: 0; padding-top: 0; }
.of-st { grid-area: st; display: flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; min-width: 0; white-space: nowrap; }
.of-st svg { width: 14px; height: 14px; }
.of-p { grid-area: p; font-size: 13px; font-weight: 600; white-space: nowrap; }
.of-p s { font-size: 10.5px; font-weight: 400; }
.of-d { grid-area: d; min-width: 42px; text-align: right; }
.of-reg { grid-area: reg; display: inline-flex; align-items: center; gap: 4px; font-size: 11px; }
.of-reg svg { width: 12px; height: 12px; }
.of-reg.ok { color: var(--ok); }
.of-reg.check { color: var(--warn); }
.of.best .of-p { color: var(--ok); }
.best-chip { font: 700 9.5px/14px var(--mono); padding: 0 4px; border-radius: 3px; background: var(--ok-d); color: var(--ok); border: 1px solid rgba(61, 220, 151, .4); }
.of-steam { background: linear-gradient(90deg, rgba(102, 192, 244, .07), transparent); margin: 0 -12px; padding: 8px 12px; }
.of-steam:first-child { padding-top: 8px; margin-top: -4px; }
.note { margin: 8px 0 0; font-size: 11px; line-height: 1.5; color: var(--tx3); }

.spark-svg { display: block; width: 100%; height: auto; overflow: visible; }
.sp-base { stroke: rgba(255, 255, 255, .12); stroke-dasharray: 2 3; }
.sp-area { fill: url(#spg); stroke: none; }
.sp-line { fill: none; stroke: var(--acc); stroke-width: 1.6; stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.1s var(--ease) .1s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.sp-t { stroke: var(--int); stroke-width: 1; stroke-dasharray: 4 3; }
.sp-tl { fill: var(--int); font: 600 9.5px var(--mono); }
.sp-min { fill: var(--ok); stroke: var(--bg2); stroke-width: 2; }
.sp-ml { fill: var(--ok); font: 600 9.5px var(--mono); }
.sp-now { fill: #fff; stroke: var(--acc); stroke-width: 2; }
.sp-ax { fill: var(--tx3); font: 500 9px var(--mono); }

.i-bundles { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.ib { display: flex; flex-direction: column; gap: 2px; width: 100%; text-align: left; padding: 8px 10px; border-radius: 4px; border: 1px solid var(--line); background: var(--bg1); transition: border-color .15s; }
.ib:hover { border-color: rgba(181, 125, 255, .6); }
.ib-n { font-weight: 600; font-size: 12.5px; }
.ib-m { font-size: 11px; color: var(--tx2); }

/* 자리표시 이미지 */
.ph { display: flex; align-items: center; justify-content: center; text-align: center; overflow: hidden; padding: 4px;
  background: linear-gradient(135deg, hsl(var(--h, 210) 45% 26%), hsl(calc(var(--h, 210) + 60) 50% 14%)); color: rgba(255, 255, 255, .85); }
.ph > span { font-size: 10px; font-weight: 700; line-height: 1.2; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.i-hero .ph > span { font-size: 18px; }

/* ---------- 7. 번들 ---------- */
.bundles { padding: 16px 0 32px; }
.bundles .list-head { padding-bottom: 14px; }
.c-int { color: var(--int); } .c-wish { color: var(--steam); } .c-own { color: var(--warn); }
.bgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 12px; padding: 0 12px; }
.bcard { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 4px; background: var(--bg1); overflow: hidden; scroll-margin-top: 12px; }
.bcard.is-demo { border-style: dashed; border-color: rgba(255, 200, 87, .3); }
.b-cover { position: relative; aspect-ratio: 16 / 7; overflow: hidden; background: var(--bg3); }
.b-cover > img, .b-cover > .ph { width: 100%; height: 100%; object-fit: cover; display: block; }
.collage { display: grid; grid-template-columns: repeat(4, 1fr); height: 100%; gap: 2px; }
.collage img, .collage .ph { width: 100%; height: 100%; object-fit: cover; display: block; }
.b-kind { position: absolute; left: 10px; top: 10px; font: 600 10.5px/1 var(--mono); padding: 5px 7px; border-radius: 5px; background: rgba(10, 12, 16, .8); backdrop-filter: blur(4px); border: 1px solid var(--line2); }
/* wf-scrollreveal (CSS): 흑백→컬러, 1.3→1.0 줌아웃, 마스크 상승 */
.bcard[data-reveal] .b-cover > *:not(.b-kind) { filter: grayscale(1); transform: scale(1.3); transition: filter 1.2s var(--ease), transform 1.4s var(--ease); }
.bcard[data-reveal] .b-cover { -webkit-mask-image: linear-gradient(to top, #000 50%, transparent 50%); mask-image: linear-gradient(to top, #000 50%, transparent 50%); -webkit-mask-size: 100% 200%; mask-size: 100% 200%; -webkit-mask-position: 0 0; mask-position: 0 0; transition: -webkit-mask-position 1s var(--ease), mask-position 1s var(--ease); }
.bcard.is-in .b-cover > *:not(.b-kind) { filter: none; transform: none; }
.bcard.is-in .b-cover { -webkit-mask-position: 0 100%; mask-position: 0 100%; }
.b-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.b-src { display: flex; gap: 5px; flex-wrap: wrap; }
.src { font: 600 10.5px/16px var(--mono); padding: 0 6px; border-radius: 4px; border: 1px solid var(--line2); color: var(--tx2); letter-spacing: 0; }
.src.real { color: #FFB547; border-color: rgba(255, 152, 0, .45); }
.src.manual { color: var(--tx); }
.src.ver { color: var(--ok); border-color: rgba(61, 220, 151, .4); }
.b-name { margin: 0; font-size: 15px; font-weight: 700; letter-spacing: -.02em; line-height: 1.35; }
.b-over { margin: 0; display: flex; gap: 10px; flex-wrap: wrap; font-size: 11.5px; color: var(--tx2); }
.ov b { color: var(--tx); font-weight: 600; }
.ov.int b { color: var(--int); } .ov.wish b { color: var(--steam); } .ov.own b { color: var(--warn); }
.b-price { margin: 0; display: flex; align-items: center; gap: 8px; }
.b-price b { font-size: 22px; font-weight: 600; letter-spacing: -.04em; }
.b-price s { font-size: 12px; }
.b-val { margin: 0; font-size: 11.5px; color: var(--tx2); }
.b-val b { color: var(--tx); }
.b-until { margin: 0; display: flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--tx2); }
.b-until svg { width: 13px; height: 13px; }
.b-until b { color: var(--tx); font-weight: 600; }
.b-until b.hot { color: var(--hot); }
.tiers { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 3px; }
.tier { position: relative; padding: 7px 8px 6px; border-radius: 6px; background: var(--bg3); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 1px; transition: background .3s, border-color .3s; }
.tier::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; border-radius: 0 0 6px 6px; background: var(--line2); transition: background .3s; }
.tier b { font-size: 11.5px; }
.tier span { font-size: 13px; font-weight: 600; }
.tier small { font-size: 10px; color: var(--tx3); }
.tier.on::after { background: var(--acc); }
.tier.cur { background: var(--acc-d); border-color: rgba(79, 227, 255, .5); }
.tier-sum { margin: 0; display: flex; justify-content: space-between; align-items: baseline; font-size: 12px; color: var(--tx2); }
.tier-sum b { color: var(--tx); }
/* v19 번들 출처: 판매처 거르기 칩·아이콘, 절약액, 추가 단계 (v35: 중개 서비스 출처 표시 .src.via 는 뺌) */
.bchips { margin: 0 12px 12px; max-width: calc(100% - 24px); }
.bchips .chip.is-on { background: var(--acc-d); box-shadow: inset 0 0 0 1px rgba(79, 227, 255, .5); }
.b-ic { width: 14px; height: 14px; border-radius: 3px; object-fit: contain; flex: none; }
.b-shop { display: inline-flex; align-items: center; gap: 5px; }
.b-shop .b-ic { width: 12px; height: 12px; }
.b-save { color: var(--ok); font-weight: 600; white-space: nowrap; }
.tier.is-addon { border-style: dashed; background: transparent; }
.btotal { font-size: 20px; font-weight: 600; color: var(--acc); letter-spacing: -.04em; display: inline-block; }
.pool { list-style: none; margin: 2px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 6px; }
.tile { display: flex; flex-direction: column; gap: 3px; width: 100%; text-align: left; transition: opacity .3s, filter .3s, transform .2s; }
.tile-im { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: 6px; overflow: hidden; background: var(--bg3); border: 1px solid var(--line); }
.tile-im img, .tile-im .ph { width: 100%; height: 100%; object-fit: cover; display: block; }
.tile-bd { position: absolute; left: 3px; top: 3px; display: flex; gap: 2px; }
.bd { font: 700 9.5px/14px var(--sans); padding: 0 4px; border-radius: 3px; background: rgba(10, 12, 16, .85); }
.bd.own { color: var(--warn); } .bd.int { color: var(--int); } .bd.wish { color: var(--steam); }
.tile-n { font-size: 10.5px; line-height: 1.3; color: var(--tx2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tile-p { font-size: 10px; color: var(--tx3); }
.tile.dim { opacity: .4; filter: grayscale(.8); }
.tile.pick.off { opacity: .45; filter: grayscale(.6); }
.tile.pick.on .tile-im { border-color: var(--acc); box-shadow: 0 0 0 1px var(--acc); }
.tile.pick:hover { transform: translateY(-2px); opacity: 1; }
.tile.pick.on .tile-im::after { content: "✓"; position: absolute; right: 3px; top: 3px; width: 16px; height: 16px; border-radius: 50%; display: grid; place-items: center; font-size: 10px; font-weight: 800; color: #04141A; background: var(--acc); animation: pop .4s var(--spring); }
@keyframes pop { from { transform: scale(0); } }
.b-foot { margin-top: auto; padding-top: 6px; display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 11px; flex-wrap: wrap; }

.bform { margin: 16px 12px 0; padding: 14px; border: 1px solid var(--line2); border-radius: 4px; background: var(--bg1); }
.bform .note { margin: 0 0 12px; }
.f-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.f-grid label, .f-search { display: flex; flex-direction: column; gap: 4px; font-size: 11.5px; color: var(--tx2); font-weight: 600; }
.f-wide { grid-column: span 2; }
.f-grid input, .f-search input { height: 32px; border-radius: 4px; border: 1px solid var(--line2); background: var(--bg0); padding: 0 10px; font-weight: 500; font-size: 13px; color: var(--tx); outline: none; min-width: 0; }
.f-grid input:focus, .f-search input:focus, .f-grid select:focus { border-color: var(--acc); box-shadow: 0 0 0 3px var(--acc-d); }
.f-grid select { height: 32px; }
.f-search { margin-top: 12px; }
.bf-res { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 2px; }
.bf-res button { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto auto; gap: 10px; align-items: center; width: 100%; text-align: left; padding: 5px 8px; border-radius: 4px; font-size: 12.5px; }
.bf-res button:hover:not(:disabled) { background: var(--bg3); }
.bf-res button:disabled { opacity: .5; cursor: default; }
.bf-res button > span:nth-child(2) { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bf-res b { font-size: 11.5px; color: var(--acc); }
.bf-im { width: 56px; height: 26px; border-radius: 4px; object-fit: cover; display: block; }
.bf-res .muted { padding: 6px 8px; font-size: 12px; }
mark { background: rgba(79, 227, 255, .2); color: var(--acc); border-radius: 2px; }
.bf-sel { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.bf-sel li { display: inline-flex; align-items: center; gap: 4px; height: 26px; padding: 0 4px 0 9px; border-radius: 99px; background: var(--bg3); border: 1px solid var(--line2); font-size: 12px; animation: pop .35s var(--spring); }
.bf-sel li.muted { border-style: dashed; background: none; padding-right: 9px; animation: none; }
.bf-sel button { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; color: var(--tx2); }
.bf-sel button:hover { background: var(--bg4); color: var(--hot); }
.bf-sel svg { width: 12px; height: 12px; }
.f-foot { display: flex; align-items: center; justify-content: flex-end; gap: 12px; margin-top: 12px; }
.err { color: var(--hot); font-size: 12px; margin-right: auto; }

/* ---------- 8. 명령 팔레트 ---------- */
.pal { position: fixed; inset: 0; z-index: 200; display: grid; justify-items: center; align-items: start; padding: 10vh 16px 16px; }
.pal-back { position: absolute; inset: 0; background: rgba(5, 7, 10, .66); backdrop-filter: blur(3px); }
.pal-box { position: relative; width: min(860px, 100%); max-height: 76vh; display: flex; flex-direction: column; border-radius: 4px; border: 1px solid var(--line2); background: var(--bg1); box-shadow: 0 30px 80px rgba(0, 0, 0, .6), 0 0 0 1px rgba(79, 227, 255, .08); overflow: hidden; }
.pal-head { display: flex; align-items: center; gap: 10px; padding: 0 14px; height: 52px; border-bottom: 1px solid var(--line); color: var(--tx2); }
.pal-head svg { width: 18px; height: 18px; }
.pal-head input { flex: 1; min-width: 0; height: 100%; border: 0; background: none; outline: none; font-size: 16px; color: var(--tx); }
.pal-meta { padding: 7px 14px; font-size: 11.5px; color: var(--tx3); border-bottom: 1px solid var(--line); }
.pal-meta b { color: var(--tx2); }
.pal-body { display: grid; grid-template-columns: minmax(0, 1fr) 280px; min-height: 0; flex: 1; }
.pal-list { list-style: none; margin: 0; padding: 6px; overflow-y: auto; min-height: 0; max-height: calc(76vh - 130px); }
.pal-item { display: grid; grid-template-columns: 60px minmax(0, 1fr) auto 26px; gap: 10px; align-items: center; padding: 5px 6px; border-radius: 4px; cursor: pointer; }
.pal-item.act { background: var(--bg3); box-shadow: inset 2px 0 0 var(--acc); }
.pal-item.is-own { opacity: .7; }
.pal-im { width: 60px; height: 28px; border-radius: 4px; object-fit: cover; display: block; }
.pal-n { font-size: 13px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pal-p { font-size: 12px; white-space: nowrap; display: flex; align-items: center; gap: 5px; }
.pal-empty { padding: 30px 12px; text-align: center; color: var(--tx2); }
.pal-grp { display: flex; align-items: center; gap: 6px; padding: 9px 6px 4px; font: 600 11px/1 var(--sans); letter-spacing: .04em; color: var(--tx3); }
.pal-grp:first-child { padding-top: 3px; }
.pal-grp .num { color: var(--tx3); font-weight: 500; }
.pal-wait { color: var(--tx3); }
.pal-prev { border-left: 1px solid var(--line); padding: 12px; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; min-height: 0; max-height: calc(76vh - 130px); }
.pp-im { width: 100%; aspect-ratio: 616 / 353; border-radius: 4px; object-fit: cover; display: block; }
.pp-n { margin: 0; font-weight: 700; font-size: 14px; line-height: 1.3; }
.pp-price { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.pp-price b { font-size: 18px; font-weight: 600; letter-spacing: -.04em; }
.pp-price s { font-size: 11px; }
.pp-dl { margin: 0; display: grid; gap: 4px; font-size: 12px; }
.pp-dl div { display: flex; justify-content: space-between; gap: 8px; }
.pp-dl dt { color: var(--tx3); }
.pp-dl dd { margin: 0; text-align: right; }
.pp-act { display: flex; gap: 6px; flex-wrap: wrap; margin-top: auto; }
.pal-foot { display: flex; gap: 16px; padding: 8px 14px; border-top: 1px solid var(--line); font-size: 11px; color: var(--tx3); flex-wrap: wrap; }
.pal-foot kbd { margin-right: 2px; }
body.pal-on { overflow: hidden; }

/* ---------- 9. 상태 바 ---------- */
.status { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 12px; height: var(--stath); background: #07090C; border-top: 1px solid var(--line); font: 500 10.5px/1 var(--mono); color: var(--tx3); white-space: nowrap; overflow: hidden; letter-spacing: 0; }
.status b { color: var(--tx2); font-weight: 600; }
.sb-l, .sb-r { display: flex; align-items: center; gap: 0; min-width: 0; overflow: hidden; }
.sb-l > span, .sb-r > span { padding: 0 8px; border-left: 1px solid var(--line); }
.sb-l > span:first-of-type, .sb-r > span:first-child { border-left: 0; }
.sb-link { padding: 0 8px; border-left: 1px solid var(--line); color: var(--tx2); text-decoration: none; }   /* v9 개인정보처리방침 */
.sb-link:hover { color: var(--tx); text-decoration: underline; }
.sb-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--ok); padding: 0 !important; margin-right: 2px; border: 0 !important; }
.sb-demo { color: var(--warn); }
.sb-view { color: var(--acc); }
.sb-kbd kbd { font-size: 9.5px; line-height: 13px; padding: 0 4px; }

/* 스크림 */
.scrim { position: fixed; inset: 0; z-index: 40; background: rgba(5, 7, 10, .55); opacity: 0; pointer-events: none; transition: opacity .3s; }

/* 첫 등장 */
body:not(.is-ready) .hero-in, body:not(.is-ready) .ending { opacity: 0; }
.hero-in, .ending { transition: opacity .5s var(--ease); }

/* ---------- 반응형: 1024 (인스펙터 → 오른쪽 드로어) ---------- */
@media (max-width: 1279px) {
  :root { --railw: 196px; }
  .insp { width: min(460px, 92vw); }
  body.insp-open .scrim { opacity: 1; pointer-events: auto; }
  .brand-tag { display: none; }
  .brand { width: auto; }
}

/* ---------- 반응형: 390 (단일 열) ---------- */
@media (max-width: 720px) {
  :root { --toph: 52px; }
  body { font-size: 13px; }
  .only-m { display: inline-flex !important; }
  .app { grid-template-columns: minmax(0, 1fr); grid-template-areas: "top" "main" "stat"; }
  .top { gap: 6px; padding: 0 8px; }
  .brand-name { font-size: 15px; }
  .search-trig { flex: 0 0 auto; width: 34px; padding: 0; justify-content: center; margin-left: auto; margin-right: 0; }
  .search-trig .st-label, .search-trig .st-kbd { display: none; }
  .switch { padding: 0 6px 0 4px; font-size: 11.5px; gap: 6px; }
  .sw-label { max-width: 52px; white-space: normal; line-height: 1.1; }

  .rail { position: fixed; z-index: 60; top: var(--toph); left: 0; bottom: 0; width: min(280px, 84vw); transform: translateX(-104%); transition: transform .42s var(--ease); box-shadow: 24px 0 60px rgba(0, 0, 0, .5); }
  body.rail-open .rail { transform: none; }
  body.rail-open .scrim { opacity: 1; pointer-events: auto; }
  .rail-item { height: 42px; }

  .insp { top: auto; left: 0; right: 0; bottom: 0; width: 100%; height: 88dvh; max-height: calc(100dvh - 24px); transform: translateY(104%); border-left: 0; border-top: 1px solid var(--line2); border-radius: 4px 16px 0 0; box-shadow: 0 -24px 60px rgba(0, 0, 0, .55); z-index: 70; }
  .insp-top { position: relative; height: 40px; }
  .insp-top::before { content: ""; position: absolute; left: 50%; top: 6px; width: 36px; height: 4px; margin-left: -18px; border-radius: 2px; background: var(--line3); }

  .hero-in { padding: 16px 16px 14px; }
  .hl { font-size: 20px; }
  .kpis { grid-template-columns: 1fr 1fr; }
  .kpi { border-left: 0; border-top: 1px solid var(--line); padding: 9px 11px; }
  .kpi:nth-child(-n+2) { border-top: 0; }
  .kpi:nth-child(even) { border-left: 1px solid var(--line); }
  .kpi dd { font-size: 18px; }
  .kpi dt { white-space: normal; line-height: 1.3; }

  .sec-bar { padding: 0 16px 8px; flex-wrap: wrap; }
  .sec-note { display: none; }
  .strip { padding: 0 16px 4px; scroll-padding: 0 16px; grid-auto-columns: 78%; }

  .list-head { padding: 0 16px 10px; align-items: flex-start; flex-direction: column; gap: 8px; }
  .sort-m { flex-direction: row; align-items: center; gap: 8px; }
  .chips { margin: 0 16px 10px; max-width: calc(100% - 32px); width: auto; overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; }
  .chips::-webkit-scrollbar { display: none; }
  .chip { flex: none; }

  .table { margin: 0 10px; border: 0; background: none; overflow: visible; }
  .thead { display: none; }
  .tbody { display: grid; gap: 8px; }
  .row { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; grid-template-areas: "cov name act" "cov steam end" "tgt tgt tgt" "ext ext rev"; gap: 6px 10px; padding: 10px; border: 1px solid var(--line); border-radius: 4px; background: var(--bg1); }
  .row:last-child { border-bottom: 1px solid var(--line); border-radius: 4px; }
  .row.is-reached { border-color: rgba(61, 220, 151, .6); }
  .c-cover { grid-area: cov; align-self: start; }
  .c-cover .cov, .c-cover .ph { width: 96px; height: 45px; }
  .c-name { grid-area: name; }
  .c-steam { grid-area: steam; }
  .c-ext { grid-area: ext; display: flex; align-items: center; gap: 8px; padding-top: 6px; border-top: 1px dashed var(--line); }
  .c-target { grid-area: tgt; display: flex; align-items: center; gap: 8px; }
  .c-target .tgt { max-width: 150px; }
  .c-target .tgt-gap { margin: 0; }
  .c-end { grid-area: end; text-align: right; align-self: end; }
  .c-rev { grid-area: rev; text-align: right; padding-top: 6px; border-top: 1px dashed var(--line); display: flex; gap: 6px; align-items: center; justify-content: flex-end; }
  .c-act { grid-area: act; align-self: start; }
  .c-rev .rv { display: inline; }
  .row-open { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
  .tags { flex-wrap: wrap; }
  .tags .tag:nth-child(n+3) { display: none; }

  .bgrid { grid-template-columns: minmax(0, 1fr); padding: 0 10px; }
  .bform { margin: 14px 10px 0; }
  .f-grid { grid-template-columns: 1fr 1fr; }
  .f-wide { grid-column: 1 / -1; }
  .pool { grid-template-columns: repeat(3, minmax(0, 1fr)); }

  .pal { padding: 8px; }
  .pal-box { max-height: calc(100dvh - 16px); }
  .pal-body { grid-template-columns: minmax(0, 1fr); }
  .pal-prev { display: none; }
  .pal-list { max-height: none; }
  .pal-item { grid-template-columns: 52px minmax(0, 1fr) 26px; }
  .pal-item .pal-p { grid-column: 2; grid-row: 2; }
  .pal-item .pal-im { grid-row: span 2; width: 52px; height: 24px; }
  .pal-item .heart { grid-column: 3; grid-row: 1 / span 2; }
  .pal-foot { display: none; }

  .sb-l > span:nth-child(n+4), .sb-r > span:not(.sb-view) { display: none; }
  .sb-r { flex: none; }
}

@media (hover: none) {
  .ecard:hover { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .radar::before, .radar i, .live-dot, .cd-bar i { animation: none !important; }
  .sp-line { stroke-dashoffset: 0; animation: none; }
  .bcard[data-reveal] .b-cover > *:not(.b-kind) { filter: none; transform: none; }
  .bcard[data-reveal] .b-cover { -webkit-mask-image: none; mask-image: none; }
}

/* ===== v2 (2026-10-18): 할인 사이트 22곳 조사 반영 — docs/design-research.md =====
   네온 청록·고정폭 숫자·회전 레이더·발광 대신 무채색 + Steam식 초록 할인 블록 + 차분한 파랑. */
:root {
  --bg0: #121418; --bg1: #16191E; --bg2: #1B1F25; --bg3: #22272F; --bg4: #2A303A;
  --line: rgba(255, 255, 255, .06); --line2: rgba(255, 255, 255, .1); --line3: rgba(255, 255, 255, .16);
  --tx: #E8EAED; --tx2: #A2A8B3; --tx3: #6E7582;
  --acc: #6AA8DC; --acc-d: rgba(106, 168, 220, .12); --acc-dd: rgba(106, 168, 220, .3);
  --ok: #7DBA5A; --ok-d: rgba(125, 186, 90, .14); --hot: #E0603F; --hot-d: rgba(224, 96, 63, .14);
  --warn: #D9AE4A; --int: #D98AB0; --steam: #A2A8B3;
  --mono: "Pretendard Variable", Pretendard, -apple-system, "Segoe UI", system-ui, sans-serif;
}
body { font-variant-numeric: tabular-nums; }
.num, .mono, kbd { letter-spacing: 0; }
.radar { border-radius: 3px; border: 0; background: #4C6B22; }
.radar::before, .radar::after, .radar i { animation: none !important; }
.radar::after { background: none; }
.live-dot { animation: none; box-shadow: none; }
.kpis { backdrop-filter: none; background: var(--bg1); }
.hero { background: var(--bg0); }
.rail-sec { margin: 14px 10px 4px; font-size: 11px; font-weight: 600; color: var(--tx3); letter-spacing: 0; }
.chip-pill, .rail-ind { transition-duration: .15s !important; }
.zp-digit-in { animation-duration: .2s; }
.radar::before { background: none; inset: 5px; border: 2px solid #BEEE11; border-right-color: transparent; }
.radar i { left: 50%; top: 50%; margin: -1.5px 0 0 -1.5px; background: #BEEE11; box-shadow: none; }

/* ===== 2026-10-18 로그인·가독성 (docs/design-research.md '목록 가독성') =====
   보조 글자색 대비를 올리고(#6E7582 → #8A919D, 바탕 #16191E 대비 약 5.6:1), 보조 글씨 12px 이상. 자리표시는 단색. */
:root { --tx3: #8A919D; }
.ph { background: var(--bg3); color: var(--tx2); }
.ph > span { font-size: 12px; font-weight: 600; }
.status { font-size: 12px; }
.tag, .bdg { font-size: 12px; line-height: 18px; }
.lh-desc { font-size: 13px; }
/* 내 목록 표(관심·위시·보유)의 썸네일: 72x34 → 120x56 (Steam 헤더) */
.row-grid { --cols: 120px minmax(150px, 1fr) 118px 104px 120px 80px 54px 72px; }
.c-cover .cov, .c-cover .ph { width: 120px; height: 56px; border-radius: 2px; }
.row-open { font-size: 14.5px; }
@media (max-width: 720px) { .c-cover .cov, .c-cover .ph { width: 112px; height: 52px; } .row { grid-template-columns: 112px minmax(0, 1fr) auto; } }
/* 왼쪽 레일 아래: 연동 카드를 관리자 화면으로 옮기고 남은 '관심 목록 되돌리기'(보기 전용)만 */
.rail-foot { padding: 0 10px; }
.rail-foot:not(:has(:not([hidden]))) { display: none; }
/* 상단 사용자 메뉴 */
.ub-menu { position: relative; }
.ub-btn { display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 6px 0 4px; border-radius: 4px; color: var(--tx); font-size: 13px; font-weight: 600; white-space: nowrap; }
.ub-btn:hover, .ub-btn[aria-expanded="true"] { background: var(--bg3); }
.ub-btn .ub-name { display: inline-block; max-width: 180px; overflow: hidden; text-overflow: ellipsis; font-weight: 600; }
.ub-caret { width: 14px; height: 14px; fill: none; stroke: var(--tx2); stroke-width: 2; }
.ub-pop { position: absolute; right: 0; top: calc(100% + 6px); z-index: 120; min-width: 220px; padding: 4px; background: var(--bg1); border: 1px solid var(--line2); border-radius: 4px; box-shadow: 0 12px 30px rgba(0, 0, 0, .4); }
.ub-pop-h { display: flex; flex-direction: column; gap: 2px; margin: 0 0 4px; padding: 8px 10px 10px; border-bottom: 1px solid var(--line); }
.ub-pop-h b { font-size: 14px; }
.ub-pop-h small { font-size: 12px; color: var(--tx3); font-variant-numeric: tabular-nums; }
.ub-pop [role=menuitem] { display: flex; align-items: center; width: 100%; height: 34px; padding: 0 10px; border-radius: 3px; color: var(--tx); font-size: 13.5px; text-decoration: none; text-align: left; }
.ub-pop [role=menuitem]:hover, .ub-pop [role=menuitem]:focus-visible { background: var(--bg3); outline: none; }
/* 로그인 직후 동기화 진행 표시 */
.sync-note { display: inline-flex; align-items: center; gap: 7px; height: 30px; padding: 0 10px; margin-left: auto; border-radius: 4px; background: var(--bg3); color: var(--tx); font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.sync-note[hidden] { display: none; }
.sync-note i { width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--tx3); border-top-color: var(--acc); animation: spin .9s linear infinite; }
.sync-note .sn-s { display: none; }
.sync-note:not([hidden]) ~ .user { margin-left: 0; }
@media (max-width: 1100px) { .sync-note .sn-l { display: none; } .sync-note .sn-s { display: inline; } }
@media (max-width: 720px) {
  .ub-btn { padding: 0 2px; gap: 4px; }
  .ub-btn .ub-name { display: none; }
  .sync-note { padding: 0 8px; font-size: 12px; }
}

/* 백팩 Backpack 로고(backpack.svg 와 같은 그림) — 전역 svg 규칙(fill:none·stroke) 위에 색을 직접 준다 */
.brand .logo { width: 30px; height: 30px; flex: none; object-fit: contain; filter: drop-shadow(0 0 6px rgba(79, 227, 255, .25)); transition: transform .25s var(--spring), filter .2s; }   /* v55 코덱스로 만든 로고(logo.png) */
.brand:hover .logo { transform: translateY(-1px) rotate(-4deg); filter: drop-shadow(0 0 9px rgba(79, 227, 255, .45)); }
.brand:active .logo { transform: scale(.94); }
.brand .logo .lg-t { fill: #4C6B22; stroke: none; }
.brand .logo .lg-c { stroke-width: 1.6; }
.brand .logo .lg-d { fill: #BEEE11; stroke: none; }
.brand-en { margin-left: 6px; font: 600 11px/1 var(--sans); letter-spacing: .04em; color: var(--tx3); text-transform: uppercase; }
@media (max-width: 720px) { .brand-en { display: none; } }

/* 2026-10-19: 오른쪽 미리보기 폭을 화면에 맞춰 넓힘(1440 → 약 400px, 1920 → 480px) — 썸네일(i-hero)이 패널 폭을 채우므로 함께 커진다 */

/* ===== v14 (2026-10-19): 보유 게임 트리 메뉴 — 판매 중 · 판매 정지 · 무료 (docs/design-research.md 규칙: 장식 없음, 2~4px 모서리) =====
   자식은 들여쓰고 가는 세로 안내선 하나. 선택 막대(.rail-ind)는 자식에도 그대로 옮겨 가고, 접혀 있으면 부모에 머문다. */
.ri-caret { width: 14px; height: 14px; margin-right: -4px; color: var(--tx3); transition: transform .15s; }
.rail-item.is-on .ri-caret { color: var(--tx3); }
.rail-parent[aria-expanded="true"] .ri-caret { transform: rotate(90deg); }
.rail-parent.no-tree .ri-caret { display: none; }
.rail-parent.has-on { color: var(--tx); }
.rail-kids { display: flex; flex-direction: column; gap: 2px; margin: 0 0 2px 20px; padding-left: 6px; border-left: 1px solid var(--line2); }
.rail-kids[hidden] { display: none; }
.rail-kid { height: 32px; padding-left: 10px; font-size: 13px; }
@media (prefers-reduced-motion: reduce) { .ri-caret { transition: none; } }
/* 보유 게임 표: 커버 · 게임 · Steam 한국가(판매 정지는 판매 상태) · 플레이 시간 · 마지막 플레이 · 리뷰 · 관심 */
.table.is-owned .row-grid { --cols: 120px minmax(240px, 2.4fr) minmax(112px, .8fr) minmax(92px, .7fr) minmax(104px, .7fr) minmax(64px, .5fr) 40px; }   /* v30: 넓은 화면에서 숫자 칸이 오른쪽 끝에 몰리지 않게 비율로 */
.pz.off { color: var(--tx); font-family: var(--sans); font-weight: 600; font-size: 13px; }
.pt { font-size: 13px; font-weight: 600; white-space: nowrap; }
.pl { font-size: 12.5px; color: var(--tx2); white-space: nowrap; }
@media (max-width: 720px) {
  .rail-kid { height: 38px; }
  .table.is-owned .row { grid-template-areas: "cov name act" "cov steam steam" "play last rev"; }
  .table.is-owned .c-play { grid-area: play; padding-top: 6px; border-top: 1px dashed var(--line); }
  .table.is-owned .c-last { grid-area: last; padding-top: 6px; border-top: 1px dashed var(--line); text-align: center; }
}

/* ===== v16 (2026-10-19): 레일 — 할인정보 트리(자식 6개)·'내 목록' 묶음(손님은 숨김) =====
   묶음은 display: contents 라 레일 간격·선택 막대 위치 계산이 그대로다. 개수가 0인 자식은 숨기지 않고 흐리게(누르면 빈 까닭 한 줄). */
.rail-group { display: contents; }
.rail-group[hidden] { display: none; }
.rail-kid.is-zero { color: var(--tx3); }
.rail-kid.is-zero .ri-cnt { opacity: .7; }
.rail-kid.is-zero.is-on { color: var(--tx2); }
/* v24 (2026-10-20, 따알깍 참고): 트리 자식 아래 비율 막대 — 부모 개수 중 이 종류가 차지하는 몫(--share 0~1) */
.rail-kid.has-share { position: relative; }
.rail-kid.has-share::after { content: ''; position: absolute; left: 10px; right: 8px; bottom: 3px; height: 2px; border-radius: 1px; pointer-events: none;
  background: linear-gradient(to right, rgba(79, 227, 255, .5) calc(var(--share) * 100%), var(--line) 0); }
.rail-kid.has-share.is-on::after { background: linear-gradient(to right, var(--acc) calc(var(--share) * 100%), var(--line2) 0); }
.rail-kid.is-zero.has-share::after { display: none; }

/* ===== v18 (2026-10-19) 다국어 =====
   언어 선택(상단 바): 지구 아이콘 + 지금 언어 이름. 좁은 화면(≤1100px)은 언어 코드, 휴대폰(≤720px)은 아이콘만.
   글꼴: 외부 글꼴을 새로 불러오지 않고 시스템 글꼴 순서만 바꾼다(성능·CSP). 일본어·중국어는 한자 자형이 언어마다 달라
   그 언어 글꼴을 Pretendard(한국어 자형) 보다 앞에 둔다. 그 밖의 언어는 Pretendard·시스템 글꼴 그대로. */
.lang-wrap { position: relative; flex: none; }
.lang-btn { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 9px 0 7px; border-radius: 4px; color: var(--tx2); font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.lang-btn:hover, .lang-btn[aria-expanded="true"] { background: var(--bg3); color: var(--tx); }
.lang-btn svg { width: 17px; height: 17px; }
.lang-btn .lang-code { display: none; font: 600 11px/1 var(--mono); letter-spacing: .02em; }
.lang-pop { position: absolute; right: 0; top: calc(100% + 6px); z-index: 120; min-width: 188px; padding: 4px; background: var(--bg1); border: 1px solid var(--line2); border-radius: 4px; box-shadow: 0 12px 30px rgba(0, 0, 0, .4); }
.lang-pop [role=menuitemradio] { display: flex; align-items: center; justify-content: space-between; width: 100%; height: 32px; padding: 0 10px; border-radius: 3px; color: var(--tx); font-size: 13.5px; text-align: left; white-space: nowrap; }
.lang-pop [role=menuitemradio]:hover, .lang-pop [role=menuitemradio]:focus-visible { background: var(--bg3); outline: none; }
.lang-pop [aria-checked="true"] { color: var(--acc); font-weight: 700; }
.lang-pop [aria-checked="true"]::after { content: ""; width: 10px; height: 6px; margin-left: 12px; border-left: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(-45deg); }
@media (max-width: 1100px) { .lang-btn .lang-name { display: none; } .lang-btn .lang-code { display: inline; } }
@media (max-width: 720px) { .lang-btn { padding: 0 6px; } .lang-btn .lang-code { display: none; } }
/* v20 통화 선택(언어 버튼과 같은 모양) — 좁은 화면은 기호만 */
.cur-btn .cur-code { font: 600 11.5px/1 var(--mono); letter-spacing: .02em; }
.cur-btn .cur-sym { color: var(--tx3); }
.cur-pop { min-width: 236px; }
.cur-pop .cur-note { margin: 4px 10px 6px; color: var(--tx3); font-size: 11.5px; line-height: 1.4; }
.cur-pop [role=menuitemradio] { height: auto; min-height: 40px; padding: 6px 10px; }
.cur-pop [role=menuitemradio] > span { display: flex; flex-direction: column; gap: 2px; }
.cur-pop [role=menuitemradio] small { color: var(--tx3); font-size: 11.5px; font-weight: 400; }
.cur-pop .cur-top { display: flex; gap: 6px; align-items: baseline; }   /* 코드와 기호를 한 줄에 */
@media (max-width: 720px) { .cur-btn .cur-code { display: none; } .cur-btn svg { display: none; } .cur-btn .cur-sym { color: var(--tx2); font-weight: 700; } }
:root:lang(ja) {
  --sans: "Noto Sans JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", "Yu Gothic", Meiryo, "Pretendard Variable", Pretendard, -apple-system, "Segoe UI", system-ui, sans-serif;
}
:root:lang(zh-CN) {
  --sans: "Noto Sans SC", "PingFang SC", "Microsoft YaHei UI", "Microsoft YaHei", "Pretendard Variable", Pretendard, -apple-system, "Segoe UI", system-ui, sans-serif;
}
:root:lang(zh-TW) {
  --sans: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei UI", "Microsoft JhengHei", "Pretendard Variable", Pretendard, -apple-system, "Segoe UI", system-ui, sans-serif;
}
:root:lang(ja), :root:lang(zh-CN), :root:lang(zh-TW) { --mono: "JetBrains Mono", "Geist Mono", ui-monospace, SFMono-Regular, Consolas, var(--sans); }
/* v18: 레일 메뉴 이름이 긴 언어(de·ru·fr …)는 말줄임 대신 두 줄까지 감싼다(한 줄짜리는 높이 그대로) */
.rail-item { height: auto; min-height: 36px; padding-top: 4px; padding-bottom: 4px; }
.rail-kid { min-height: 32px; }
.ri-label { white-space: normal; line-height: 1.25; overflow-wrap: anywhere; hyphens: auto; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
@media (max-width: 720px) { .rail-item { min-height: 42px; } .rail-kid { min-height: 38px; } }
/* v18: 하단 바 — 긴 언어에서 오른쪽 끝(개인정보처리방침 링크)이 잘리지 않게, 줄일 때는 앞 항목들이 말줄임으로 줄어든다 */
.sb-l > span, .sb-r > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.sb-link, .sb-kbd { flex: none; }
.sb-l { flex: 1 1 auto; } .sb-r { flex: 0 1 auto; }
/* v18: 휴대폰 상단 바 — 언어 버튼이 늘어서, 로고 칸의 최소 폭(레일 폭 기준)을 풀고 메뉴 버튼은 줄지 않게 */
@media (max-width: 720px) { .top .brand { min-width: 0; } .top > .icon-btn, .lang-wrap, .bell-wrap, .user { flex: none; } }

/* ---------- v22 목표 할인율 고르기(target-pct.js) — 미리보기·게임 상세·목록 작은 창 공통 ----------
 * 칩은 단색·모서리 4px, 고른 칩만 강조색 테두리+배경(색과 aria-checked 함께). 도달은 초록 글자 + ✓(색만으로 구분하지 않음). 장식 모션 없음 */
.tp { display: flex; flex-direction: column; gap: 8px; }
.tp-head { display: flex; align-items: baseline; gap: 10px; }
.tp-lbl { font-size: 12.5px; color: var(--tx2); }
.tp-out { font-size: 18px; font-weight: 800; color: var(--tx); }
.tp-none { margin-left: auto; height: 26px; padding: 0 9px; border: 1px solid var(--line2); border-radius: 4px; background: var(--bg2); color: var(--tx2); font: 600 12px var(--sans); cursor: pointer; }
.tp-none:hover:not(:disabled) { border-color: var(--line3); color: var(--tx); }
.tp-none:disabled { opacity: .45; cursor: default; }
.tp-bars { display: grid; grid-template-columns: repeat(19, 1fr); align-items: end; gap: 3px; height: 64px; padding: 4px 2px 0; border-bottom: 1px solid var(--line2); cursor: pointer; touch-action: none; user-select: none; }
.tp-b { position: relative; height: var(--h); border-radius: 2px 2px 0 0; background: var(--line2); box-sizing: border-box; transition: background .08s; }
.tp-bars:hover .tp-b { background: var(--line3); }
.tp-b.now { box-shadow: inset 0 0 0 1.5px var(--ok); }
.tp-b.on, .tp-bars:hover .tp-b.on { background: var(--acc); }
.tp-b.tgt { background: var(--acc); box-shadow: 0 0 0 2px var(--tx); }
.tp.is-reached .tp-b.on { background: var(--ok); }
.tp-b.best::after { content: ''; position: absolute; left: 50%; top: -7px; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%; background: var(--tx2); }
.tp-axis { display: flex; justify-content: space-between; margin-top: -4px; font-size: 11px; color: var(--tx3); }
.tp-none:focus-visible, .tp-bars:focus-visible, .tp-pill:focus-visible { outline: 2px solid var(--acc); outline-offset: 2px; }
.tp-now { margin: 0; font-size: 12.5px; color: var(--tx2); }
.tp-st { margin: 0; min-height: 1.2em; font-size: 12.5px; color: var(--tx2); }
.tp-st:empty { display: none; }
.tp.is-reached .tp-st { color: var(--ok); }
.tp-compact .tp-bars { height: 52px; }
/* 목록 행의 단추: '목표 50%' / '지금 30%' 두 줄 + 도달 ✓ */
.tp-pill { position: relative; z-index: 1; display: inline-flex; flex-direction: column; align-items: flex-start; gap: 1px; max-width: 100%; padding: 4px 8px; border: 1px solid var(--line2); border-radius: 4px; background: var(--bg0); color: var(--tx); text-align: left; cursor: pointer; }
.tp-pill:hover { border-color: var(--line3); }
.tp-pill[aria-expanded="true"] { border-color: var(--acc); }
.tp-pill.none .tp-pt { color: var(--tx3); font-weight: 500; }
.tp-pt { font-size: 12.5px; font-weight: 700; white-space: nowrap; }
.tp-pn { font-size: 11.5px; color: var(--tx2); white-space: nowrap; }
.tp-pok { display: inline-flex; align-items: center; gap: 2px; font-size: 11.5px; font-weight: 700; color: var(--ok); white-space: nowrap; }
.tp-pok svg, .tp-st svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2.6; }
.tp-pill.ok { border-color: var(--ok); }
/* 목록 작은 창(role=dialog) */
.tp-pop { position: fixed; z-index: 90; width: min(340px, calc(100vw - 16px)); padding: 12px; border: 1px solid var(--line3); border-radius: 4px; background: var(--bg2); box-shadow: 0 10px 28px rgba(0, 0, 0, .45); }
/* 게임 상세 '내 상태' 칸 */
.gv-tp { margin-top: 12px; }
.gv-tp h4 { margin: 0 0 8px; font-size: 13px; color: var(--tx2); font-weight: 600; }
@media (max-width: 720px) {
  .tp-bars { height: 76px; }   /* 손가락으로 누르기 쉬운 크기 */
  .tp-none { height: 34px; }
  .c-target .tp-pill { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 2px 8px; }
}

/* ---------- v22 '역대 최저가' 프레임 + 띠 — 모든 게임 목록 공통(.is-lowest, me.js MY.lowCls·lowRib) ----------
 * 프레임: 차분한 녹색 2px(outline — 자리·줄 높이를 바꾸지 않음). 띠: 썸네일 왼쪽 위 글자 라벨(색만으로 구분하지 않음).
 * 할인 블록(Steam 초록)·목표 도달(--ok)과 겹치지 않는 세이지 녹색. 글로우·움직임 없음(docs/design-research.md). */
:root { --lowest: #5FA987; --lowest-bg: #24493A; --lowest-tx: #E3F4EA; }
html .is-lowest { outline: 2px solid var(--lowest); outline-offset: -2px; }   /* html: 목록 CSS 의 outline: none 보다 앞서게 */
tr.is-lowest > td:first-child { box-shadow: inset 2px 0 0 var(--lowest); }
.is-lowest :is(.dv-th, .dv-cimg, .sh-im, .cv-th, .fr-th, .rk-gth, .c-cover) { position: relative; }
.lowest-rib { position: absolute; z-index: 2; top: 0; left: 0; max-width: calc(100% - 4px); padding: 2px 6px; border-radius: 0 0 4px 0; background: var(--lowest-bg); color: var(--lowest-tx); border-right: 1px solid var(--lowest); border-bottom: 1px solid var(--lowest); font-size: 10.5px; font-weight: 700; line-height: 1.3; letter-spacing: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; pointer-events: none; }
@media (max-width: 720px) { .lowest-rib { font-size: 10px; padding: 1px 5px; } }

/* ---------- v22 프로필 메뉴 안 언어·통화(topbar.js menuCtl) — 로그인 전에는 ⚙ 단추 ----------
 * 순서: 이름 머리 → 언어·통화 → 내 정보…  줄 = 왼쪽 [아이콘 16 + 라벨(보조색)] · 오른쪽 [값(본문색·굵게, 길면 말줄임) + ›]. 높이 38px, 좌우 여백은 다른 항목과 같게 */
.ub-pop { width: 280px; max-width: calc(100vw - 16px); max-height: calc(100dvh - var(--toph) - 16px); overflow-y: auto; overscroll-behavior: contain; }
.ub-pop .pm-row, .ub-pop .pm-opt, .ub-pop .pm-back { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; height: auto; min-height: 38px; padding: 0 10px; border-radius: 3px; color: var(--tx); font-size: 13.5px; text-align: left; }
.ub-pop .pm-row:hover, .ub-pop .pm-row:focus-visible, .ub-pop .pm-opt:hover, .ub-pop .pm-opt:focus-visible, .ub-pop .pm-back:hover, .ub-pop .pm-back:focus-visible { background: var(--bg3); outline: none; }
.pm-k { display: inline-flex; align-items: center; gap: 8px; flex: none; color: var(--tx2); white-space: nowrap; }
.pm-k svg, .pm-back svg { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; }
.pm-r { display: inline-flex; align-items: center; justify-content: flex-end; gap: 4px; flex: 1 1 auto; min-width: 0; }
.pm-v { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--tx); font-weight: 700; font-variant-numeric: tabular-nums; }
.pm-chev { width: 14px; height: 14px; flex: none; fill: none; stroke: var(--tx3); stroke-width: 2; }
.ub-pop .pm-back { justify-content: flex-start; gap: 6px; margin-bottom: 4px; border-bottom: 1px solid var(--line); border-radius: 3px 3px 0 0; color: var(--tx2); }
.pm-back b { color: var(--tx); font-size: 13.5px; }
.pm-back small { margin-left: auto; font-size: 11.5px; color: var(--tx3); }
.ub-pop .pm-opt { min-height: 42px; }
.pm-ot { display: flex; flex-direction: column; gap: 1px; flex: 1; min-width: 0; }
.pm-ot > span, .pm-ot small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pm-ot small { font-size: 11.5px; color: var(--tx3); }
.pm-tick { width: 16px; height: 16px; flex: none; fill: none; stroke: var(--acc); stroke-width: 2.4; visibility: hidden; }
.pm-opt[aria-checked="true"] .pm-tick { visibility: visible; }
.pm-opt[aria-checked="true"] .pm-ot > span:first-child { font-weight: 700; }
.pm-opt:disabled { opacity: .55; cursor: progress; }
.pm-note { margin: 0 0 4px; padding: 0 10px 6px; font-size: 11.5px; color: var(--tx3); line-height: 1.4; }
.pm-sep { margin: 4px 0; border: 0; border-top: 1px solid var(--line); }
.ub-pop .ub-pop-h + .pm-row { margin-top: 0; }
.pref-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.pref-btn[aria-expanded="true"] { background: var(--bg3); color: var(--tx); }
@media (max-width: 720px) { .ub-pop { position: fixed; top: calc(var(--toph) + 4px); right: 8px; left: auto; } }

/* ---------- v22 카드 프레임은 ::after 로 이미지 위에(사용자 캡처 2026-10-20: 위·좌우 선이 썸네일에 가려 아래만 보이던 문제) ----------
 * 선반 카드·카드 보기·출시 예정 칸·갤러리 썸네일: 선택(.is-sel)·포커스·역대 최저(.is-lowest)·활성 썸네일 테두리를 카드 위 덮개(::after)에 그린다.
 * 우선순위: 역대 최저 < 선택 < 키보드 포커스. html 접두어 = 화면별 CSS(나중에 읽힘)의 inset box-shadow·outline 보다 앞서게. */
html :is(.sh-card, .dv-card, .up-cell, .mg-th) { position: relative; }
html :is(.sh-card, .dv-card, .up-cell, .mg-th)::after { content: ""; position: absolute; inset: 0; z-index: 4; border: 2px solid transparent; border-radius: inherit; pointer-events: none; }
html :is(.sh-card, .dv-card, .up-cell).is-sel, html :is(.sh-card, .dv-card, .up-cell):focus-visible { box-shadow: none; outline: none; }
html :is(.sh-card, .dv-card, .up-cell).is-lowest { outline: none; }
html :is(.sh-card, .dv-card, .up-cell).is-lowest::after { border-color: var(--lowest); }
html :is(.sh-card, .dv-card, .up-cell).is-sel::after { border-color: var(--tx2); }
html :is(.sh-card, .dv-card, .up-cell):focus-visible::after { border-color: var(--acc); }
html .mg-th { outline: none; }
html .mg-th.is-on::after, html .mg-th[aria-selected="true"]::after, html .mg-th:focus-visible::after { border-color: var(--acc); }

/* ---------- v22 구매 관심 하트(me.js MY.heart) — 빈 ♡(보조색 외곽선) ↔ 채운 ♥(--int). 누를 자리 40px 이상, 색과 함께 채움 모양으로도 구분 ---------- */
.hrt { position: relative; display: inline-grid; place-items: center; flex: none; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%; background: none; color: var(--tx2); cursor: pointer; }
.hrt svg { position: relative; z-index: 1; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
.hrt:hover { color: var(--int); }
.hrt.on { color: var(--int); }
.hrt.on svg { fill: currentColor; }
.hrt:focus-visible { outline: 2px solid var(--acc); outline-offset: -2px; }
@media (prefers-reduced-motion: no-preference) { .hrt.on svg { animation: hrt-pop .22s ease-out; } }
@keyframes hrt-pop { from { transform: scale(.82); } to { transform: scale(1); } }
/* 목록 행: 맨 오른쪽 칸 가운데 */
.c-act { display: flex; align-items: center; justify-content: center; }
.hrt-row { width: 40px; height: 40px; }
/* 카드: 썸네일 오른쪽 위 원형(반투명 어두운 바탕 32px — 밝은 이미지 위에서도 보이게) */
.sh-im, .dv-cimg { position: relative; }
.hrt-card { position: absolute; z-index: 5; top: 2px; right: 2px; color: #E8EAED; }
.hrt-card::before { content: ""; position: absolute; inset: 4px; border-radius: 50%; background: rgba(10, 12, 16, .7); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18); }
.hrt-card:hover::before { background: rgba(10, 12, 16, .8); }
.hrt-card.on { color: var(--int); }
.hrt-card svg { width: 18px; height: 18px; }
/* 미리보기·상세: 제목 줄 끝 */
.i-title, .gv-title { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.i-title .i-name, .gv-title .gv-h { flex: 1; min-width: 0; }
.hrt-title { margin: 4px -8px 0 0; }
.hrt-title svg { width: 24px; height: 24px; }
.gv-tptop:empty { display: none; }
.gv-tptop .gv-tp { margin: 10px 0 4px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 4px; background: var(--bg1); }
/* 카드 덮개 단추(.sh-hit): 카드 전체를 누르면 미리보기, 하트·링크는 그 위(z-index) */
.sh-hit { position: absolute; inset: 0; z-index: 1; padding: 0; border: 0; border-radius: inherit; background: none; cursor: pointer; }
.sh-hit:focus-visible { outline: none; }
html .sh-card:has(.sh-hit:focus-visible)::after { border-color: var(--acc); }

/* ---------- v23 '이미 보유' 직접 표시(me.js MY.ownBtn) — 보유 색은 기존 '보유' 배지와 같은 --warn ----------
 * 제목 줄(미리보기·상세): 하트 바로 왼쪽. 테두리 단추 '보유 표시' ↔ 채운 단추 '✓ 보유 중'. Steam 보유는 누를 수 없는 배지.
 * 목록 행: 하트 왼쪽 작은 체크(40px 누를 자리). 카드: 썸네일 오른쪽 위 하트 왼쪽 원형. */
.i-tacts { display: inline-flex; align-items: center; gap: 2px; flex: none; }
.own-b { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 6px; flex: none; padding: 0; border: 0; background: none; color: var(--tx3); font: inherit; cursor: pointer; }
.own-b svg { position: relative; z-index: 1; width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.own-b:focus-visible { outline: 2px solid var(--acc); outline-offset: -2px; }
.own-b[aria-disabled="true"] { cursor: default; }
.own-b .ob-h { display: none; }
/* 제목 줄: 최소 폭 고정(상태마다 출렁이지 않게). 미보유 = 옅은 테두리 + 체크만, 마우스·초점·터치에서 '보유 표시' 글자 */
.own-title { min-width: 112px; height: 32px; margin-top: 8px; padding: 0 12px 0 9px; border: 1px solid var(--line2); border-radius: 4px; font-size: 13px; font-weight: 600; white-space: nowrap; transition: background .15s, border-color .15s, color .15s; }
.own-title svg { width: 16px; height: 16px; }
.own-title:not(.on) { color: var(--tx2); font-weight: 500; }
.own-title:not(.on) svg { display: none; }
.own-title:not(.on):hover, .own-title:not(.on):focus-visible { border-color: var(--warn); color: var(--warn); font-weight: 600; }
.own-title:not(.on):hover svg, .own-title:not(.on):focus-visible svg { display: block; }
.own-title:not(.on):hover .ob-t, .own-title:not(.on):focus-visible .ob-t { display: none; }
.own-title:not(.on):hover .ob-h, .own-title:not(.on):focus-visible .ob-h { display: inline; }
/* 터치 화면(마우스 올림 없음): '미보유' 대신 '✓ 보유 표시'를 늘 보인다 */
@media (hover: none) {
  .own-title:not(.on) { border-color: var(--line3); color: var(--tx); }
  .own-title:not(.on) svg { display: block; }
  .own-title:not(.on) .ob-t { display: none; }
  .own-title:not(.on) .ob-h { display: inline; }
}
.own-title:focus-visible { outline-offset: 2px; }
/* 보유 중(Steam 보유·직접 표시) = 채운 단추. 직접 표시는 마우스·초점 때 '보유 해제' */
.own-title.on { border-color: var(--warn); background: var(--warn); color: #17140A; }
.own-title.on:not(.is-steam):hover, .own-title.on:not(.is-steam):focus-visible { border-color: var(--hot); background: transparent; color: var(--hot); }
.own-title.on:not(.is-steam):hover .ob-t, .own-title.on:not(.is-steam):focus-visible .ob-t { display: none; }
.own-title.on:not(.is-steam):hover .ob-h, .own-title.on:not(.is-steam):focus-visible .ob-h { display: inline; }
.own-title.on:not(.is-steam):hover svg, .own-title.on:not(.is-steam):focus-visible svg { display: none; }
/* 목록 행: 체크 아이콘(40px 누를 자리). 보유 중 = 채운 원
 * v30: .own-b 로 한정 — 보유 게임 표의 행 클래스(.own-row)와 이름이 같아 행 전체가 32px 로 줄던 문제(2026-10-20) */
.own-b.own-row { width: 32px; height: 40px; }
.own-b.own-row::before { content: ""; position: absolute; inset: 9px 5px; border-radius: 50%; border: 1px solid transparent; }
.own-b.own-row:not(.on):hover { color: var(--warn); }
.own-b.own-row:not(.on):hover::before { border-color: rgba(255, 200, 87, .5); }
.own-b.own-row.on { color: #17140A; }
.own-b.own-row.on::before { background: var(--warn); }
.own-b.own-row.on svg { width: 14px; height: 14px; stroke-width: 3; }
.own-b.own-row.on:not(.is-steam):hover::before { background: transparent; border-color: var(--hot); }
.own-b.own-row.on:not(.is-steam):hover { color: var(--hot); }
/* 카드: 썸네일 오른쪽 위 하트 왼쪽 원형 */
.own-b.own-card { position: absolute; z-index: 5; top: 2px; right: 38px; width: 40px; height: 40px; color: #C9CED8; }
.own-b.own-card::before { content: ""; position: absolute; inset: 4px; border-radius: 50%; background: rgba(10, 12, 16, .7); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18); }
.own-b.own-card:not(.on):hover { color: var(--warn); }
.own-b.own-card:hover::before { background: rgba(10, 12, 16, .8); }
.own-b.own-card.on { color: #17140A; }
.own-b.own-card.on::before { background: var(--warn); box-shadow: none; }
.own-b.own-card.on:not(.is-steam):hover { color: var(--hot); }
.own-b.own-card.on:not(.is-steam):hover::before { background: rgba(10, 12, 16, .85); box-shadow: inset 0 0 0 1px var(--hot); }
.own-b.own-card svg { width: 16px; height: 16px; }
.c-act .own-b + .hrt { margin-left: -4px; }
@media (max-width: 720px) {
  .i-title, .gv-title { flex-wrap: wrap; }
  .own-title { margin-top: 4px; }
}

/* ---------- v23 내 설정 '직접 보유 표시한 게임' 관리(config-view.js manualOwnedSec) ---------- */
.mo-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 10px 0 8px; }
.mo-q { flex: 1 1 220px; min-width: 0; height: 36px; padding: 0 12px; border: 1px solid var(--line2); border-radius: 4px; background: var(--bg1); color: var(--tx); font: inherit; font-size: 13px; }
.mo-q:focus-visible { outline: 2px solid var(--acc); outline-offset: 1px; border-color: transparent; }
.mo-sort { display: inline-flex; border: 1px solid var(--line2); border-radius: 4px; overflow: hidden; }
.mo-sort button { height: 34px; padding: 0 12px; border: 0; background: none; color: var(--tx2); font: inherit; font-size: 12.5px; cursor: pointer; }
.mo-sort button[aria-pressed="true"] { background: var(--bg3); color: var(--tx); }
.mo-sort button:focus-visible { outline: 2px solid var(--acc); outline-offset: -2px; }
.mo-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; min-height: 36px; padding: 4px 10px; border: 1px solid var(--line); border-radius: 4px; background: var(--bg1); font-size: 12.5px; color: var(--tx2); }
.mo-bar .mo-all { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
.mo-bar .cf-btn { margin-left: auto; }
.mo-tidy { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 8px 0 0; padding: 8px 12px; border: 1px solid rgba(102, 192, 244, .3); border-radius: 4px; background: rgba(102, 192, 244, .06); font-size: 12.5px; color: var(--tx); }
.mo-list { list-style: none; margin: 8px 0 0; padding: 0; border-top: 1px solid var(--line); }
.mo-it { display: grid; grid-template-columns: 20px 92px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 8px 4px; border-bottom: 1px solid var(--line); }
.mo-it:hover { background: rgba(255, 255, 255, .02); }
.mo-it input[type="checkbox"], .mo-all input { width: 16px; height: 16px; margin: 0; accent-color: var(--warn); }
.mo-im { width: 92px; aspect-ratio: 460 / 215; border-radius: 3px; background: var(--bg3); object-fit: cover; display: block; }
.mo-tx { min-width: 0; display: grid; gap: 2px; }
.mo-n { overflow: hidden; color: var(--tx); font-size: 13.5px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; text-decoration: none; }
.mo-n:hover { color: var(--acc); }
.mo-m { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; color: var(--tx2); font-size: 12px; }
.mo-steam { padding: 1px 6px; border: 1px solid rgba(102, 192, 244, .35); border-radius: 3px; color: var(--steam); font-size: 11px; }
.mo-empty { margin: 14px 0 4px; color: var(--tx2); font-size: 13px; }
.mo-more { display: block; margin: 10px auto 0; }
@media (max-width: 720px) {
  .mo-it { grid-template-columns: 20px 72px minmax(0, 1fr); }
  .mo-im { width: 72px; }
  .mo-it .mo-rm { grid-column: 3; justify-self: start; }
}

/* ===== v24 (2026-10-20, 따알깍 참고): 화면 머리 숫자 줄(page-head.js) — 이름 작게 위, 숫자 크게 아래 ===== */
.ph-stats { display: flex; flex-wrap: wrap; gap: 10px 32px; margin: 14px 0 2px; }
.ph-st { display: flex; flex-direction: column; gap: 3px; min-width: 64px; }
.ph-st dt { font-size: 11.5px; color: var(--tx3); white-space: nowrap; }
.ph-st dd { margin: 0; font-size: 26px; line-height: 1; font-weight: 800; letter-spacing: -.02em; color: var(--tx); }
.ph-st.acc dd { color: var(--acc); }
.ph-st.hot dd { color: var(--hot); }
.ph-st.ok dd { color: var(--ok); }
.ph-st.int dd { color: var(--int); } .ph-st.wish dd { color: var(--steam); }
@media (max-width: 720px) { .ph-stats { gap: 8px 20px; } .ph-st dd { font-size: 21px; } }

/* ===== v25 (2026-10-20, 따알깍 참고) 연출: 화면 전환 · 목록 등장 · 로딩 뼈대 · 그림 페이드인 (page-head.js) =====
   모두 '움직임 줄이기'면 끈다. 화면 상자는 opacity·transform 을 backwards 로만(끝나면 transform 이 남지 않아 고정 위치 요소에 영향 없음) */
@media (prefers-reduced-motion: no-preference) {
  .v-enter { animation: v-in .3s var(--ease) backwards; }
  .v-enter :is(.dv-row:not(.dv-hd), .dv-card, .fr-row, .bcard, .tbody > .row, .sh-card, .fv-card):nth-child(-n+12) { animation: item-in .42s var(--ease) backwards; }
  .v-enter :is(.dv-row, .dv-card, .fr-row, .bcard, .tbody > .row, .sh-card, .fv-card):nth-child(2) { animation-delay: 30ms; }
  .v-enter :is(.dv-row, .dv-card, .fr-row, .bcard, .tbody > .row, .sh-card, .fv-card):nth-child(3) { animation-delay: 60ms; }
  .v-enter :is(.dv-row, .dv-card, .fr-row, .bcard, .tbody > .row, .sh-card, .fv-card):nth-child(4) { animation-delay: 90ms; }
  .v-enter :is(.dv-row, .dv-card, .fr-row, .bcard, .tbody > .row, .sh-card, .fv-card):nth-child(5) { animation-delay: 120ms; }
  .v-enter :is(.dv-row, .dv-card, .fr-row, .bcard, .tbody > .row, .sh-card, .fv-card):nth-child(6) { animation-delay: 150ms; }
  .v-enter :is(.dv-row, .dv-card, .fr-row, .bcard, .tbody > .row, .sh-card, .fv-card):nth-child(7) { animation-delay: 175ms; }
  .v-enter :is(.dv-row, .dv-card, .fr-row, .bcard, .tbody > .row, .sh-card, .fv-card):nth-child(8) { animation-delay: 200ms; }
  .v-enter :is(.dv-row, .dv-card, .fr-row, .bcard, .tbody > .row, .sh-card, .fv-card):nth-child(9) { animation-delay: 220ms; }
  .v-enter :is(.dv-row, .dv-card, .fr-row, .bcard, .tbody > .row, .sh-card, .fv-card):nth-child(10) { animation-delay: 240ms; }
  .v-enter :is(.dv-row, .dv-card, .fr-row, .bcard, .tbody > .row, .sh-card, .fv-card):nth-child(11) { animation-delay: 255ms; }
  .v-enter :is(.dv-row, .dv-card, .fr-row, .bcard, .tbody > .row, .sh-card, .fv-card):nth-child(12) { animation-delay: 270ms; }
  /* 그림: 다 받아지면 부드럽게. 3초 안에 안 오면(느린 망·실패) 그냥 보인다 */
  html.js-fi :is(#main, #inspBody, .pal-list) img { transition: opacity .3s ease; }
  html.js-fi :is(#main, #inspBody, .pal-list) img:not(.is-in) { opacity: 0; animation: fi-safe 0s 3s forwards; }
  .sk { animation: sk-shim 1.4s linear infinite; }
}
@keyframes v-in { from { opacity: 0; transform: translateY(6px); } }
@keyframes item-in { from { opacity: 0; transform: translateY(8px); } }
@keyframes fi-safe { to { opacity: 1; } }
@keyframes sk-shim { from { background-position: 100% 0; } to { background-position: 0 0; } }
/* 로딩 뼈대: '불러오는 중…' 대신 목록 모양 회색 줄 */
.skel { display: flex; flex-direction: column; gap: 12px; padding: 8px 0; }
.sk-row { display: grid; grid-template-columns: 132px minmax(0, 1fr) 96px; gap: 14px; align-items: center; }
.sk { display: block; border-radius: 4px; background: linear-gradient(90deg, var(--bg2) 0 38%, var(--bg3) 50%, var(--bg2) 62% 100%); background-size: 300% 100%; }
.sk-th { height: 62px; }
.sk-lines { display: flex; flex-direction: column; gap: 8px; }
.sk-l1 { height: 13px; width: 62%; }
.sk-l2 { height: 10px; width: 38%; }
.sk-side { height: 16px; }
@media (max-width: 720px) { .sk-row { grid-template-columns: 96px minmax(0, 1fr); } .sk-side { display: none; } .sk-th { height: 46px; } }

/* ===== v32 '안 보기'(me.js MY.hideBtn) — 서랍·상세 제목 줄, 보유 단추와 하트 사이 ===== */
/* v34(2026-10-20 사용자: "안 보기는 아이콘으로, 하트 옆에 눈 아이콘") — 하트(.hrt-title)와 같은 둥근 아이콘 단추 */
.hide-b { position: relative; display: inline-grid; place-items: center; flex: none; width: 40px; height: 40px; margin: 4px -4px 0 0; padding: 0; border: 0; border-radius: 50%;
  background: none; color: var(--tx3); cursor: pointer; transition: color .15s, background .15s; }
.hide-b svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.hide-b:hover { color: var(--tx); background: var(--bg3); }
.hide-b:focus-visible { outline: 2px solid var(--acc); outline-offset: -2px; }
.hide-b.on { color: var(--hot); }
.hide-b.on:hover { background: var(--hot-d); }
.bdg.hid { color: var(--hot); border-color: rgba(255, 107, 90, .4); }

/* v39 레일 네 묶음 — 묶음 제목(작은 글자 + 가는 선), 묶음 사이 간격은 살짝만 */
.rail-nav .rail-sec { display: flex; align-items: center; gap: 8px; margin: 12px 4px 4px 12px; font-size: 10.5px; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase; color: var(--tx3); }
.rail-nav .rail-sec::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, var(--line2), transparent); }
.rail-nav > .rail-group:first-of-type > .rail-sec { margin-top: 2px; }
.rail-nav .rg-comm .rail-item[data-view="give"] svg { color: #FFD25A; }

/* v47 환율 환산 가격(≈) — 원래 가격은 풍선 도움말 */
.fx-m { margin-right: 2px; font-style: normal; font-weight: 600; color: var(--tx3); cursor: help; }
.pb-fx { display: block; font-size: 11px; color: var(--tx3); font-weight: 400; }

/* v55 가로 목록 끌어서 넘기기(drag-scroll.js) — 마우스 쓰는 화면에서만 잡는 손 모양, 끄는 동안 카드 경계 맞춤·글자 고르기 끔 */
@media (hover: hover) and (pointer: fine) {
  .sh-row, .strip, .bx-strip, .mg-thumbs { cursor: grab; }
}
.is-dragging { cursor: grabbing !important; scroll-snap-type: none !important; scroll-behavior: auto !important; user-select: none; }
.is-dragging * { pointer-events: none; }
html.drag-x, html.drag-x * { cursor: grabbing !important; user-select: none !important; }

/* v60 새 버전 알림 띠(ver-check.js) */
.ver-bar { position: fixed; left: 50%; bottom: 44px; transform: translateX(-50%); z-index: 9000; display: flex; align-items: center; gap: 10px;
  max-width: calc(100vw - 32px); box-sizing: border-box; padding: 10px 10px 10px 16px; border-radius: 10px; background: var(--bg3); color: var(--tx);
  border: 1px solid var(--line2); box-shadow: 0 8px 28px rgba(0, 0, 0, .35); font: 13px/1.4 var(--sans); }
.ver-bar .ver-go { border: 0; border-radius: 7px; padding: 6px 12px; background: var(--acc); color: #061018; font: 700 12.5px var(--sans); cursor: pointer; white-space: nowrap; }
.ver-bar .ver-x { border: 0; background: none; color: var(--tx3); font-size: 18px; line-height: 1; cursor: pointer; padding: 2px 6px; }
