/* 백팩 — 내 정보 더 보기 (profile-insights.css) v33 — profile-insights.js 의 절들. 차트 모양은 admin.css(AC) 를 같이 쓴다 */
.px-sec .px-card + .px-card, .px-sec .pv-grid + .px-card, .px-sec .px-card + .pv-grid { margin-top: 12px; }
.px-card.wide { grid-column: 1 / -1; }
.px-empty { margin: 0; font-size: 13px; color: var(--tx2); line-height: 1.6; }
.px-note { margin: 10px 0 0; font-size: 12px; color: var(--tx2); }
.px-im { width: 72px; aspect-ratio: 231 / 87; object-fit: cover; border-radius: 4px; background: var(--bg3); flex: none; }

/* 게이머 유형 */
.px-types { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 12px; }
.px-tside { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.px-type { position: relative; overflow: hidden; padding: 16px 18px; border-radius: 8px; border: 1px solid var(--line); background: var(--bg1); --tc: var(--acc); }
.px-type::after { content: ''; position: absolute; right: -40px; top: -40px; width: 140px; height: 140px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--tc) 28%, transparent), transparent 70%); pointer-events: none; }
.px-type.big { padding: 22px 24px; border-color: color-mix(in srgb, var(--tc) 40%, transparent); background: linear-gradient(135deg, color-mix(in srgb, var(--tc) 14%, transparent), transparent 60%), var(--bg1); }
.px-tk { margin: 0; font-size: 13px; font-weight: 700; color: var(--tc); }
.px-type.big .px-tk { font-size: 15px; }
.px-tv { margin: 6px 0 4px; font-size: 26px; font-weight: 800; letter-spacing: -.03em; }
.px-type.big .px-tv { font-size: 40px; }
.px-td { margin: 0; font-size: 12.5px; color: var(--tx2); line-height: 1.55; }
.px-type.big .px-td { font-size: 13.5px; max-width: 46ch; }
.t-collector { --tc: var(--warn); } .t-loyal { --tc: var(--int); } .t-explorer { --tc: var(--c3); } .t-perfectionist { --tc: #FFD25A; }
.t-achiever { --tc: var(--c5); } .t-nightowl { --tc: var(--c2); } .t-weekender { --tc: var(--c6); } .t-deck { --tc: var(--c7); }
.t-retro { --tc: var(--c8); } .t-trend { --tc: var(--acc); } .t-veteran { --tc: var(--steam); }

/* 플레이 일지 */
.px-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 0 0 12px; }
.px-k { padding: 14px 16px; border-radius: 6px; background: var(--bg1); }
.px-k dt { font-size: 12px; color: var(--tx2); }
.px-k dd { margin: 6px 0 2px; font-size: 24px; font-weight: 800; letter-spacing: -.03em; }
.px-k p { margin: 0; font-size: 11.5px; color: var(--tx3); }
.px-cal { overflow-x: auto; padding-bottom: 4px; }
.px-calm, .px-calg { display: grid; grid-template-rows: repeat(7, 11px); grid-auto-flow: column; grid-auto-columns: 11px; gap: 3px; }
.px-calm { grid-template-rows: auto; grid-auto-flow: row; grid-template-columns: repeat(54, 14px); gap: 0; margin-bottom: 4px; font-size: 10.5px; color: var(--tx3); }
.px-calg i, .px-calleg i { width: 11px; height: 11px; border-radius: 2px; background: var(--bg3); }
.px-calg i.e { background: transparent; }
.px-calg i.l1, .px-calleg i.l1 { background: color-mix(in srgb, var(--c3) 30%, var(--bg3)); }
.px-calg i.l2, .px-calleg i.l2 { background: color-mix(in srgb, var(--c3) 55%, var(--bg3)); }
.px-calg i.l3, .px-calleg i.l3 { background: color-mix(in srgb, var(--c3) 78%, var(--bg3)); }
.px-calg i.l4, .px-calleg i.l4 { background: var(--c3); }
.px-calleg { display: flex; align-items: center; justify-content: flex-end; gap: 3px; margin: 8px 0 0; font-size: 10.5px; color: var(--tx3); }
.px-calleg span { margin: 0 4px; }

/* 게임 목록(공용) */
.px-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.px-gr { display: flex; align-items: center; gap: 10px; width: 100%; padding: 5px 6px; border: 0; border-radius: 6px; background: none; color: inherit; text-align: left; font: inherit; cursor: pointer; }
.px-gr:hover { background: var(--bg2); }
.px-gn { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.px-gn b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; font-weight: 600; }
.px-gn small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; color: var(--tx3); }
.px-gv { display: flex; flex-direction: column; align-items: flex-end; font-size: 13px; font-weight: 700; white-space: nowrap; }
.px-gv small { font: 500 10.5px var(--sans); color: var(--tx3); }

