body.world { background: #05070f; }
.rank { position: fixed; top: 300px; left: 12px; z-index: 999; width: 340px; background: var(--cream); border-radius: var(--radius); box-shadow: var(--shadow); padding: 12px 14px; }
.rank-tabs { display: flex; background: #f1ece5; border-radius: 10px; padding: 3px; margin-bottom: 8px; }
.rank-tabs button { flex: 1; border: 0; background: transparent; padding: 7px; border-radius: 8px; font-weight: 700; color: var(--muted); }
.rank-tabs button.active { background: #fff; color: var(--acc-dark); box-shadow: 0 1px 3px rgba(0,0,0,.08); }
#rankList { list-style: none; max-height: calc(100vh - 560px); overflow-y: auto; }
#rankList li { display: flex; align-items: center; gap: 10px; padding: 8px 4px; border-bottom: 1px solid var(--line); cursor: pointer; }
#rankList li:hover { background: var(--acc-soft); }
#rankList .n { flex: none; width: 26px; height: 26px; border-radius: 50%; background: #7fbf9b; color: #fff; font-weight: 900; font-size: 13px; display: flex; align-items: center; justify-content: center; }
#rankList .t { flex: 1; font-size: 13px; font-weight: 700; line-height: 1.3; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
#rankList .v { flex: none; font-size: 13px; font-weight: 900; color: var(--acc); }
.rank .random { margin-top: 10px; }
.maplibregl-ctrl-group { border-radius: 10px !important; }
.credit-bar { position: fixed; left: 12px; bottom: 90px; z-index: 998; font-size: 11px; color: #cbd5e1; background: rgba(5,7,15,.6); padding: 4px 8px; border-radius: 6px; }
.about .credit { font-size: 12px; color: var(--muted); }
@media (max-width: 720px) {
  .rank { display: none; }
  .panel:not(.collapsed) + .rank { display: none; }
  .credit-bar { display: none; }
}
