/* --- 랭킹 창 관련 스타일 --- */
.ranking-window {
    position: fixed;
    top: 0;
    left: 0; /* 왼쪽에서 나오도록 left: 0 설정 */
    width: 50vw;
    max-width: 380px; /* 데스크탑에서 너무 커지지 않도록 */
    height: 100vh;
    background-color: rgba(40, 50, 40, 0.98);
    border-right: 1px solid #4A5A4A;
    box-shadow: 3px 0px 15px rgba(0,0,0,0.5);
    z-index: 10000;
    color: #f0f0f0;
    display: flex;
    flex-direction: column;
    transform: translateX(-100%); /* 초기 상태: 화면 왼쪽 바깥으로 숨김 */
    transition: transform 0.35s ease-in-out;
}

.ranking-window.open {
    transform: translateX(0%); /* 활성 상태: 화면 안으로 슬라이드 */
}

.ranking-window .ranking-header {
    background-color: #2a302a;
    color: white;
    padding: 10px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
    flex-shrink: 0;
}

.ranking-window .ranking-content {
    padding: 12px 15px;
    overflow-y: auto;
    flex-grow: 1;
}

.ranking-window ol {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ranking-window li {
    background-color: rgba(255,255,255,.05);
    padding: 10px;
    margin-bottom: 8px;
    border-radius: 5px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9em;
}
.ranking-window .rank-number { font-size: 1.2em; font-weight: bold; color: #f1c40f; min-width: 30px; text-align: center; }
.ranking-window .rank-info { flex-grow: 1; margin-left: 10px; }
.ranking-window .rank-info .name { font-weight: bold; }
.ranking-window .rank-info .tier { font-size: 0.9em; opacity: 0.8; }
.ranking-window .rank-coins { font-weight: bold; color: #2ecc71; }

/* --- 랭킹 열기 버튼 스타일 --- */
#openRankingButton {
    position: fixed;
    bottom: 20px;
    right: 80px; /* 로비 버튼 옆에 위치 */
    width: 50px;
    height: 50px;
    background-color: #6c757d;
    color: white;
    border: none;
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    cursor: pointer;
    z-index: 9999;
    font-size: 1.8em;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease;
}
#openRankingButton:hover {
    background-color: #5a6268;
}