/* 가성비 · 쌓아 둔 게임 */
.px-vgrid { display: grid; grid-template-columns: minmax(200px, .7fr) minmax(0, 1fr) minmax(0, 1fr); gap: 12px; align-items: start; }
.px-pile { padding: 18px; border-radius: 8px; border: 1px solid rgba(255, 200, 87, .3); background: linear-gradient(160deg, rgba(255, 200, 87, .1), transparent 60%), var(--bg1); }
.px-pile.wish { border-color: rgba(102, 192, 244, .3); background: linear-gradient(160deg, rgba(102, 192, 244, .1), transparent 60%), var(--bg1); }
.px-pk { margin: 0; font-size: 12.5px; font-weight: 700; color: var(--tx2); }
.px-pv { margin: 8px 0 6px; font-size: 30px; font-weight: 800; letter-spacing: -.04em; }
.px-ps { margin: 4px 0 0; font-size: 12px; color: var(--tx2); }
.px-ps.ok { color: var(--ok); font-weight: 600; }
.px-gems { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.px-gems button { display: flex; flex-direction: column; gap: 6px; width: 100%; padding: 0; border: 0; background: none; color: inherit; text-align: left; font: inherit; cursor: pointer; }
.px-gems .px-im { width: 100%; transition: transform .2s var(--ease); }
.px-gems button:hover .px-im { transform: translateY(-2px); }
.px-gb { display: flex; flex-direction: column; min-width: 0; }
.px-gb b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12.5px; }
.px-gb small { font-size: 11px; color: var(--ok); }

/* 취향 */
.px-leg { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--tx3); }
.px-leg i { width: 9px; height: 9px; border-radius: 2px; margin-left: 6px; }
.px-leg i.own, .px-tb.own i { background: var(--c2); } .px-leg i.time, .px-tb.time i { background: var(--c3); }
.px-taste { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 7px; }
.px-taste li { display: grid; grid-template-columns: 96px minmax(0, 1fr) minmax(0, 1fr) 54px; align-items: center; gap: 8px; font-size: 12.5px; }
.px-tn { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--tx); }
.px-tb { position: relative; display: flex; align-items: center; height: 18px; border-radius: 3px; background: var(--bg2); overflow: hidden; }
.px-tb i { position: absolute; inset: 0 auto 0 0; width: var(--w); opacity: .75; border-radius: 3px; }
.px-tb b { position: relative; padding-left: 6px; font-size: 11px; font-weight: 600; }
.px-taste em { font-style: normal; font-size: 11px; font-weight: 700; text-align: right; }
.px-taste em.love { color: var(--c3); } .px-taste em.shelf { color: var(--warn); }

/* 오래 붙잡은 게임 */
.px-jr { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.px-jr button { display: grid; grid-template-columns: 72px minmax(160px, .9fr) minmax(0, 1.4fr); align-items: center; gap: 12px; width: 100%; padding: 5px 6px; border: 0; border-radius: 6px; background: none; color: inherit; text-align: left; font: inherit; cursor: pointer; }
.px-jr button:hover { background: var(--bg2); }
.px-jbar { position: relative; height: 8px; border-radius: 4px; background: var(--bg3); }
.px-jbar i { position: absolute; top: 0; bottom: 0; border-radius: 4px; background: linear-gradient(90deg, var(--c2), var(--c1)); }

@media (prefers-reduced-motion: no-preference) {
  .px-type { animation: adm-up .5s var(--ease) backwards; }
  .px-tside .px-type:nth-child(2) { animation-delay: 80ms; } .px-tside .px-type:nth-child(3) { animation-delay: 160ms; }
  .px-calg i { animation: adm-fade .4s ease backwards; }
  .px-tb i, .px-jbar i { animation: ac-bar .9s var(--ease) backwards; transform-origin: left; }
}
@media (max-width: 980px) { .px-types { grid-template-columns: minmax(0, 1fr); } .px-vgrid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 720px) {
  .px-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .px-taste li { grid-template-columns: 76px minmax(0, 1fr) minmax(0, 1fr); } .px-taste em { display: none; }
  .px-jr button { grid-template-columns: 64px minmax(0, 1fr); } .px-jbar { grid-column: 1 / -1; }
  .px-type.big .px-tv { font-size: 32px; }
}
