/* 인증 UI 스타일 */

#authContainer {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
}

.login-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: white;
    color: #333;
    border: none;
    border-radius: 25px;
    font-size: 1rem;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.3s;
}

.login-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 30px;
    backdrop-filter: blur(10px);
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid #f39c12;
}

.user-name {
    color: #fff;
    font-weight: 500;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-coins {
    background: linear-gradient(45deg, #f39c12, #e67e22);
    padding: 4px 12px;
    border-radius: 15px;
    font-weight: bold;
    color: white;
}

.logout-btn {
    padding: 6px 12px;
    background: rgba(231, 76, 60, 0.8);
    color: white;
    border: none;
    border-radius: 15px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s;
}

.logout-btn:hover {
    background: #e74c3c;
}

/* 로그인 필요 오버레이 */
.login-required-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
}

.login-required-box {
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    max-width: 400px;
}

.login-required-box h2 {
    color: #f39c12;
    margin-bottom: 20px;
}

.login-required-box p {
    color: #888;
    margin-bottom: 30px;
}

/* 리더보드 스타일 */
.leaderboard {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 25px;
    margin-top: 20px;
}

.leaderboard h2 {
    color: #f39c12;
    margin-bottom: 20px;
}

.leaderboard-list {
    list-style: none;
}

.leaderboard-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.leaderboard-item:last-child {
    border-bottom: none;
}

.leaderboard-rank {
    font-size: 1.2rem;
    font-weight: bold;
    width: 30px;
    color: #f39c12;
}

.leaderboard-rank.gold { color: #ffd700; }
.leaderboard-rank.silver { color: #c0c0c0; }
.leaderboard-rank.bronze { color: #cd7f32; }

.leaderboard-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.leaderboard-name {
    flex: 1;
    color: #fff;
}

.leaderboard-coins {
    color: #2ecc71;
    font-weight: bold;
}

/* 반응형 */
@media (max-width: 600px) {
    #authContainer {
        top: 10px;
        right: 10px;
    }

    .user-profile {
        padding: 6px 12px;
        gap: 8px;
    }

    .user-name {
        display: none;
    }

    .user-avatar {
        width: 30px;
        height: 30px;
    }
}
