/* ===== 스킨 장비 랭킹 (gear.html) ===== */
.gear-top { display: flex; gap: 8px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin: 6px 0 10px; }
.gear-zones { display: flex; gap: 6px; overflow-x: auto; padding: 2px 0 8px; -webkit-overflow-scrolling: touch; }
.gear-zones button { flex: none; border: 1px solid var(--line); background: var(--card); color: var(--soft); border-radius: 999px; padding: 6px 12px; font-size: 13px; font-weight: 700; cursor: pointer; }
.gear-zones button.active { background: var(--teal); color: #fff; border-color: var(--teal); }
.gear-cols { display: grid !important; grid-template-columns: minmax(0,1fr) minmax(0,1fr) !important; gap: 6px; align-items: start; }
.gear-col { border-radius: 12px; padding: 6px 5px; min-width: 0; }
.gear-col.value { background: rgba(245, 124, 0, .08); border: 1px solid rgba(245, 124, 0, .35); }
.gear-col.perf { background: rgba(29, 122, 133, .08); border: 1px solid rgba(29, 122, 133, .35); }
.gear-col h2 { margin: 2px 2px 8px; font-size: 15px; text-align: center; }
.gear-col.value h2 { color: #E65100; }
.gear-col.perf h2 { color: var(--teal-dark); }
.gear-row { display: flex; gap: 5px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 4px 5px; margin-bottom: 4px; cursor: pointer; min-width: 0; }
.gear-row .no { flex: none; width: 16px; text-align: center; font-weight: 800; font-size: 13px; color: var(--muted); }
.gear-row:nth-child(-n+4) .no { color: #E65100; }
.gear-row img { flex: none; width: 40px !important; height: 40px !important; max-width: 40px !important; border-radius: 8px; object-fit: cover; background: var(--card2); }
.gear-row .tx { min-width: 0; flex: 1; }
.gear-row .nm { font-size: 12px; font-weight: 700; line-height: 1.2; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.gear-row .sc { font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--muted); }
.gear-row .sc i { font-style: normal; font-size: 10.5px; }
.gear-row .sc .pr { font-size: 11px; font-weight: 700; color: #E65100; }
.gear-row .tx > .pr { font-size: 11px; font-weight: 700; color: #E65100; }
.gear-row .sc b { color: #E08A00; font-size: 12.5px; }
.gear-empty { text-align: center; color: var(--muted); font-size: 13px; padding: 16px 4px; }
.star-input { position: relative; display: inline-block; touch-action: none; cursor: pointer; line-height: 0; user-select: none; }
.star-input svg { display: block; }
.star-label { display: flex; align-items: center; gap: 10px; margin: 6px 0; }
.star-label b { width: 70px; white-space: nowrap; font-size: 14px; }
.star-label .num { font-weight: 800; color: #E08A00; min-width: 34px; }
.gear-banner { margin: 22px 0 10px; text-align: center; }
.gear-banner img { max-width: 100%; border-radius: 12px; display: block; margin: 0 auto; }
.gear-banner .ph { border: 1px dashed var(--line); border-radius: 12px; padding: 22px 8px; color: var(--muted); font-size: 13px; }

/* 팝업 닫기(X): 시트 안에서 스크롤해도 오른쪽 위에 계속 보이도록 */
#gear-detail-modal .modal-sheet, #gear-add-modal .modal-sheet { position: relative; padding-top: 14px !important; }
#gear-detail-modal .modal-sheet > .close, #gear-add-modal .modal-sheet > .close {
  position: sticky !important; top: 0 !important; right: auto !important; float: right !important; z-index: 5;
  width: 30px; height: 30px; line-height: 28px; padding: 0; margin: 0 0 -8px 8px; border-radius: 50%;
  font-size: 18px !important; background: var(--card2) !important; color: var(--muted); border: 1px solid var(--line) !important; cursor: pointer;
}
