/* ranking.php 전용 CSS */

.grid-center { box-sizing: border-box; align-items: stretch; }

.ranking-table { width: 100%; border-collapse: collapse; font-size: 1rem; }
.ranking-table th { background: rgba(0,0,0,0.12); color: #fff; padding: 10px 8px; text-align: center; font-weight: bold; position: sticky; top: 0; font-size: 0.8rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ranking-table td { padding: 13px 8px; text-align: center; border-bottom: 1px solid rgba(255,255,255,0.08); color: #fff; font-variant-numeric: tabular-nums; letter-spacing: 0; }
.ranking-table tr:hover td { background: rgba(255,255,255,0.05); }
.ranking-table tr.my-row td { background: rgba(243,156,18,0.15); font-weight: bold; color: var(--orange); }

.rank-medal { font-size: 0.9rem; }
.num-col { text-align: right !important; font-family: 'Courier New', 'Consolas', monospace; font-size: 0.95rem; padding-right: 16px !important; }

.elo-badge { display: inline-block; padding: 2px 8px; border-radius: 12px; font-weight: bold; font-size: 0.9rem; }
.tier-diamond  { background: #74b9ff; color: #00206e; }
.tier-platinum { background: #a29bfe; color: #2d1b69; }
.tier-gold     { background: #fdcb6e; color: #6c4a00; }
.tier-silver   { background: #b2bec3; color: #2d3436; }
.tier-bronze   { background: #e17055; color: #fff; }

.my-rank-bar {
    background: rgba(243,156,18,0.1); border: 1px solid rgba(243,156,18,0.4);
    border-radius: 8px; padding: 12px 20px; margin-bottom: 16px;
    color: #fff; font-size: 0.95rem;
    display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
}
.my-rank-bar .rank-num { font-size: 1.4rem; font-weight: bold; color: var(--orange); }

@media (max-width: 600px) {
    .grid-center, .grid-right { width: 100% !important; min-width: 0 !important; max-width: none !important; padding: 0 15px !important; box-sizing: border-box !important; }
    .ranking-table { font-size: 0.8rem; }
    .ranking-table th, .ranking-table td { padding: 8px 4px; }
    .num-col { padding-right: 4px !important; }
    .ranking-table th { min-width: 0 !important; }
    .hide-mobile { display: none; }
}
