/* 훈련 > 솔랭 순위 */
.sq-page { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 16px; max-width: 1440px; margin: 0 auto; align-items: start; }
.sq-main { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.sq-search { width: 200px; }

.sq-wrap { padding: 0; }
.sq-table td { padding: 6px 10px; }
.sq-table tbody tr.mine td { background: rgba(58, 160, 255, .07); }
.sq-table tbody tr.mine.sel td, .sq-table tbody tr.sel td { background: rgba(200, 162, 74, .12); }
.sq-rank { font-family: var(--f-ui); font-size: 15px; }
.sq-delta { display: block; font-size: 10px; color: #5f6b84; line-height: 1; }
.sq-delta.up { color: #3fbf7f; }
.sq-delta.down { color: #e2575c; }
.sq-name { display: flex; align-items: center; gap: 6px; }
.sq-name b { font-size: 13px; }
.sq-name .team-logo, .sq-d-sub .team-logo { width: 18px; height: 18px; }

.sq-type { font-style: normal; font-size: 10px; font-weight: 700; padding: 1px 5px; border-radius: 3px; white-space: nowrap; }
.sq-type.pro { background: rgba(200, 162, 74, .18); color: var(--gold-2); }
.sq-type.str { background: rgba(167, 112, 255, .18); color: #c4a2ff; }
.sq-type.ama { background: #1f2a44; color: var(--muted); }
.sq-type.otp { background: rgba(255, 128, 64, .16); color: #ff9a5c; }
.sq-type.prodigy { background: rgba(63, 191, 127, .16); color: #4fd690; }
.sq-type.offered { background: rgba(58, 160, 255, .16); color: #7fc0ff; }
.sq-type.prac { background: rgba(240, 213, 138, .14); color: var(--gold-2); margin-left: auto; }

.sq-tier { font-size: 12px; font-weight: 700; }
.sq-tier.ch { color: #f4d06f; }
.sq-wl { display: flex; align-items: center; gap: 8px; font-size: 12px; }
.sq-wl span { color: var(--muted); width: 82px; }
.sq-wr { width: 54px; height: 5px; border-radius: 3px; background: #e2575c55; overflow: hidden; }
.sq-wr i { display: block; height: 100%; background: #3aa0ff; }
.sq-wl b { font-size: 12px; width: 32px; text-align: right; }
.good { color: #3fbf7f; }

.sq-ic { width: 26px; height: 26px; border-radius: 4px; display: block; background: #1c2640; }
.sq-most { display: flex; gap: 3px; }
.sq-form { display: flex; gap: 2px; }
.sq-form i { width: 7px; height: 16px; border-radius: 2px; }
.sq-form i.w { background: #3aa0ff; }
.sq-form i.l { background: #e2575c; opacity: .75; }

.sq-detail { position: sticky; top: 0; max-height: calc(100vh - 170px); overflow: hidden auto; scrollbar-width: thin; }
.sq-d-head { display: flex; align-items: center; gap: 12px; }
.sq-d-head .pl-ph { width: 56px; height: 56px; flex: none; }
.sq-anon { display: flex; align-items: center; justify-content: center; }
.sq-anon .pos-ic svg { width: 28px; height: 28px; }
.sq-d-head h3 { margin: 0; font-size: 19px; word-break: break-all; }
.sq-d-sub { display: flex; align-items: center; gap: 6px; margin-top: 4px; font-size: 12px; color: var(--muted); flex-wrap: wrap; }
.sq-d-rank { margin-left: auto; text-align: right; }
.sq-d-rank b { font-family: var(--f-ui); font-size: 30px; color: var(--gold-2); line-height: 1; }
.sq-d-rank span { font-size: 12px; color: var(--muted); margin-left: 2px; }
.sq-d-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 14px; }
.sq-d-stats > div { background: var(--panel-2); border-radius: 8px; padding: 8px 10px; }
.sq-d-stats span { display: block; font-size: 11px; color: var(--muted); }
.sq-d-stats b { font-family: var(--f-ui); font-size: 18px; }

.sq-box { margin-top: 14px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: rgba(255, 255, 255, .02); }
.sq-box.hot { border-color: rgba(63, 191, 127, .5); background: rgba(63, 191, 127, .06); }
.sq-box-head b { font-size: 13px; display: block; }
.sq-box-head small { font-size: 11px; color: var(--muted); }
.sq-prac, .sq-offer { display: flex; align-items: center; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.sq-prac select { background: var(--bg); border: 1px solid var(--line); border-radius: 6px; padding: 6px 8px; font-size: 13px; min-width: 150px; }
.sq-prac-on { font-size: 12px; color: var(--gold-2); }
.sq-offer span { font-size: 12px; color: #b3bccd; }
.sq-offer button { margin-left: auto; padding: 6px 14px; font-size: 13px; }
.sq-offer button:disabled { opacity: .5; cursor: default; }

.sq-detail h4 { font-size: 13px; margin: 16px 0 8px; padding-bottom: 6px; border-bottom: 1px solid var(--line); }
.sq-detail h4 small { color: var(--muted); font-weight: 400; margin-left: 4px; }
.sq-roles { display: grid; gap: 4px; }
.sq-roles > div { display: grid; grid-template-columns: 22px 1fr 36px; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); }
.sq-roles > div:not(.main) .pos-ic { color: var(--muted); }
.sq-bar { height: 6px; border-radius: 3px; background: #1c2640; overflow: hidden; }
.sq-bar i { display: block; height: 100%; background: #5f6b84; }
.sq-roles .main .sq-bar i { background: var(--gold); }
.sq-champs { display: grid; gap: 4px; }
.sq-champs > div { display: grid; grid-template-columns: 26px 1fr 44px 40px; align-items: center; gap: 8px; font-size: 12px; }
.sq-champs b { font-weight: 500; }
.sq-champs span { text-align: right; color: var(--muted); }
.sq-champs span.good { color: #3fbf7f; }

.sq-hist { display: flex; flex-direction: column; gap: 4px; margin-bottom: 14px; }
.sq-game { display: flex; align-items: center; gap: 8px; padding: 5px 8px; border-radius: 6px; font-size: 12px; border-left: 3px solid; }
.sq-game.w { background: rgba(58, 160, 255, .08); border-color: #3aa0ff; }
.sq-game.l { background: rgba(226, 87, 92, .08); border-color: #e2575c; }
.sq-res { width: 14px; font-size: 12px; }
.sq-game.w .sq-res { color: #7fc0ff; }
.sq-game.l .sq-res { color: #ff8a8e; }
.sq-g-role.off .pos-ic { color: #f0a54a; }
.sq-g-role .pos-ic svg { width: 15px; height: 15px; }
.sq-kda { width: 74px; }
.sq-kda em { font-style: normal; color: #ff8a8e; }
.sq-lp { width: 30px; text-align: right; color: var(--muted); }
.sq-when { color: #5f6b84; font-size: 11px; }

@media (max-width: 1023px) {
  .sq-page { grid-template-columns: 1fr; }
  .sq-detail { position: static; max-height: none; }
}
@media (max-width: 767px) {
  .sq-table th:nth-child(4), .sq-table td:nth-child(4), .sq-table th:nth-child(8), .sq-table td:nth-child(8) { display: none; }
  .sq-wl span { display: none; }
  .sq-search { width: 100%; }
  .ch-bar .sq-filter { flex-wrap: nowrap; overflow-x: auto; max-width: 100%; scrollbar-width: none; }
  .sq-filter button { white-space: nowrap; }
}
