/* shared/ranking.css — 여러 게임이 함께 쓰는 🏆 순위 창(shared/ranking.js). 색은 --gr-accent로 게임마다 바꿀 수 있다. */
.gr-dialog { position: fixed; inset: 0; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(15, 12, 30, .5); z-index: 50; font-family: Pretendard, "Noto Sans KR", system-ui, "Malgun Gothic", sans-serif; }
.gr-dialog[hidden] { display: none; }
.gr-card { width: 100%; max-width: 420px; max-height: 90vh; overflow: auto; padding: 18px; border-radius: 16px; background: #fff; color: #23202f; text-align: left; box-shadow: 0 20px 50px rgba(0, 0, 0, .25); }
.gr-card h2 { margin: 0 0 8px; font-size: 1.25rem; }
.gr-score { margin: 0 0 8px; font-weight: 800; }
.gr-score:empty { display: none; }
.gr-label { display: block; margin-bottom: 4px; font-size: .9rem; }
.gr-row { display: flex; gap: 8px; margin-bottom: 8px; }
.gr-row input { flex: 1; min-width: 0; padding: 8px 10px; border: 1px solid #c9c5d6; border-radius: 10px; font: inherit; }
.gr-card button { font: inherit; cursor: pointer; border-radius: 10px; padding: 8px 14px; font-weight: 700; }
.gr-card button[hidden] { display: none; }
.gr-ghost { border: 1px solid #c9c5d6; background: #fff; color: #23202f; }
.gr-primary { width: 100%; border: 0; background: var(--gr-accent, #6c4cff); color: #fff; }
.gr-result { min-height: 1.3em; margin: 8px 0; font-weight: 800; }
.gr-list { list-style: none; margin: 0 0 12px; padding: 0; max-height: 42vh; overflow: auto; }
.gr-list li { display: flex; gap: 8px; padding: 6px 2px; border-bottom: 1px solid #eee; }
.gr-no { width: 3em; font-weight: 800; }
.gr-nm { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gr-sc { font-variant-numeric: tabular-nums; }
.gr-empty { color: #888; }
.gr-close { width: 100%; }
