/* 다른 모험가에게 할 일 메뉴(우클릭) */
.player-menu {
  position: fixed; left: var(--mx, 0); top: var(--my, 0); z-index: 95;
  display: flex; flex-direction: column; gap: 6px; min-width: 150px; padding: 10px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 12px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.55); animation: toast-in 0.12s ease;
}
.player-menu-name { font-size: 13px; font-weight: 700; color: var(--accent-2); padding: 0 2px 4px; border-bottom: 1px solid #2c2a26; }
.player-menu-btn { width: 100%; min-height: 36px; justify-content: flex-start; }

/* 거래 창: 인벤토리를 옆(오른쪽)에 띄우면 왼쪽으로 비켜 선다 */
.panel-trade { width: min(620px, 100%); height: min(620px, 100%); }
body:has(#panel-inv:not(.hidden)) #panel-trade { justify-content: flex-start; padding-left: 16px; }
body:has(#panel-inv:not(.hidden)) .panel-trade { width: min(620px, calc(100vw - var(--cell, 48px) * 10 - 100px)); }
.trade-cols { flex: 1; min-height: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.trade-col { min-height: 0; display: flex; flex-direction: column; background: var(--panel-2); border: 1px solid #2c2a26; border-radius: 10px; padding: 10px; }
.trade-head { flex: none; display: flex; justify-content: space-between; align-items: center; gap: 8px; margin: 0 0 8px; font-size: 14px; color: var(--text); }
.trade-ok { font-size: 12px; font-weight: 500; color: var(--muted); padding: 2px 8px; border-radius: 999px; border: 1px solid var(--line); }
.trade-ok.is-ok { color: var(--good); border-color: var(--good); }
.trade-list { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 6px; padding-right: 4px; }
.trade-item {
  display: flex; align-items: center; gap: 8px; width: 100%; min-height: 44px; padding: 4px 8px; text-align: left;
  background: #1c1b1a; border: 1px solid #2c2a26; border-radius: 8px; color: var(--text); font: inherit; cursor: var(--cur-point);
}
.trade-item:hover { border-color: var(--accent-2); }
.trade-icon { width: 32px; height: 32px; object-fit: contain; flex: none; }
.trade-name { flex: 1; min-width: 0; font-size: 13px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.trade-name.is-mat { color: #e6d3a8; }
.trade-sub { flex: none; font-size: 12px; color: var(--muted); }
.trade-list .item-tip-body { padding: 8px; border-radius: 8px; background: #161514; border: 1px solid #2c2a26; }
.trade-empty { margin: 4px 2px; font-size: 12px; line-height: 1.6; color: var(--muted); }
.trade-acts { flex: none; display: flex; justify-content: flex-end; gap: 8px; margin-top: 12px; }
.trade-acts .btn { min-width: 120px; }
@media (max-width: 900px) {
  body:has(#panel-inv:not(.hidden)) #panel-trade { justify-content: center; padding-left: 12px; }
  .trade-cols { grid-template-columns: 1fr; }
}

/* 거래에 올린 내 아이템(인벤토리) */
.inv-item.is-offered { outline: 2px dashed var(--accent-2); outline-offset: -3px; }
.inv-item.is-offered::after {
  content: '거래'; position: absolute; left: 2px; top: 2px; padding: 0 4px; border-radius: 4px;
  font-size: 10px; font-weight: 700; color: #1a1408; background: var(--accent-2);
}

/* 다른 모험가의 장비 보기 */
.gear-body { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 4px; padding-right: 4px; }
.pg-row {
  display: flex; align-items: center; gap: 10px; width: 100%; min-height: 42px; padding: 4px 8px; text-align: left;
  background: none; border: 0; border-bottom: 1px solid #2a2824; color: var(--text); font: inherit; font-size: 13px; cursor: var(--cur-point);
}
.pg-row.is-empty { cursor: default; }
.pg-row.is-open, .pg-row:not(.is-empty):hover { background: var(--panel-2); }
.pg-slot { width: 52px; flex: none; color: var(--muted); }
.pg-icon { width: 30px; height: 30px; object-fit: contain; flex: none; }
.pg-name { flex: 1; min-width: 0; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pg-row.is-empty .pg-name { color: var(--muted); font-weight: 400; }
.pg-lv { flex: none; font-size: 12px; color: var(--muted); }
.pg-detail { padding: 8px 4px 10px; }
